use of com.instructure.canvasapi2.models.Assignment in project instructure-android by instructure.
the class AssignmentDateListRecyclerAdapterTest method testAreContentsTheSame_sameName.
@Test
public void testAreContentsTheSame_sameName() {
Assignment assignment = new Assignment();
assignment.setName("Assign1");
assertTrue(mAdapter.createItemCallback().areContentsTheSame(assignment, assignment));
}
use of com.instructure.canvasapi2.models.Assignment in project instructure-android by instructure.
the class AssignmentDateListRecyclerAdapterTest method testAreContentsTheSame_differentName.
@Test
public void testAreContentsTheSame_differentName() {
Assignment assignment1 = new Assignment();
assignment1.setName("Assign1");
Assignment assignment2 = new Assignment();
assignment2.setName("Assign2");
assertFalse(mAdapter.createItemCallback().areContentsTheSame(assignment1, assignment2));
}
use of com.instructure.canvasapi2.models.Assignment in project instructure-android by instructure.
the class AssignmentGroupListRecyclerAdapterTest method testAreContentsTheSame_differentName.
@Test
public void testAreContentsTheSame_differentName() {
Assignment assignment1 = new Assignment();
assignment1.setName("Assign1");
Assignment assignment2 = new Assignment();
assignment2.setName("Assign2");
assertFalse(mAdapter.createItemCallback().areContentsTheSame(assignment1, assignment2));
}
use of com.instructure.canvasapi2.models.Assignment in project instructure-android by instructure.
the class AssignmentGroupListRecyclerAdapterTest method testAreContentsTheSame_sameName.
@Test
public void testAreContentsTheSame_sameName() {
Assignment assignment = new Assignment();
assignment.setName("Assignment1");
assertTrue(mAdapter.createItemCallback().areContentsTheSame(assignment, assignment));
}
use of com.instructure.canvasapi2.models.Assignment in project instructure-android by instructure.
the class CalendarListRecyclerAdapterTest method testAreContentsTheSame_sameAssignment.
@Test
public void testAreContentsTheSame_sameAssignment() {
ScheduleItem scheduleItem1 = new ScheduleItem();
scheduleItem1.setTitle("ScheduleItem1");
scheduleItem1.setStartAt(new Date());
Assignment assignment1 = new Assignment();
assignment1.setDueAt(APIHelper.dateToString(new Date()));
scheduleItem1.setAssignment(assignment1);
assertTrue(mAdapter.createItemCallback().areContentsTheSame(scheduleItem1, scheduleItem1));
}
Aggregations