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

Method testBadPuts

src/test/java/com/amazon/ion/StructTest.java:563–574  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

561 }
562
563 @Test
564 public void testBadPuts()
565 {
566 IonStruct value = system().newNullStruct();
567 IonBool nullBool = system().newNullBool();
568
569 try {
570 value.put(null, nullBool);
571 fail("Expected NullPointerException");
572 }
573 catch (NullPointerException e) { }
574 }
575
576 @Test
577 public void testBadAdds()

Callers

nothing calls this directly

Calls 5

putMethod · 0.95
failMethod · 0.80
newNullStructMethod · 0.65
newNullBoolMethod · 0.65
systemMethod · 0.45

Tested by

no test coverage detected