Skip to content

Commit

Permalink
Fix test case after rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
utas-raymondng committed Sep 23, 2024
1 parent 77860ec commit 29046a1
Show file tree
Hide file tree
Showing 5 changed files with 1,222 additions and 376 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void verifyGetDocumentByUUID() throws IOException {

String expected = indexerObjectMapper.readTree(expectedData).toPrettyString();
String actual = indexerObjectMapper.readTree(test).toPrettyString();

logger.info(actual);
JSONAssert.assertEquals(expected, actual, JSONCompareMode.STRICT);
} catch (JSONException e) {
throw new RuntimeException(e);
Expand Down Expand Up @@ -165,7 +165,7 @@ public void verifyAssociatedRecordIndexer() throws IOException{

String expected = indexerObjectMapper.readTree(expectedData).toPrettyString();
String actual = indexerObjectMapper.readTree(resultJson).toPrettyString();

logger.info(actual);
JSONAssert.assertEquals(expected, actual, JSONCompareMode.STRICT);
} catch (JSONException e) {
throw new RuntimeException(e);
Expand Down Expand Up @@ -196,7 +196,7 @@ public void verifyLogoLinkAddedOnIndex() throws IOException {

String expected = indexerObjectMapper.readTree(expectedData).toPrettyString();
String actual = indexerObjectMapper.readTree(test).toPrettyString();

logger.info(actual);
JSONAssert.assertEquals(expected, actual, JSONCompareMode.STRICT);
} catch (JSONException e) {
throw new RuntimeException(e);
Expand All @@ -223,7 +223,7 @@ public void verifyThumbnailLinkAddedOnIndex() throws IOException {

String expected = indexerObjectMapper.readTree(expectedData).toPrettyString();
String actual = indexerObjectMapper.readTree(test).toPrettyString();

logger.info(actual);
JSONAssert.assertEquals(expected, actual, JSONCompareMode.STRICT);
} catch (JSONException e) {
throw new RuntimeException(e);
Expand Down
Loading

0 comments on commit 29046a1

Please sign in to comment.