Checks that the value is an IonDecimal with the given value. @param expected may be null to check for null.decimal
(Double expected, IonValue actual)
| 644 | * @param expected may be null to check for null.decimal |
| 645 | */ |
| 646 | public static void checkDecimal(Double expected, IonValue actual) |
| 647 | { |
| 648 | checkType(IonType.DECIMAL, actual); |
| 649 | IonDecimal i = (IonDecimal) actual; |
| 650 | |
| 651 | if (expected == null) { |
| 652 | assertTrue("expected null value", actual.isNullValue()); |
| 653 | } |
| 654 | else |
| 655 | { |
| 656 | assertEquals("decimal content", |
| 657 | expected.doubleValue(), i.doubleValue(), 0d); |
| 658 | } |
| 659 | } |
| 660 | |
| 661 | |
| 662 | public static void checkTimestamp(String expected, Timestamp actual) |
nothing calls this directly
no test coverage detected