Skip to content

Commit

Permalink
GRAD2-1806
Browse files Browse the repository at this point in the history
New Report for SSW: Projected Grad
  • Loading branch information
arybakov-cgi committed Oct 3, 2024
1 parent 07d2834 commit ba75b78
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.util.Optional;
import java.util.UUID;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.*;
import static org.mockito.Mockito.when;

@WebAppConfiguration
Expand Down Expand Up @@ -290,6 +290,14 @@ public void createSchoolLabelReport() throws Exception {
try (OutputStream out = new FileOutputStream("target/"+reportRequest.getOptions().getReportFile())) {
out.write(response);
}

reportRequest.getData().setOrgCode("../038");

ReportApiServiceException exception = assertThrows(ReportApiServiceException.class, () ->
apiReportService.getSchoolLabelReport(reportRequest));

assertEquals("Unable to execute getSchoolLabelReport(ReportRequest reportRequest)", exception.getMessage());

LOG.debug(">createSchoolLabelReport");
}

Expand Down

0 comments on commit ba75b78

Please sign in to comment.