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

Method testGetSet

src/test/java/org/mapdb/AtomicVarTest.java:41–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 * get returns the last value set
40 */
41 public void testGetSet() {
42 assertEquals("test", ai.get());
43 ai.set("test2");
44 assertEquals("test2", ai.get());
45 ai.set("test3");
46 assertEquals("test3", ai.get());
47
48 }
49
50 /*
51 * 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