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

Method testGetSet

src/test/java/org/mapdb/AtomicLongTest.java:45–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 * get returns the last value set
44 */
45 public void testGetSet(){
46 assertEquals(1,ai.get());
47 ai.set(2);
48 assertEquals(2,ai.get());
49 ai.set(-3);
50 assertEquals(-3,ai.get());
51
52 }
53
54 /*
55 * 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