170: AtomicInteger counter = new AtomicInteger(0);
-
172: (HavingSpec)new CountingHavingSpec(counter, true),
173: new CountingHavingSpec(counter, true),
174: new CountingHavingSpec(counter, true),
175: new CountingHavingSpec(counter, true)
-
180: assertEquals(4, counter.get());
-
182: counter.set(0);
-
184: (HavingSpec)new CountingHavingSpec(counter, false),
185: new CountingHavingSpec(counter, true),
186: new CountingHavingSpec(counter, true),
187: new CountingHavingSpec(counter, true)
-
192: assertEquals(1, counter.get());
Full Snippet Info