Skip to content

Commit

Permalink
Fix test merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mkimberlin committed Sep 6, 2024
1 parent d5b8415 commit f163d14
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ void testReviewPeriodCreateDTOSerialization() throws JsonProcessingException {
String expectedLaunchDateFormat = formatter.format(reviewPeriodCreateDTO.getLaunchDate());
String expectedSelfReviewCloseDateFormat = formatter.format(reviewPeriodCreateDTO.getSelfReviewCloseDate());
String expectedCloseDateFormat = formatter.format(reviewPeriodCreateDTO.getCloseDate());
String expectedPeriodStartDateFormat = formatter.format(reviewPeriodCreateDTO.getPeriodStartDate());
String expectedPeriodEndDateFormat = formatter.format(reviewPeriodCreateDTO.getPeriodEndDate());

final HttpRequest<ReviewPeriodCreateDTO> request = HttpRequest.
POST("/", reviewPeriodCreateDTO).basicAuth(ADMIN_ROLE, ADMIN_ROLE);
Expand All @@ -220,11 +222,9 @@ void testReviewPeriodCreateDTOSerialization() throws JsonProcessingException {
String actualCloseDateFormat = objectMapper.readTree(actualJson).get("closeDate").asText();
assertEquals(expectedCloseDateFormat, actualCloseDateFormat);

String expectedPeriodStartDateFormat = objectMapper.readTree(expectedJson).get("periodStartDate").asText();
String actualPeriodStartDateFormat = objectMapper.readTree(actualJson).get("periodStartDate").asText();
assertEquals(expectedPeriodStartDateFormat, actualPeriodStartDateFormat);

String expectedPeriodEndDateFormat = objectMapper.readTree(expectedJson).get("periodEndDate").asText();
String actualPeriodEndDateFormat = objectMapper.readTree(actualJson).get("periodEndDate").asText();
assertEquals(expectedPeriodEndDateFormat, actualPeriodEndDateFormat);
}
Expand Down

0 comments on commit f163d14

Please sign in to comment.