Addressed review comments
This commit is contained in:
@@ -39,11 +39,9 @@ public class LoadBalancer {
|
||||
|
||||
static {
|
||||
int id = 0;
|
||||
SERVERS.add(new Server("localhost", 8081, ++id));
|
||||
SERVERS.add(new Server("localhost", 8080, ++id));
|
||||
SERVERS.add(new Server("localhost", 8082, ++id));
|
||||
SERVERS.add(new Server("localhost", 8083, ++id));
|
||||
SERVERS.add(new Server("localhost", 8084, ++id));
|
||||
for (int port : new int[] {8080, 8081, 8082, 8083, 8084}) {
|
||||
SERVERS.add(new Server("localhost", port, ++id));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -22,10 +22,7 @@
|
||||
*/
|
||||
package com.iluwatar.monostate;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.mockito.Matchers.any;
|
||||
import static org.mockito.Mockito.doNothing;
|
||||
import static org.mockito.Mockito.mock;
|
||||
@@ -35,6 +32,8 @@ import static org.mockito.Mockito.verifyNoMoreInteractions;
|
||||
import static org.mockito.Mockito.verifyZeroInteractions;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* Date: 12/21/15 - 12:26 PM
|
||||
*
|
||||
|
Reference in New Issue
Block a user