MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / checkString

Method checkString

src/test/java/com/amazon/ion/IonTestCase.java:753–758  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 /**

Calls 3

checkTypeMethod · 0.95
assertEqualsMethod · 0.95
stringValueMethod · 0.95

Tested by

no test coverage detected