Skip to content

Commit

Permalink
DMP-4813 Change update metadata from OffsetDateTime to String so date…
Browse files Browse the repository at this point in the history
… is in expected format

Changed the update metadata request from OffsetDateTime to a formatted string so the output is in the expected format
  • Loading branch information
karen-hedges committed Feb 26, 2025
1 parent 8705243 commit 08e3399
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ void downloadArmData_ShouldSucceed_WhenServerReturns200Success() {
try (feign.Response response = armApiClient.downloadArmData("Bearer token", CABINET_ID, EXTERNAL_RECORD_ID, EXTERNAL_FILE_ID)) {

//Then
InputStream expectedInputStream = Files.newInputStream(Paths.get("src/integrationTest/resources/wiremock/__files/testAudio.mp3"));
assertTrue(IOUtils.contentEquals(response.body().asInputStream(), expectedInputStream));
try (InputStream expectedInputStream = Files.newInputStream(Paths.get("src/integrationTest/resources/wiremock/__files/testAudio.mp3"))) {
assertTrue(IOUtils.contentEquals(response.body().asInputStream(), expectedInputStream));
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void resetTables() {
}

private static void displayTasks(Set<ScheduledTask> scheduledTasks) {
log.info("Number of scheduled tasks " + scheduledTasks.size());
log.info("Number of scheduled tasks {}", scheduledTasks.size());
scheduledTasks.forEach(
scheduledTask -> {
Task task = scheduledTask.getTask();
Expand All @@ -205,7 +205,7 @@ private static void displayTasks(Set<ScheduledTask> scheduledTasks) {
fixedDelayTask.getInitialDelayDuration(), fixedDelayTask.getIntervalDuration()
);
} else {
log.info("Unknown task type: " + task);
log.info("Unknown task type: {}", task);
}
}
);
Expand Down

0 comments on commit 08e3399

Please sign in to comment.