From 65e7c7fa300584bac1427ba31de88a85b0bf29b8 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 20 Jan 2017 20:48:48 +0000 Subject: [PATCH] Updated test names --- .../concurrent/countdownlatch/CountdownLatchExampleTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);