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

Method badValue

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

Parse a broken value, expecting an IonException. @param text can be anything.

(String text)

Source from the content-addressed store, hash-verified

525 * @param text can be anything.
526 */
527 public void badValue(String text)
528 {
529 try
530 {
531 oneValue(text);
532 fail("Expected IonException");
533 }
534 catch (IonException e)
535 {
536 // TODO use a tighter exception type. SyntaxError?
537 // This line is here solely to allow a breakpoint to be set.
538 @SuppressWarnings("unused")
539 String msg = e.getMessage();
540 }
541 }
542
543
544 // TODO add to IonSystem()?

Calls 3

oneValueMethod · 0.95
failMethod · 0.80
getMessageMethod · 0.45

Tested by

no test coverage detected