MCPcopy Create free account
hub / github.com/jankotek/mapdb / testAddNull

Method testAddNull

src/test/java/org/mapdb/BTreeSet3Test.java:131–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 * add(null) throws NPE
130 */
131 public void testAddNull() {
132 try {
133 NavigableSet q = set0();
134 q.add(null);
135 shouldThrow();
136 } catch (NullPointerException success) {}
137 }
138
139 /*
140 * Add of comparable element succeeds

Callers

nothing calls this directly

Calls 3

set0Method · 0.95
addMethod · 0.45
shouldThrowMethod · 0.45

Tested by

no test coverage detected