[CodeStyle][QueueTest]code style

This commit is contained in:
wuxiaofei 2021-02-22 12:21:14 +08:00
parent 1838c817a1
commit d1189674af

View File

@ -39,7 +39,7 @@ public class PeerTaskInstancePriorityQueueTest {
TaskInstance taskInstanceMediumPriority = createTaskInstance("high", Priority.MEDIUM);
queue.put(taskInstanceHigPriority);
queue.put(taskInstanceMediumPriority);
Assert.assertEquals(2,queue.size());
Assert.assertEquals(2, queue.size());
}
@Test
@ -47,7 +47,7 @@ public class PeerTaskInstancePriorityQueueTest {
PeerTaskInstancePriorityQueue queue = getPeerTaskInstancePriorityQueue();
int peekBeforeLength = queue.size();
queue.peek();
Assert.assertEquals(peekBeforeLength,queue.size());
Assert.assertEquals(peekBeforeLength, queue.size());
}
@ -89,8 +89,8 @@ public class PeerTaskInstancePriorityQueueTest {
/**
* create task instance
*
* @param name name
* @param priority priority
* @param name name
* @param priority priority
* @return
*/
private TaskInstance createTaskInstance(String name, Priority priority) {