Skip to content

Commit 65e7c7f

Browse files
committed
Updated test names
1 parent c60c870 commit 65e7c7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎core-java/src/test/java/com/baeldung/concurrent/countdownlatch/CountdownLatchExampleTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
public class CountdownLatchExampleTest {
1818
@Test
19-
public void shouldBlockUntilLatchIsReleased() throws InterruptedException {
19+
public void whenParallelProcessing_thenMainThreadWillBlockUntilCompletion() throws InterruptedException {
2020

2121
// Given
2222
List<String> outputScraper = Collections.synchronizedList(new ArrayList<>());
@@ -45,7 +45,7 @@ public void shouldBlockUntilLatchIsReleased() throws InterruptedException {
4545
}
4646

4747
@Test
48-
public void shouldEventuallyTimeout() throws InterruptedException {
48+
public void whenFailingToParallelProcess_thenMainThreadShouldTimeout() throws InterruptedException {
4949
// Given
5050
List<String> outputScraper = Collections.synchronizedList(new ArrayList<>());
5151
CountDownLatch countDownLatch = new CountDownLatch(5);

0 commit comments

Comments
 (0)