fixing build
This commit is contained in:
parent
36bd3961f3
commit
de978fcd51
|
@ -14,9 +14,13 @@ import java.util.List;
|
|||
public class ProxyClient {
|
||||
public static final String LIST_PATH = "/list_online";
|
||||
|
||||
@NotNull
|
||||
public static List<UserDetails> getOnlineUsers(int httpPort) throws IOException {
|
||||
HttpResponse httpResponse = HttpUtil.executeGet(HttpUtil.RUSEFI_PROXY_JSON_API_PREFIX + ":" + httpPort + LIST_PATH);
|
||||
return getOnlineUsers(HttpUtil.RUSEFI_PROXY_JSON_API_PREFIX + ":" + httpPort + LIST_PATH);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static List<UserDetails> getOnlineUsers(String url) throws IOException {
|
||||
HttpResponse httpResponse = HttpUtil.executeGet(url);
|
||||
|
||||
List<UserDetails> userLists = new ArrayList<>();
|
||||
try {
|
||||
|
|
|
@ -87,7 +87,7 @@ public class ServerTest {
|
|||
List<ControllerConnectionState> clients = backend.getClients();
|
||||
assertEquals(2, clients.size());
|
||||
|
||||
List<UserDetails> onlineUsers = ProxyClient.getOnlineUsers(httpPort);
|
||||
List<UserDetails> onlineUsers = ProxyClient.getOnlineUsers(HttpUtil.RUSEFI_PROXY_JSON_PROTOCOL + TestHelper.LOCALHOST + ":" + httpPort + ProxyClient.LIST_PATH);
|
||||
assertEquals(2, onlineUsers.size());
|
||||
|
||||
allConnected.countDown();
|
||||
|
|
Loading…
Reference in New Issue