use of de.tum.in.www1.artemis.web.rest.dto.IndividualLearningGoalProgress in project ArTEMiS by ls1intum.
the class LearningGoalIntegrationTest method getLearningGoalProgress_asTeam1Student1_shouldReturnProgressTenOutOfThirty.
@Test
@WithMockUser(username = "team1student1", roles = "USER")
public void getLearningGoalProgress_asTeam1Student1_shouldReturnProgressTenOutOfThirty() throws Exception {
IndividualLearningGoalProgress individualLearningGoalProgress = request.get("/api/courses/" + idOfCourse + "/goals/" + idOfLearningGoal + "/individual-progress", HttpStatus.OK, IndividualLearningGoalProgress.class);
assertThat(individualLearningGoalProgress.totalPointsAchievableByStudentsInLearningGoal).isEqualTo(30.0);
assertThat(individualLearningGoalProgress.pointsAchievedByStudentInLearningGoal).isEqualTo(5.0);
}
use of de.tum.in.www1.artemis.web.rest.dto.IndividualLearningGoalProgress in project Artemis by ls1intum.
the class LearningGoalIntegrationTest method getLearningGoalProgress_asTeam1Student1_usingParticipantScores_shouldReturnProgressTenOutOfThirty.
@Test
@WithMockUser(username = "team1student1", roles = "USER")
public void getLearningGoalProgress_asTeam1Student1_usingParticipantScores_shouldReturnProgressTenOutOfThirty() throws Exception {
IndividualLearningGoalProgress individualLearningGoalProgress = request.get("/api/courses/" + idOfCourse + "/goals/" + idOfLearningGoal + "/individual-progress?useParticipantScoreTable=true", HttpStatus.OK, IndividualLearningGoalProgress.class);
assertThat(individualLearningGoalProgress.totalPointsAchievableByStudentsInLearningGoal).isEqualTo(30.0);
assertThat(individualLearningGoalProgress.pointsAchievedByStudentInLearningGoal).isEqualTo(5.0);
}
use of de.tum.in.www1.artemis.web.rest.dto.IndividualLearningGoalProgress in project Artemis by ls1intum.
the class LearningGoalIntegrationTest method getLearningGoalProgress_asStudent1_usingParticipantScores_shouldReturnProgressTenOutOfTwenty.
@Test
@WithMockUser(username = "student1", roles = "USER")
public void getLearningGoalProgress_asStudent1_usingParticipantScores_shouldReturnProgressTenOutOfTwenty() throws Exception {
IndividualLearningGoalProgress individualLearningGoalProgress = request.get("/api/courses/" + idOfCourse + "/goals/" + idOfLearningGoal + "/individual-progress?useParticipantScoreTable=true", HttpStatus.OK, IndividualLearningGoalProgress.class);
assertThat(individualLearningGoalProgress.totalPointsAchievableByStudentsInLearningGoal).isEqualTo(30.0);
assertThat(individualLearningGoalProgress.pointsAchievedByStudentInLearningGoal).isEqualTo(10.0);
}
use of de.tum.in.www1.artemis.web.rest.dto.IndividualLearningGoalProgress in project Artemis by ls1intum.
the class LearningGoalIntegrationTest method getLearningGoalProgress_asTeam1Student1_shouldReturnProgressTenOutOfThirty.
@Test
@WithMockUser(username = "team1student1", roles = "USER")
public void getLearningGoalProgress_asTeam1Student1_shouldReturnProgressTenOutOfThirty() throws Exception {
IndividualLearningGoalProgress individualLearningGoalProgress = request.get("/api/courses/" + idOfCourse + "/goals/" + idOfLearningGoal + "/individual-progress", HttpStatus.OK, IndividualLearningGoalProgress.class);
assertThat(individualLearningGoalProgress.totalPointsAchievableByStudentsInLearningGoal).isEqualTo(30.0);
assertThat(individualLearningGoalProgress.pointsAchievedByStudentInLearningGoal).isEqualTo(5.0);
}
use of de.tum.in.www1.artemis.web.rest.dto.IndividualLearningGoalProgress in project ArTEMiS by ls1intum.
the class LearningGoalIntegrationTest method getLearningGoalProgress_asStudent1_usingParticipantScores_shouldReturnProgressTenOutOfTwenty.
@Test
@WithMockUser(username = "student1", roles = "USER")
public void getLearningGoalProgress_asStudent1_usingParticipantScores_shouldReturnProgressTenOutOfTwenty() throws Exception {
IndividualLearningGoalProgress individualLearningGoalProgress = request.get("/api/courses/" + idOfCourse + "/goals/" + idOfLearningGoal + "/individual-progress?useParticipantScoreTable=true", HttpStatus.OK, IndividualLearningGoalProgress.class);
assertThat(individualLearningGoalProgress.totalPointsAchievableByStudentsInLearningGoal).isEqualTo(30.0);
assertThat(individualLearningGoalProgress.pointsAchievedByStudentInLearningGoal).isEqualTo(10.0);
}
Aggregations