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

Method testAllNulls

src/test/java/com/amazon/ion/NullTest.java:57–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56
57 @Test
58 public void testAllNulls()
59 throws Exception
60 {
61 IonDatagram values = loadTestFile("good/allNulls.ion");
62 // File contains a list of all the null values.
63
64 assertEquals(1, values.size());
65 IonList listOfNulls = (IonList) values.get(0);
66 for (Iterator<IonValue> i = listOfNulls.iterator(); i.hasNext(); )
67 {
68 IonValue value = i.next();
69 if (! value.isNullValue())
70 {
71 fail("Expected a null value, found " + value);
72 }
73 }
74 }
75
76
77 @Test

Callers

nothing calls this directly

Calls 9

sizeMethod · 0.95
getMethod · 0.95
isNullValueMethod · 0.95
loadTestFileMethod · 0.80
failMethod · 0.80
iteratorMethod · 0.65
hasNextMethod · 0.65
nextMethod · 0.65
assertEqualsMethod · 0.45

Tested by

no test coverage detected