BAEL-616 Renamed tests

This commit is contained in:
Predrag Maric 2017-02-03 23:59:34 +01:00
parent 4a9cb3fb4f
commit 318aeb7aa3

@ -14,7 +14,7 @@ import static org.assertj.core.util.Lists.newArrayList;
public class PriorityBlockingQueueUnitTest {
@Test
public void shouldOrderQueue_whenPolling() throws InterruptedException {
public void givenUnorderedValues_whenPolling_thenShouldOrderQueue() throws InterruptedException {
PriorityBlockingQueue<Integer> queue = new PriorityBlockingQueue<>();
ArrayList<Integer> polledElements = new ArrayList<>();
@ -34,7 +34,7 @@ public class PriorityBlockingQueueUnitTest {
}
@Test
public void shouldBlockThread_WhenPollingEmptyQueue() throws InterruptedException {
public void whenPollingEmptyQueue_thenShouldBlockThread() throws InterruptedException {
PriorityBlockingQueue<Integer> queue = new PriorityBlockingQueue<>();
final Thread thread = new Thread(() -> {