use of com.instructure.canvasapi2.models.Assignment in project instructure-android by instructure.
the class AssignmentTest method isLocked_TestEmptyLockInfo.
@Test
public void isLocked_TestEmptyLockInfo() {
Assignment assignment = new Assignment();
LockInfo lockInfo = new LockInfo();
assignment.setLockInfo(lockInfo);
assertEquals(false, assignment.isLocked());
}
use of com.instructure.canvasapi2.models.Assignment in project instructure-android by instructure.
the class AssignmentTest method hasRubric_TestTrue.
// endregion
@Test
public void hasRubric_TestTrue() {
Assignment assignment = new Assignment();
List<RubricCriterion> rubricCriterionList = new ArrayList<>();
rubricCriterionList.add(new RubricCriterion());
assignment.setRubric(rubricCriterionList);
assertEquals(true, assignment.hasRubric());
}
use of com.instructure.canvasapi2.models.Assignment in project instructure-android by instructure.
the class AssignmentTest method isWithoutGradedSubmission_TestTrueNotNull.
@Test
public void isWithoutGradedSubmission_TestTrueNotNull() {
Assignment assignment = new Assignment();
Submission submission = new Submission();
submission.setWorkflowState("submitted");
submission.setGrade(null);
submission.setSubmissionType(null);
assignment.setSubmission(submission);
assertEquals(true, assignment.isWithoutGradedSubmission());
}
use of com.instructure.canvasapi2.models.Assignment in project instructure-android by instructure.
the class AssignmentTest method isWithoutGradedSubmission_TestTrueNull.
@Test
public void isWithoutGradedSubmission_TestTrueNull() {
Assignment assignment = new Assignment();
assignment.setSubmission(null);
assertEquals(true, assignment.isWithoutGradedSubmission());
}
use of com.instructure.canvasapi2.models.Assignment in project instructure-android by instructure.
the class AssignmentTest method getLastActualSubmission_TestNullSubmission.
@Test
public void getLastActualSubmission_TestNullSubmission() {
Assignment assignment = new Assignment();
assignment.setSubmission(null);
assertEquals(null, assignment.getLastActualSubmission());
}
Aggregations