diff --git a/core-java/src/test/java/com/baeldung/concurrent/countdownlatch/CountdownLatchExampleTest.java b/core-java/src/test/java/com/baeldung/concurrent/countdownlatch/CountdownLatchExampleTest.java index 9aa574a067..484eedff24 100644 --- a/core-java/src/test/java/com/baeldung/concurrent/countdownlatch/CountdownLatchExampleTest.java +++ b/core-java/src/test/java/com/baeldung/concurrent/countdownlatch/CountdownLatchExampleTest.java @@ -16,7 +16,7 @@ import static org.assertj.core.api.Assertions.assertThat; public class CountdownLatchExampleTest { @Test - public void shouldBlockUntilLatchIsReleased() throws InterruptedException { + public void whenParallelProcessing_thenMainThreadWillBlockUntilCompletion() throws InterruptedException { // Given List outputScraper = Collections.synchronizedList(new ArrayList<>()); @@ -45,7 +45,7 @@ public class CountdownLatchExampleTest { } @Test - public void shouldEventuallyTimeout() throws InterruptedException { + public void whenFailingToParallelProcess_thenMainThreadShouldTimeout() throws InterruptedException { // Given List outputScraper = Collections.synchronizedList(new ArrayList<>()); CountDownLatch countDownLatch = new CountDownLatch(5);