Skip to content

Commit

Permalink
No-op commit to diagnose build issues
Browse files Browse the repository at this point in the history
Fixes: SIRI-911
  • Loading branch information
mkeckmkeck committed Dec 5, 2023
1 parent a6b571a commit bcf5ec3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ void writeAmountsWithinJacksonObject() {
JSONStructuredOutput out = new JSONStructuredOutput(byteArrayOutputStream, null, StandardCharsets.UTF_8.name());

ObjectNode objectNodeWithAmount = Json.createObject();
objectNodeWithAmount.putPOJO("amountDefault", Amount.of(1.23456));
objectNodeWithAmount.putPOJO("amountRounded", Amount.ofRounded(BigDecimal.valueOf(1.23456)));
objectNodeWithAmount.putPOJO("amountDefault", Amount.of(1.234567));
objectNodeWithAmount.putPOJO("amountRounded", Amount.ofRounded(BigDecimal.valueOf(1.234567)));
objectNodeWithAmount.putPOJO("amountNothing", Amount.NOTHING);
out.writeProperty(null, objectNodeWithAmount);
out.finalizeOutput();

assertEquals("""
{"amountDefault":1.23,"amountRounded":1.23456,"amountNothing":null}""",
{"amountDefault":1.23,"amountRounded":1.234567,"amountNothing":null}""",
byteArrayOutputStream.toString());
}

Expand Down

0 comments on commit bcf5ec3

Please sign in to comment.