-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # api/pom.xml
- Loading branch information
Showing
8 changed files
with
42 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1657,6 +1657,25 @@ public void testGraduateStudent_withProjectedTypeGS_withexception() { | |
sA.setStudentAssessmentList(new ArrayList<>()); | ||
graduationDataStatus.setStudentAssessments(sA); | ||
|
||
School school = new School(); | ||
school.setMinCode("012345"); | ||
school.setSchoolName("XYZ"); | ||
school.setSchoolCategoryCode("01"); | ||
school.setSchoolPhone("123456"); | ||
school.setIndependentDesignation("2"); | ||
graduationDataStatus.setSchool(school); | ||
|
||
GradSearchStudent gradStudent = new GradSearchStudent(); | ||
gradStudent.setStudentID("00000000-0000-0001-0000-000000000001"); | ||
gradStudent.setPen("123090109"); | ||
gradStudent.setLegalFirstName("A"); | ||
gradStudent.setEmail("[email protected]"); | ||
graduationDataStatus.setGradStudent(gradStudent); | ||
|
||
StudentCertificatesTranscript studentCertificatesTranscript = new StudentCertificatesTranscript(); | ||
studentCertificatesTranscript.setTranscriptTypeCode("02"); | ||
graduationDataStatus.setStudentCertificatesTranscript(studentCertificatesTranscript); | ||
|
||
ExceptionMessage ex = new ExceptionMessage(); | ||
ex.setExceptionName("ALG"); | ||
ex.setExceptionDetails("NULL POINTER"); | ||
|
@@ -1680,16 +1699,15 @@ public void testGraduateStudent_withProjectedTypeGS_withexception() { | |
GraduationMessages gM = new GraduationMessages(); | ||
gM.setGradMessage("asdad"); | ||
|
||
School schoolObj = new School(); | ||
schoolObj.setMinCode("1231123"); | ||
schoolObj.setIndependentDesignation("2"); | ||
|
||
ReportData data = new ReportData(); | ||
data.setGradMessage("ABC"); | ||
doNothing().when(this.tokenUtils).setAccessToken(any()); | ||
Mockito.when(gradStatusService.getGradStatus(studentID, accessToken,exception)).thenReturn(gradResponse); | ||
Mockito.when(gradAlgorithmService.runGradAlgorithm(gradResponse.getStudentID(), gradResponse.getProgram(), accessToken,exception)).thenReturn(graduationDataStatus); | ||
Mockito.when(gradStatusService.prepareGraduationStatusObj(graduationDataStatus)).thenReturn(gradResponse); | ||
Mockito.when(reportService.prepareTranscriptData(graduationDataStatus,gradResponse,false,accessToken,exception)).thenReturn(data); | ||
Mockito.when(gradStatusService.saveStudentGradStatus(studentID,null, accessToken,gradResponse,exception)).thenReturn(gradResponse); | ||
Mockito.when(optionalProgramService.saveAndLogOptionalPrograms(graduationDataStatus,studentID,accessToken,new ArrayList<>())).thenReturn(list); | ||
AlgorithmResponse response = graduationService.graduateStudent(studentID,null,accessToken,projectedType); | ||
assertNotNull(response); | ||
} | ||
|