Checks that the value is an IonString with the given text. @param text may be null to check for null.string
(String text, IonValue value)
| 751 | * @param text may be null to check for null.string |
| 752 | */ |
| 753 | public static void checkString(String text, IonValue value) |
| 754 | { |
| 755 | checkType(IonType.STRING, value); |
| 756 | IonString str = (IonString) value; |
| 757 | assertEquals("string content", text, str.stringValue()); |
| 758 | } |
| 759 | |
| 760 | |
| 761 | /** |
no test coverage detected