MCPcopy Index your code
hub / github.com/jankotek/mapdb / testGetSet

Method testGetSet

src/test/java/org/mapdb/AtomicBooleanTest.java:46–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 * get returns the last value set
45 */
46 public void testGetSet() {
47
48 assertEquals(true,ai.get());
49 ai.set(false);
50 assertEquals(false,ai.get());
51 ai.set(true);
52 assertEquals(true,ai.get());
53
54 }
55
56 /*
57 * compareAndSet succeeds in changing value if equal to expected else fails

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected