Skip to content

Commit

Permalink
More coverage on the new codes.
Browse files Browse the repository at this point in the history
More coverage on the new codes.
  • Loading branch information
infstar committed Jan 3, 2025
1 parent 01e263d commit c8aa3a0
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void tearDown() {
}

@Test
public void testGetSchoolDetails() {
public void testGetSchoolClob() {
UUID schoolId = UUID.randomUUID();
String mincode = "213123131";
School schtrax = new School();
Expand All @@ -86,6 +86,21 @@ public void testGetSchoolDetails() {
assertEquals(res.getMinCode(), mincode);
}

@Test
public void testGetSchoolDetails() {
UUID schoolId = UUID.randomUUID();
String mincode = "213123131";
ca.bc.gov.educ.api.graduation.model.dto.institute.School school = new ca.bc.gov.educ.api.graduation.model.dto.institute.School ();
school.setSchoolId(schoolId.toString());
school.setMincode(mincode);
when(this.restService.get(any(String.class), any())).thenReturn(school);
ca.bc.gov.educ.api.graduation.model.dto.institute.School res = schoolService.getSchoolDetails(schoolId);

assertNotNull(res);
assertEquals(res.getSchoolId(),schoolId.toString());
assertEquals(res.getMincode(), mincode);
}

@Test
public void testGetSchoolDetailsNoToken() {
UUID schoolId = UUID.randomUUID();
Expand Down

0 comments on commit c8aa3a0

Please sign in to comment.