use of com.instructure.canvasapi2.models.Course in project instructure-android by instructure.
the class CanvasContextTest method typeIsUser_TestFalse.
@Test
public void typeIsUser_TestFalse() {
Course course = new Course();
assertEquals(false, CanvasContext.Type.isUser(course));
}
use of com.instructure.canvasapi2.models.Course in project instructure-android by instructure.
the class CanvasContextTest method getApiContext_TestCourses.
// endregion
@Test
public void getApiContext_TestCourses() {
Course course = new Course();
assertEquals("courses", CanvasContext.getApiContext(course));
}
use of com.instructure.canvasapi2.models.Course in project instructure-android by instructure.
the class CanvasContextTest method equals_TestFalse.
@Test
public void equals_TestFalse() {
Course course = new Course();
Group group = new Group();
assertEquals(false, course.equals(group));
}
use of com.instructure.canvasapi2.models.Course in project instructure-android by instructure.
the class CanvasContextTest method getHomePageID_TestHomeFeed.
@Test
public void getHomePageID_TestHomeFeed() {
Course course = new Course();
course.setHomePage(CanvasContext.HOME_FEED);
assertEquals(Tab.NOTIFICATIONS_ID, course.getHomePageID());
}
use of com.instructure.canvasapi2.models.Course in project instructure-android by instructure.
the class CanvasContextTest method fromContextCode_TestCourse.
@Test
public void fromContextCode_TestCourse() {
Course course = new Course();
course.setId(1234);
assertEquals(true, course.equals(CanvasContext.fromContextCode(course.getContextId())));
}
Aggregations