Search in sources :

Example 6 with RubricCriterion

use of com.instructure.canvasapi2.models.RubricCriterion 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());
}
Also used : Assignment(com.instructure.canvasapi2.models.Assignment) RubricCriterion(com.instructure.canvasapi2.models.RubricCriterion) ArrayList(java.util.ArrayList) Test(org.junit.Test)

Aggregations

RubricCriterion (com.instructure.canvasapi2.models.RubricCriterion)4 RubricRatingItem (com.instructure.candroid.model.RubricRatingItem)3 RubricCriterionRating (com.instructure.canvasapi2.models.RubricCriterionRating)3 RubricItem (com.instructure.candroid.model.RubricItem)2 RubricCriterionAssessment (com.instructure.canvasapi2.models.RubricCriterionAssessment)2 RubricCommentItem (com.instructure.candroid.model.RubricCommentItem)1 Assignment (com.instructure.canvasapi2.models.Assignment)1 Submission (com.instructure.canvasapi2.models.Submission)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1