Skip to content

Commit 318aeb7

Browse files
committed
BAEL-616 Renamed tests
1 parent 4a9cb3f commit 318aeb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎core-java/src/test/java/com/baeldung/concurrent/priorityblockingqueue/PriorityBlockingQueueUnitTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public class PriorityBlockingQueueUnitTest {
1515

1616
@Test
17-
public void shouldOrderQueue_whenPolling() throws InterruptedException {
17+
public void givenUnorderedValues_whenPolling_thenShouldOrderQueue() throws InterruptedException {
1818
PriorityBlockingQueue<Integer> queue = new PriorityBlockingQueue<>();
1919
ArrayList<Integer> polledElements = new ArrayList<>();
2020

@@ -34,7 +34,7 @@ public void shouldOrderQueue_whenPolling() throws InterruptedException {
3434
}
3535

3636
@Test
37-
public void shouldBlockThread_WhenPollingEmptyQueue() throws InterruptedException {
37+
public void whenPollingEmptyQueue_thenShouldBlockThread() throws InterruptedException {
3838
PriorityBlockingQueue<Integer> queue = new PriorityBlockingQueue<>();
3939

4040
final Thread thread = new Thread(() -> {

0 commit comments

Comments
 (0)