use of com.instructure.canvasapi2.models.Enrollment in project instructure-android by instructure.
the class EnrollmentTest method isStudent_Student.
@Test
public void isStudent_Student() {
Enrollment enrollment = new Enrollment();
enrollment.setType("student");
assertEquals(true, enrollment.isStudent());
}
use of com.instructure.canvasapi2.models.Enrollment in project instructure-android by instructure.
the class EnrollmentTest method isTeacher_Teacher.
@Test
public void isTeacher_Teacher() {
Enrollment enrollment = new Enrollment();
enrollment.setType("teacher");
assertEquals(true, enrollment.isTeacher());
}
use of com.instructure.canvasapi2.models.Enrollment in project instructure-android by instructure.
the class EnrollmentTest method isObserver_ObserverEnrollment.
@Test
public void isObserver_ObserverEnrollment() {
Enrollment enrollment = new Enrollment();
enrollment.setType("observerenrollment");
assertEquals(true, enrollment.isObserver());
}
use of com.instructure.canvasapi2.models.Enrollment in project instructure-android by instructure.
the class EnrollmentTest method isTa_TaEnrollment.
@Test
public void isTa_TaEnrollment() {
Enrollment enrollment = new Enrollment();
enrollment.setType("taenrollment");
assertEquals(true, enrollment.isTA());
}
use of com.instructure.canvasapi2.models.Enrollment in project instructure-android by instructure.
the class EnrollmentTest method getCurrentGrade_NullGrades.
@Test
public void getCurrentGrade_NullGrades() {
Enrollment enrollment = new Enrollment();
enrollment.setComputedCurrentGrade("C-");
enrollment.setGrades(null);
assertEquals("C-", enrollment.getCurrentGrade());
}
Aggregations