Lines Matching refs:callCount
79 AtomicInteger callCount = new AtomicInteger(0); in testNonReentrant() local
87 callCount.getAndIncrement(); in testNonReentrant()
93 assertThat(callCount.get()).isEqualTo(0); in testNonReentrant()
95 assertThat(callCount.get()).isEqualTo(1); in testNonReentrant()
97 assertThat(callCount.get()).isEqualTo(1); in testNonReentrant()
103 AtomicInteger callCount = new AtomicInteger(0); in testReentrant() local
112 if (callCount.incrementAndGet() == 1) { in testReentrant()
120 assertThat(callCount.get()).isEqualTo(0); in testReentrant()
122 assertThat(callCount.get()).isEqualTo(2); in testReentrant()
124 assertThat(callCount.get()).isEqualTo(2); in testReentrant()
130 AtomicInteger callCount = new AtomicInteger(0); in testFailingReentrant() local
140 if (callCount.incrementAndGet() == 1) { in testFailingReentrant()
149 assertThat(callCount.get()).isEqualTo(0); in testFailingReentrant()
156 assertThat(callCount.get()).isEqualTo(2); in testFailingReentrant()
162 AtomicInteger callCount = new AtomicInteger(0); in testGetFromMultipleThreads() local
174 callCount.incrementAndGet(); in testGetFromMultipleThreads()
204 assertThat(callCount.get()).isEqualTo(0); in testGetFromMultipleThreads()
226 assertThat(callCount.get()).isEqualTo(1); in testGetFromMultipleThreads()
238 assertThat(callCount.get()).isEqualTo(1); in testGetFromMultipleThreads()