Skip to content

Commit

Permalink
Grad release 1.1.6
Browse files Browse the repository at this point in the history
Grad release 1.1.6
  • Loading branch information
kamal-mohammed authored Jun 15, 2023
2 parents d608fa3 + 26b85ac commit c6b16a4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ca.bc.gov.educ</groupId>
<artifactId>educ-grad-trax-api</artifactId>
<version>1.8.32</version>
<version>1.8.42</version>
<name>educ-grad-trax-api</name>
<description>Ministry of Education GRAD TRAX API</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ protected void validateAndPopulateUpdateFieldsMap(Map<String, Pair<FieldType, Ob

protected String convertProgramToYear(String program) {
String ret = " ";
if (StringUtils.startsWith(program, "2018")) {
if (StringUtils.startsWith(program, "2023")) {
ret = "2023";
} else if (StringUtils.startsWith(program, "2018")) {
ret = "2018";
} else if (StringUtils.startsWith(program, "2004")) {
ret = "2004";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ public void tearDown() {
this.eventRepository.deleteAll();
}

@Test
public void testProcessEvent_givenGRAD_STUDENT_UPDATED_Event_for_2023_program() throws JsonProcessingException {
createTraxStudent("2023-EN", "CUR", null, null, null, true);
testProcessEvent("2023-EN", "CUR");
}

@Test
public void testProcessEvent_givenGRAD_STUDENT_UPDATED_Event_for_2018_program() throws JsonProcessingException {
createTraxStudent("2018-EN", "CUR", null, null, null, true);
Expand Down

0 comments on commit c6b16a4

Please sign in to comment.