aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/communication/http/ProxyAsyncHttpClientTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/communication/http/ProxyAsyncHttpClientTest.java')
-rw-r--r--clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/communication/http/ProxyAsyncHttpClientTest.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/communication/http/ProxyAsyncHttpClientTest.java b/clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/communication/http/ProxyAsyncHttpClientTest.java
index d231dadc9b1..062fd4aaa32 100644
--- a/clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/communication/http/ProxyAsyncHttpClientTest.java
+++ b/clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/communication/http/ProxyAsyncHttpClientTest.java
@@ -1,11 +1,15 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.communication.http;
-import junit.framework.TestCase;
import org.codehaus.jettison.json.JSONObject;
+import org.junit.Test;
-public class ProxyAsyncHttpClientTest extends TestCase {
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+public class ProxyAsyncHttpClientTest {
+
+ @Test
public void testSimple() throws Exception {
// Can't really test much here, but verifies that the code runs.
DummyAsyncHttpClient dummy = new DummyAsyncHttpClient(
@@ -28,6 +32,7 @@ public class ProxyAsyncHttpClientTest extends TestCase {
dummy.lastRequest);
}
+ @Test
public void testNoAndEmptyPath() throws Exception {
DummyAsyncHttpClient dummy = new DummyAsyncHttpClient(
new HttpResult().setContent(new JSONObject().put("bar", 42)));
@@ -40,4 +45,5 @@ public class ProxyAsyncHttpClientTest extends TestCase {
}
client.execute(new HttpRequest().setHost("local").setPath(""));
}
+
}