use of com.instructure.canvasapi2.models.Group in project instructure-android by instructure.
the class CanvasContextTest method fromContextCode_TestGroup.
@Test
public void fromContextCode_TestGroup() {
Group group = new Group();
group.setId(1234);
assertEquals(true, group.equals(CanvasContext.fromContextCode(group.getContextId())));
}
use of com.instructure.canvasapi2.models.Group in project instructure-android by instructure.
the class CanvasContextTest method getSecondaryName_TestGroup.
@Test
public void getSecondaryName_TestGroup() {
Group group = new Group();
String name = "Hodor";
group.setName(name);
assertEquals(name, group.getSecondaryName());
}
use of com.instructure.canvasapi2.models.Group in project instructure-android by instructure.
the class CanvasContextTest method getGenericContext_TestGroup.
@Test
public void getGenericContext_TestGroup() {
long id = 1234;
String name = "hodor";
Group group = new Group();
group.setName(name);
group.setId(id);
assertEquals(true, group.equals(CanvasContext.getGenericContext(CanvasContext.Type.GROUP, id, name)));
}
use of com.instructure.canvasapi2.models.Group in project instructure-android by instructure.
the class CanvasContextTest method typeIsGroup_TestTrue.
@Test
public void typeIsGroup_TestTrue() {
Group group = new Group();
assertEquals(true, CanvasContext.Type.isGroup(group));
}
use of com.instructure.canvasapi2.models.Group in project instructure-android by instructure.
the class CanvasContextTest method typeIsCourse_TestFalse.
@Test
public void typeIsCourse_TestFalse() {
Group group = new Group();
assertEquals(false, CanvasContext.Type.isCourse(group));
}
Aggregations