Search in sources :

Example 1 with PenMatchRecord

use of ca.bc.gov.educ.penreg.api.struct.PenMatchRecord in project EDUC-PEN-REG-BATCH-API by bcgov.

the class PenRequestBatchAPIControllerTest method testPostPenRequest_GivenValidStudentDataPenMatchReturnsNoMatch_ShouldReturn201.

@Test
public void testPostPenRequest_GivenValidStudentDataPenMatchReturnsNoMatch_ShouldReturn201() throws Exception {
    Mockito.when(this.restUtils.requestEventResponseFromServicesAPI(ArgumentMatchers.any())).thenReturn(Optional.of(Event.builder().eventOutcome(EventOutcome.VALIDATION_SUCCESS_NO_ERROR_WARNING).build()));
    val matchList = new ArrayList<PenMatchRecord>(1);
    matchList.add(PenMatchRecord.builder().matchingPEN("123456789").studentID("studentID").build());
    final PenMatchResult penMatchResult = PenMatchResult.builder().penStatus("D0").matchingRecords(matchList).build();
    Mockito.when(this.restUtils.requestEventResponseFromMatchAPI(ArgumentMatchers.any())).thenReturn(Optional.of(Event.builder().eventOutcome(EventOutcome.PEN_MATCH_PROCESSED).eventPayload(JsonUtil.getJsonStringFromObject(penMatchResult)).build()));
    Mockito.when(this.restUtils.getNextPenNumberFromPenServiceAPI(ArgumentMatchers.any())).thenReturn("123456788");
    Mockito.when(this.restUtils.getStudentByPEN(ArgumentMatchers.any())).thenReturn(Optional.of(Student.builder().studentID("studentID").pen("123456788").build()));
    Mockito.when(this.restUtils.requestEventResponseFromStudentAPI(ArgumentMatchers.any())).thenReturn(Optional.of(Event.builder().eventOutcome(EventOutcome.STUDENT_CREATED).build()));
    this.mockMvc.perform(post("/api/v1/pen-request-batch/pen-request").with(jwt().jwt((jwt) -> jwt.claim("scope", "WRITE_PEN_REQUEST_BATCH"))).content("{\n" + "  \"localStudentID\": \"102000201\",\n" + "  \"legalSurname\": \"AAAA\",\n" + "  \"legalGivenName\": \"OM\",\n" + "  \"birthDate\": \"19801114\",\n" + "  \"gender\": \"M\",\n" + "  \"enrolledGradeCode\": \"12\",\n" + "  \"postalCode\": \"V8T0E1\",\n" + "  \"mincode\": \"10200001\",\n" + "  \"createUser\": \"om\",\n" + "  \"updateUser\": \"om\"\n" + "}").contentType(APPLICATION_JSON)).andDo(print()).andExpect(status().isCreated()).andExpect(jsonPath("$.pen", is("123456788")));
}
Also used : lombok.val(lombok.val) BasePenRegAPITest(ca.bc.gov.educ.penreg.api.BasePenRegAPITest) ArgumentMatchers(org.mockito.ArgumentMatchers) MockMvcResultMatchers.jsonPath(org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath) PenRequestBatchStudentValidationIssueEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchStudentValidationIssueEntity) Autowired(org.springframework.beans.factory.annotation.Autowired) PenRequestBatchTestUtils(ca.bc.gov.educ.penreg.api.support.PenRequestBatchTestUtils) PenRequestBatchMapper(ca.bc.gov.educ.penreg.api.mappers.v1.PenRequestBatchMapper) JsonUtil(ca.bc.gov.educ.penreg.api.util.JsonUtil) DeserializationFeature(com.fasterxml.jackson.databind.DeserializationFeature) PenRequestBatchEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchEntity) PenRequestBatchStudentEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchStudentEntity) MockitoAnnotations(org.mockito.MockitoAnnotations) PENWebBlobEntity(ca.bc.gov.educ.penreg.api.model.v1.PENWebBlobEntity) PenMatchRecord(ca.bc.gov.educ.penreg.api.struct.PenMatchRecord) OR(ca.bc.gov.educ.penreg.api.struct.v1.Condition.OR) TypeReference(com.fasterxml.jackson.core.type.TypeReference) RestUtils(ca.bc.gov.educ.penreg.api.rest.RestUtils) ValueType(ca.bc.gov.educ.penreg.api.struct.v1.ValueType) MockMvcResultHandlers.print(org.springframework.test.web.servlet.result.MockMvcResultHandlers.print) EventOutcome(ca.bc.gov.educ.penreg.api.constants.EventOutcome) PenRequestBatchSubmission(ca.bc.gov.educ.penreg.api.struct.v1.external.PenRequestBatchSubmission) Collectors(java.util.stream.Collectors) Search(ca.bc.gov.educ.penreg.api.struct.v1.Search) java.util(java.util) PenRequestBatchStudentMapper(ca.bc.gov.educ.penreg.api.mappers.v1.PenRequestBatchStudentMapper) LocalDateTime(java.time.LocalDateTime) AND(ca.bc.gov.educ.penreg.api.struct.v1.Condition.AND) MockMvc(org.springframework.test.web.servlet.MockMvc) PenMatchResult(ca.bc.gov.educ.penreg.api.struct.PenMatchResult) PenRequestBatch(ca.bc.gov.educ.penreg.api.struct.v1.PenRequestBatch) MockMvcResultMatchers.status(org.springframework.test.web.servlet.result.MockMvcResultMatchers.status) MvcResult(org.springframework.test.web.servlet.MvcResult) APPLICATION_JSON(org.springframework.http.MediaType.APPLICATION_JSON) SchoolGroupCodes(ca.bc.gov.educ.penreg.api.constants.SchoolGroupCodes) Before(org.junit.Before) SecurityMockMvcRequestPostProcessors.jwt(org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.jwt) FilterOperation(ca.bc.gov.educ.penreg.api.filter.FilterOperation) PenRequestBatchStudentStatusCodes(ca.bc.gov.educ.penreg.api.constants.PenRequestBatchStudentStatusCodes) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) lombok.val(lombok.val) PEN_REQUEST_BATCH_USER_MATCH_PROCESSING_SAGA(ca.bc.gov.educ.penreg.api.constants.SagaEnum.PEN_REQUEST_BATCH_USER_MATCH_PROCESSING_SAGA) SagaService(ca.bc.gov.educ.penreg.api.service.SagaService) SearchCriteria(ca.bc.gov.educ.penreg.api.struct.v1.SearchCriteria) Matchers(org.hamcrest.Matchers) JsonProcessingException(com.fasterxml.jackson.core.JsonProcessingException) Test(org.junit.Test) IOException(java.io.IOException) MockMvcRequestBuilders(org.springframework.test.web.servlet.request.MockMvcRequestBuilders) File(java.io.File) Event(ca.bc.gov.educ.penreg.api.struct.Event) Mockito(org.mockito.Mockito) Collectors.toList(java.util.stream.Collectors.toList) Student(ca.bc.gov.educ.penreg.api.struct.Student) ca.bc.gov.educ.penreg.api.repository(ca.bc.gov.educ.penreg.api.repository) PenMatchResult(ca.bc.gov.educ.penreg.api.struct.PenMatchResult) BasePenRegAPITest(ca.bc.gov.educ.penreg.api.BasePenRegAPITest) Test(org.junit.Test)

Example 2 with PenMatchRecord

use of ca.bc.gov.educ.penreg.api.struct.PenMatchRecord in project EDUC-PEN-REG-BATCH-API by bcgov.

the class PenRequestBatchAPIControllerTest method testPostPenRequest_GivenValidStudentData_ShouldReturnMatchedStudentPen.

@Test
public void testPostPenRequest_GivenValidStudentData_ShouldReturnMatchedStudentPen() throws Exception {
    Mockito.when(this.restUtils.requestEventResponseFromServicesAPI(ArgumentMatchers.any())).thenReturn(Optional.of(Event.builder().eventOutcome(EventOutcome.VALIDATION_SUCCESS_NO_ERROR_WARNING).build()));
    val matchList = new ArrayList<PenMatchRecord>(1);
    matchList.add(PenMatchRecord.builder().matchingPEN("123456789").studentID("studentID").build());
    final PenMatchResult penMatchResult = PenMatchResult.builder().penStatus("D1").matchingRecords(matchList).build();
    Mockito.when(this.restUtils.requestEventResponseFromMatchAPI(ArgumentMatchers.any())).thenReturn(Optional.of(Event.builder().eventOutcome(EventOutcome.PEN_MATCH_PROCESSED).eventPayload(JsonUtil.getJsonStringFromObject(penMatchResult)).build()));
    Mockito.when(this.restUtils.getStudentByPEN("123456789")).thenReturn(Optional.of(Student.builder().studentID("studentID").pen("123456789").build()));
    this.mockMvc.perform(post("/api/v1/pen-request-batch/pen-request").with(jwt().jwt((jwt) -> jwt.claim("scope", "WRITE_PEN_REQUEST_BATCH"))).content("{\n" + "  \"localStudentID\": \"102000201\",\n" + "  \"legalSurname\": \"AAAA\",\n" + "  \"legalGivenName\": \"OM\",\n" + "  \"birthDate\": \"19801114\",\n" + "  \"gender\": \"M\",\n" + "  \"enrolledGradeCode\": \"12\",\n" + "  \"postalCode\": \"V8T0E1\",\n" + "  \"mincode\": \"10200001\",\n" + "  \"createUser\": \"om\",\n" + "  \"updateUser\": \"om\"\n" + "}").contentType(APPLICATION_JSON)).andDo(print()).andExpect(status().isOk()).andExpect(jsonPath("$.pen", is("123456789")));
}
Also used : lombok.val(lombok.val) BasePenRegAPITest(ca.bc.gov.educ.penreg.api.BasePenRegAPITest) ArgumentMatchers(org.mockito.ArgumentMatchers) MockMvcResultMatchers.jsonPath(org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath) PenRequestBatchStudentValidationIssueEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchStudentValidationIssueEntity) Autowired(org.springframework.beans.factory.annotation.Autowired) PenRequestBatchTestUtils(ca.bc.gov.educ.penreg.api.support.PenRequestBatchTestUtils) PenRequestBatchMapper(ca.bc.gov.educ.penreg.api.mappers.v1.PenRequestBatchMapper) JsonUtil(ca.bc.gov.educ.penreg.api.util.JsonUtil) DeserializationFeature(com.fasterxml.jackson.databind.DeserializationFeature) PenRequestBatchEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchEntity) PenRequestBatchStudentEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchStudentEntity) MockitoAnnotations(org.mockito.MockitoAnnotations) PENWebBlobEntity(ca.bc.gov.educ.penreg.api.model.v1.PENWebBlobEntity) PenMatchRecord(ca.bc.gov.educ.penreg.api.struct.PenMatchRecord) OR(ca.bc.gov.educ.penreg.api.struct.v1.Condition.OR) TypeReference(com.fasterxml.jackson.core.type.TypeReference) RestUtils(ca.bc.gov.educ.penreg.api.rest.RestUtils) ValueType(ca.bc.gov.educ.penreg.api.struct.v1.ValueType) MockMvcResultHandlers.print(org.springframework.test.web.servlet.result.MockMvcResultHandlers.print) EventOutcome(ca.bc.gov.educ.penreg.api.constants.EventOutcome) PenRequestBatchSubmission(ca.bc.gov.educ.penreg.api.struct.v1.external.PenRequestBatchSubmission) Collectors(java.util.stream.Collectors) Search(ca.bc.gov.educ.penreg.api.struct.v1.Search) java.util(java.util) PenRequestBatchStudentMapper(ca.bc.gov.educ.penreg.api.mappers.v1.PenRequestBatchStudentMapper) LocalDateTime(java.time.LocalDateTime) AND(ca.bc.gov.educ.penreg.api.struct.v1.Condition.AND) MockMvc(org.springframework.test.web.servlet.MockMvc) PenMatchResult(ca.bc.gov.educ.penreg.api.struct.PenMatchResult) PenRequestBatch(ca.bc.gov.educ.penreg.api.struct.v1.PenRequestBatch) MockMvcResultMatchers.status(org.springframework.test.web.servlet.result.MockMvcResultMatchers.status) MvcResult(org.springframework.test.web.servlet.MvcResult) APPLICATION_JSON(org.springframework.http.MediaType.APPLICATION_JSON) SchoolGroupCodes(ca.bc.gov.educ.penreg.api.constants.SchoolGroupCodes) Before(org.junit.Before) SecurityMockMvcRequestPostProcessors.jwt(org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.jwt) FilterOperation(ca.bc.gov.educ.penreg.api.filter.FilterOperation) PenRequestBatchStudentStatusCodes(ca.bc.gov.educ.penreg.api.constants.PenRequestBatchStudentStatusCodes) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) lombok.val(lombok.val) PEN_REQUEST_BATCH_USER_MATCH_PROCESSING_SAGA(ca.bc.gov.educ.penreg.api.constants.SagaEnum.PEN_REQUEST_BATCH_USER_MATCH_PROCESSING_SAGA) SagaService(ca.bc.gov.educ.penreg.api.service.SagaService) SearchCriteria(ca.bc.gov.educ.penreg.api.struct.v1.SearchCriteria) Matchers(org.hamcrest.Matchers) JsonProcessingException(com.fasterxml.jackson.core.JsonProcessingException) Test(org.junit.Test) IOException(java.io.IOException) MockMvcRequestBuilders(org.springframework.test.web.servlet.request.MockMvcRequestBuilders) File(java.io.File) Event(ca.bc.gov.educ.penreg.api.struct.Event) Mockito(org.mockito.Mockito) Collectors.toList(java.util.stream.Collectors.toList) Student(ca.bc.gov.educ.penreg.api.struct.Student) ca.bc.gov.educ.penreg.api.repository(ca.bc.gov.educ.penreg.api.repository) PenMatchResult(ca.bc.gov.educ.penreg.api.struct.PenMatchResult) BasePenRegAPITest(ca.bc.gov.educ.penreg.api.BasePenRegAPITest) Test(org.junit.Test)

Example 3 with PenMatchRecord

use of ca.bc.gov.educ.penreg.api.struct.PenMatchRecord in project EDUC-PEN-REG-BATCH-API by bcgov.

the class PenRequestBatchStudentOrchestratorServiceTest method testProcessPenMatchResult_givenSummerSchoolForD0_recordMarkedAsFixable.

@Test
public void testProcessPenMatchResult_givenSummerSchoolForD0_recordMarkedAsFixable() throws IOException {
    final var prbStudentEntity = JsonUtil.getJsonObjectFromString(PenRequestBatchStudentEntity.class, this.dummyPenRequestBatchStudentDataJson(USR_NEW_PEN.toString()));
    prbStudentEntity.setUpdateDate(LocalDateTime.now());
    final var eventPayload = new PenMatchResult();
    eventPayload.setPenStatus("D0");
    final PenMatchRecord record = new PenMatchRecord();
    List<PenRequestBatchEntity> batches = this.penRequestBatchRepository.findAll();
    final PenRequestBatchStudentEntity studEntity = batches.get(0).getPenRequestBatchStudentEntities().stream().findFirst().orElseThrow();
    record.setStudentID(studEntity.getPenRequestBatchStudentID().toString());
    when(this.restUtils.getStudentByStudentID(studEntity.getPenRequestBatchStudentID().toString())).thenReturn(Student.builder().studentID(studEntity.getPenRequestBatchStudentID().toString()).pen(TEST_PEN).build());
    record.setMatchingPEN("123456789");
    eventPayload.setMatchingRecords(new ArrayList<>());
    eventPayload.getMatchingRecords().add(record);
    this.sagaData.setMincode("03990089");
    this.orchestratorService.processPenMatchResult(this.saga, this.sagaData, eventPayload);
    final var sagaFromDB = this.sagaService.findSagaById(this.saga.getSagaId());
    assertThat(sagaFromDB).isPresent();
    batches = this.penRequestBatchRepository.findAll();
    assertThat(batches.get(0).getPenRequestBatchStudentEntities().stream().findFirst().orElseThrow().getPenRequestBatchStudentStatusCode()).isEqualTo(PenRequestBatchStudentStatusCodes.FIXABLE.getCode());
}
Also used : PenMatchRecord(ca.bc.gov.educ.penreg.api.struct.PenMatchRecord) PenRequestBatchEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchEntity) PenMatchResult(ca.bc.gov.educ.penreg.api.struct.PenMatchResult) PenRequestBatchStudentEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchStudentEntity) Test(org.junit.Test) BaseOrchestratorTest(ca.bc.gov.educ.penreg.api.orchestrator.BaseOrchestratorTest)

Example 4 with PenMatchRecord

use of ca.bc.gov.educ.penreg.api.struct.PenMatchRecord in project EDUC-PEN-REG-BATCH-API by bcgov.

the class PenRequestBatchStudentOrchestratorServiceTest method testProcessPenMatchResult_givenSFASForD1_noUpdatesToStudent.

@Test
public void testProcessPenMatchResult_givenSFASForD1_noUpdatesToStudent() throws IOException {
    final var prbStudentEntity = JsonUtil.getJsonObjectFromString(PenRequestBatchStudentEntity.class, this.dummyPenRequestBatchStudentDataJson(USR_NEW_PEN.toString()));
    prbStudentEntity.setUpdateDate(LocalDateTime.now());
    final var eventPayload = new PenMatchResult();
    eventPayload.setPenStatus("D1");
    final PenMatchRecord record = new PenMatchRecord();
    List<PenRequestBatchEntity> batches = this.penRequestBatchRepository.findAll();
    final PenRequestBatchStudentEntity studEntity = batches.get(0).getPenRequestBatchStudentEntities().stream().findFirst().orElseThrow();
    record.setStudentID(studEntity.getPenRequestBatchStudentID().toString());
    when(this.restUtils.getStudentByStudentID(studEntity.getPenRequestBatchStudentID().toString())).thenReturn(Student.builder().studentID(studEntity.getPenRequestBatchStudentID().toString()).pen(TEST_PEN).build());
    record.setMatchingPEN("123456789");
    eventPayload.setMatchingRecords(new ArrayList<>());
    eventPayload.getMatchingRecords().add(record);
    this.sagaData.setMincode("10200030");
    this.orchestratorService.processPenMatchResult(this.saga, this.sagaData, eventPayload);
    final var sagaFromDB = this.sagaService.findSagaById(this.saga.getSagaId());
    assertThat(sagaFromDB).isPresent();
    batches = this.penRequestBatchRepository.findAll();
    assertThat(batches.get(0).getPenRequestBatchStudentEntities().stream().findFirst().orElseThrow().getPenRequestBatchStudentStatusCode()).isEqualTo(PenRequestBatchStudentStatusCodes.SYS_MATCHED.getCode());
    verify(this.restUtils, never()).updateStudent(any());
}
Also used : PenMatchRecord(ca.bc.gov.educ.penreg.api.struct.PenMatchRecord) PenRequestBatchEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchEntity) PenMatchResult(ca.bc.gov.educ.penreg.api.struct.PenMatchResult) PenRequestBatchStudentEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchStudentEntity) Test(org.junit.Test) BaseOrchestratorTest(ca.bc.gov.educ.penreg.api.orchestrator.BaseOrchestratorTest)

Example 5 with PenMatchRecord

use of ca.bc.gov.educ.penreg.api.struct.PenMatchRecord in project EDUC-PEN-REG-BATCH-API by bcgov.

the class PenRequestBatchStudentOrchestratorServiceTest method testProcessPenMatchResult_givenSummerSchoolForD1_mincodeLocalIDisUpdated.

@Test
public void testProcessPenMatchResult_givenSummerSchoolForD1_mincodeLocalIDisUpdated() throws IOException {
    final var prbStudentEntity = JsonUtil.getJsonObjectFromString(PenRequestBatchStudentEntity.class, this.dummyPenRequestBatchStudentDataJson(USR_NEW_PEN.toString()));
    prbStudentEntity.setUpdateDate(LocalDateTime.now());
    final var eventPayload = new PenMatchResult();
    eventPayload.setPenStatus("D1");
    final PenMatchRecord record = new PenMatchRecord();
    List<PenRequestBatchEntity> batches = this.penRequestBatchRepository.findAll();
    final PenRequestBatchStudentEntity studEntity = batches.get(0).getPenRequestBatchStudentEntities().stream().findFirst().orElseThrow();
    record.setStudentID(studEntity.getPenRequestBatchStudentID().toString());
    when(this.restUtils.getStudentByStudentID(studEntity.getPenRequestBatchStudentID().toString())).thenReturn(Student.builder().studentID(studEntity.getPenRequestBatchStudentID().toString()).pen(TEST_PEN).build());
    record.setMatchingPEN("123456789");
    eventPayload.setMatchingRecords(new ArrayList<>());
    eventPayload.getMatchingRecords().add(record);
    final ArgumentCaptor<Student> argument = ArgumentCaptor.forClass(Student.class);
    doNothing().when(this.restUtils).updateStudent(argument.capture());
    this.sagaData.setMincode("03990089");
    this.orchestratorService.processPenMatchResult(this.saga, this.sagaData, eventPayload);
    final var sagaFromDB = this.sagaService.findSagaById(this.saga.getSagaId());
    assertThat(sagaFromDB).isPresent();
    batches = this.penRequestBatchRepository.findAll();
    assertThat(batches.get(0).getPenRequestBatchStudentEntities().stream().findFirst().orElseThrow().getPenRequestBatchStudentStatusCode()).isEqualTo(PenRequestBatchStudentStatusCodes.SYS_MATCHED.getCode());
    final Student studentUpdate = argument.getValue();
    assertThat(studentUpdate).isNotNull();
    assertThat(studentUpdate.getLocalID()).isNotNull();
    assertThat(studentUpdate.getLocalID()).doesNotContainAnyWhitespaces();
    assertThat(studentUpdate.getUsualLastName()).isNull();
    assertThat(studentUpdate.getUsualMiddleNames()).isNull();
    assertThat(studentUpdate.getUsualFirstName()).isNull();
    assertThat(studentUpdate.getMincode()).isNotNull();
    assertThat(studentUpdate.getMincode()).doesNotContainAnyWhitespaces();
}
Also used : PenMatchRecord(ca.bc.gov.educ.penreg.api.struct.PenMatchRecord) PenRequestBatchEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchEntity) Student(ca.bc.gov.educ.penreg.api.struct.Student) PenMatchResult(ca.bc.gov.educ.penreg.api.struct.PenMatchResult) PenRequestBatchStudentEntity(ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchStudentEntity) Test(org.junit.Test) BaseOrchestratorTest(ca.bc.gov.educ.penreg.api.orchestrator.BaseOrchestratorTest)

Aggregations

PenRequestBatchEntity (ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchEntity)10 PenRequestBatchStudentEntity (ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchStudentEntity)10 PenMatchRecord (ca.bc.gov.educ.penreg.api.struct.PenMatchRecord)10 PenMatchResult (ca.bc.gov.educ.penreg.api.struct.PenMatchResult)10 Test (org.junit.Test)10 BaseOrchestratorTest (ca.bc.gov.educ.penreg.api.orchestrator.BaseOrchestratorTest)8 Student (ca.bc.gov.educ.penreg.api.struct.Student)5 lombok.val (lombok.val)4 PenRequestBatchStudentStatusCodes (ca.bc.gov.educ.penreg.api.constants.PenRequestBatchStudentStatusCodes)3 RestUtils (ca.bc.gov.educ.penreg.api.rest.RestUtils)3 PenRequestBatchTestUtils (ca.bc.gov.educ.penreg.api.support.PenRequestBatchTestUtils)3 JsonUtil (ca.bc.gov.educ.penreg.api.util.JsonUtil)3 IOException (java.io.IOException)3 LocalDateTime (java.time.LocalDateTime)3 java.util (java.util)3 Before (org.junit.Before)3 Mockito (org.mockito.Mockito)3 Autowired (org.springframework.beans.factory.annotation.Autowired)3 BasePenRegAPITest (ca.bc.gov.educ.penreg.api.BasePenRegAPITest)2 BadLocalID (ca.bc.gov.educ.penreg.api.constants.BadLocalID)2