Fixing Test Cases

This commit is contained in:
RanjeetKaur17 2018-10-26 20:59:34 +04:00
parent 541fa8d5be
commit 6ea369f248
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}