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

Method testAddAndGet

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

Source from the content-addressed store, hash-verified

129 * addAndGet adds given value to current, and returns current value
130 */
131 public void testAddAndGet(){
132
133 assertEquals(3,ai.addAndGet(2));
134 assertEquals(3,ai.get());
135 assertEquals(-1,ai.addAndGet(-4));
136 assertEquals(-1,ai.get());
137 }
138
139 /*
140 * decrementAndGet decrements and returns current value

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
addAndGetMethod · 0.45

Tested by

no test coverage detected