Skip to content

Commit

Permalink
GRAD2-2283
Browse files Browse the repository at this point in the history
Student Archive Process - Backend endpoints To COMPLETE
  • Loading branch information
arybakov-cgi committed Jul 15, 2024
1 parent 76da9bc commit fb72765
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2904,16 +2904,15 @@ public void testCountBySchoolOfRecordsAndStudentStatus() {

@Test
public void testArchiveStudents() {
Mockito.when(graduationStatusRepository.archiveStudents("12345678", "CUR", "ARC", 1L)).thenReturn(1);
Mockito.when(graduationStatusRepository.archiveStudents(List.of("12345678"), "CUR", "ARC", 1L)).thenReturn(1);
Integer count = graduationStatusService.archiveStudents(1L, List.of("12345678"), "CUR");
assertThat(count).isNotNull().isEqualTo(1);
}

@Test
public void testArchiveStudentUpdates() {
Mockito.when(graduationStatusRepository.archiveStudents(List.of("12345678"), "CUR", "ARC", 1L)).thenReturn(1);
Integer count = graduationStatusService.archiveStudents(1L, List.of("12345678"), "CUR");
public void testArchiveStudentEmpty() {
Mockito.when(graduationStatusRepository.archiveStudents("CUR", "ARC", 1L)).thenReturn(1);
Integer count = graduationStatusService.archiveStudents(1L, new ArrayList<>(), "CUR");
assertThat(count).isNotNull().isEqualTo(1);
}

Expand Down

0 comments on commit fb72765

Please sign in to comment.