Fixing Test Cases
This commit is contained in:
parent
541fa8d5be
commit
6ea369f248
|
@ -8,8 +8,8 @@ public class CyclicBarrierCompletionMethodExampleUnitTest {
|
|||
|
||||
@Test
|
||||
public void whenCyclicBarrier_countTrips() {
|
||||
CyclicBarrierCompletionMethodExample ex = new CyclicBarrierCompletionMethodExample(5,20);
|
||||
CyclicBarrierCompletionMethodExample ex = new CyclicBarrierCompletionMethodExample(7,20);
|
||||
int lineCount = ex.countTrips();
|
||||
assertEquals(4, lineCount);
|
||||
assertEquals(2, lineCount);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,8 +8,8 @@ public class CyclicBarrierResetExampleUnitTest {
|
|||
|
||||
@Test
|
||||
public void whenCyclicBarrier_reset() {
|
||||
CyclicBarrierResetExample ex = new CyclicBarrierResetExample(5,20);
|
||||
CyclicBarrierResetExample ex = new CyclicBarrierResetExample(7,20);
|
||||
int lineCount = ex.countWaits();
|
||||
assertEquals(16, lineCount);
|
||||
assertEquals(17, lineCount);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue