Checks that the value is an IonInt with the given value. @param expected may be null to check for null.int
(BigInteger expected, IonValue actual)
| 598 | * @param expected may be null to check for null.int |
| 599 | */ |
| 600 | public static void checkInt(BigInteger expected, IonValue actual) |
| 601 | { |
| 602 | checkType(IonType.INT, actual); |
| 603 | IonInt i = (IonInt) actual; |
| 604 | |
| 605 | if (expected == null) { |
| 606 | assertTrue("expected null value", actual.isNullValue()); |
| 607 | } |
| 608 | else |
| 609 | { |
| 610 | assertEquals("int content", expected, i.bigIntegerValue()); |
| 611 | } |
| 612 | } |
| 613 | |
| 614 | /** |
| 615 | * Checks that the value is an IonInt with the given value. |
no test coverage detected