-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grad release 1.10.0
- Loading branch information
Showing
13 changed files
with
169 additions
and
86 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
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
42 changes: 42 additions & 0 deletions
42
api/src/test/java/ca/bc/gov/educ/api/distribution/service/ReportServiceTest.java
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package ca.bc.gov.educ.api.distribution.service; | ||
|
||
import ca.bc.gov.educ.api.distribution.model.dto.Address; | ||
import ca.bc.gov.educ.api.distribution.model.dto.CommonSchool; | ||
import ca.bc.gov.educ.api.distribution.model.dto.StudentSearchRequest; | ||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
@SpringBootTest | ||
@RunWith(SpringRunner.class) | ||
public class ReportServiceTest { | ||
|
||
@Autowired | ||
private ReportService reportService; | ||
|
||
@Test | ||
public void testPreparePackingSlipData() { | ||
String mincode = "123456"; | ||
CommonSchool commonSchool = new CommonSchool(); | ||
commonSchool.setSchlNo(mincode); | ||
commonSchool.setSchoolName("Test School"); | ||
|
||
StudentSearchRequest searchRequest = new StudentSearchRequest(); | ||
searchRequest.setUser("Test User"); | ||
searchRequest.setAddress(new Address()); | ||
|
||
var response = this.reportService.preparePackingSlipData(searchRequest, commonSchool, 0L); | ||
Assert.assertNotNull(response); | ||
|
||
searchRequest.setUser(null); | ||
searchRequest.setAddress(null); | ||
|
||
response = this.reportService.preparePackingSlipData(searchRequest, commonSchool, 0L); | ||
Assert.assertNotNull(response); | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.