Updated test names

This commit is contained in:
Andrew Morgan 2017-01-20 20:48:48 +00:00
parent c60c870506
commit 65e7c7fa30
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class CountdownLatchExampleTest { public class CountdownLatchExampleTest {
@Test @Test
public void shouldBlockUntilLatchIsReleased() throws InterruptedException { public void whenParallelProcessing_thenMainThreadWillBlockUntilCompletion() throws InterruptedException {
// Given // Given
List<String> outputScraper = Collections.synchronizedList(new ArrayList<>()); List<String> outputScraper = Collections.synchronizedList(new ArrayList<>());
@ -45,7 +45,7 @@ public class CountdownLatchExampleTest {
} }
@Test @Test
public void shouldEventuallyTimeout() throws InterruptedException { public void whenFailingToParallelProcess_thenMainThreadShouldTimeout() throws InterruptedException {
// Given // Given
List<String> outputScraper = Collections.synchronizedList(new ArrayList<>()); List<String> outputScraper = Collections.synchronizedList(new ArrayList<>());
CountDownLatch countDownLatch = new CountDownLatch(5); CountDownLatch countDownLatch = new CountDownLatch(5);