From ffc536854c4fa5f6e4f96a047ed6bb0686a9fe36 Mon Sep 17 00:00:00 2001 From: arybakov Date: Wed, 21 Aug 2024 14:52:36 -0600 Subject: [PATCH] Fix username for student history --- .../api/gradstudent/service/GraduationStatusServiceTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java index 09176a3f..726828c0 100644 --- a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java +++ b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java @@ -1529,6 +1529,8 @@ public void testDeleteCRUDStudentGradCareerProgram() { Optional optionalGraduationStudentRecordEntity = Optional.of(graduationStudentRecordEntity); + historyService.createStudentOptionalProgramHistory(gradStudentOptionalProgramEntity, "USER_DELETE"); + when(graduationStatusRepository.findById(studentID)).thenReturn(optionalGraduationStudentRecordEntity); when(gradStudentOptionalProgramRepository.findByStudentIDAndOptionalProgramID(studentID, optionalProgramID)).thenReturn(Optional.of(gradStudentOptionalProgramEntity)); doNothing().when(gradStudentOptionalProgramRepository).delete(gradStudentOptionalProgramEntity);