Addressed review comments

This commit is contained in:
npathai
2018-10-21 17:19:41 +05:30
parent 70b4931ab8
commit 10179007e8
4 changed files with 16 additions and 25 deletions

View File

@@ -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));
}
}
/**

View File

@@ -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
*