Skip to content

Commit

Permalink
Fix compilation failes (eclipse-ee4j#144)
Browse files Browse the repository at this point in the history
Fix compilation failures in JsonParserTests.
  • Loading branch information
marschall authored Dec 16, 2024
1 parent 34177db commit 216b15d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,13 +515,13 @@ private void testGetValueStructure(JsonParser parser) {
JsonValue value = parser.getValue();
Assertions.assertTrue(value instanceof JsonNumber);
JsonNumber number = (JsonNumber) value;
assertEquals(number.longValueExact(), 1L);
Assertions.assertEquals(number.longValueExact(), 1L);

Assertions.assertEquals(Event.VALUE_NUMBER, parser.next());
value = parser.getValue();
Assertions.assertTrue(value instanceof JsonNumber);
number = (JsonNumber) value;
assertEquals(number.bigDecimalValue(), new BigDecimal("1.1"));
Assertions.assertEquals(number.bigDecimalValue(), new BigDecimal("1.1"));

Assertions.assertEquals(Event.VALUE_TRUE, parser.next());
value = parser.getValue();
Expand All @@ -535,7 +535,7 @@ private void testGetValueStructure(JsonParser parser) {
value = parser.getValue();
Assertions.assertTrue(value instanceof JsonString);
JsonString string = (JsonString) value;
assertEquals("aString", string.getString());
Assertions.assertEquals("aString", string.getString());

Assertions.assertEquals(Event.VALUE_NULL, parser.next());
value = parser.getValue();
Expand Down

0 comments on commit 216b15d

Please sign in to comment.