aboutsummaryrefslogtreecommitdiffstats
path: root/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-12-21 15:18:14 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2021-12-21 15:43:26 +0100
commite0fb5474ac171436e263a4950d72a2a405d379a2 (patch)
tree0b754bd09a06ef419a56f9df586446b386106669 /configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java
parent28ae61202ad963955cf92719bab9b9d97181d5dd (diff)
GC use of deprecated junit assertThat and unify
Diffstat (limited to 'configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java')
-rw-r--r--configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java
index c59375a6085..3d207f9f64a 100644
--- a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java
+++ b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/HttpGetConfigHandlerTest.java
@@ -31,9 +31,7 @@ import java.util.Collections;
import static com.yahoo.jdisc.Response.Status.BAD_REQUEST;
import static com.yahoo.jdisc.Response.Status.NOT_FOUND;
import static com.yahoo.jdisc.http.HttpRequest.Method.GET;
-import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
/**
@@ -97,9 +95,9 @@ public class HttpGetConfigHandlerTest {
String uriLongAppId = "http://foo.com:8080/config/v2/tenant/bill/application/sookie/environment/dev/region/bellefleur/instance/sam/foo.bar/myid";
HttpRequest r = HttpRequest.createTestRequest(uriLongAppId, GET);
HttpConfigRequest req = HttpConfigRequest.createFromRequestV2(r);
- assertThat(req.getApplicationId().tenant().value(), is("bill"));
- assertThat(req.getApplicationId().application().value(), is("sookie"));
- assertThat(req.getApplicationId().instance().value(), is("sam"));
+ assertEquals("bill", req.getApplicationId().tenant().value());
+ assertEquals("sookie", req.getApplicationId().application().value());
+ assertEquals("sam", req.getApplicationId().instance().value());
}
@Test
@@ -107,9 +105,9 @@ public class HttpGetConfigHandlerTest {
String uriShortAppId = "http://foo.com:8080/config/v2/tenant/jason/application/alcide/foo.bar/myid";
HttpRequest r = HttpRequest.createTestRequest(uriShortAppId, GET);
HttpConfigRequest req = HttpConfigRequest.createFromRequestV2(r);
- assertThat(req.getApplicationId().tenant().value(), is("jason"));
- assertThat(req.getApplicationId().application().value(), is("alcide"));
- assertThat(req.getApplicationId().instance().value(), is("default"));
+ assertEquals("jason", req.getApplicationId().tenant().value());
+ assertEquals("alcide", req.getApplicationId().application().value());
+ assertEquals("default", req.getApplicationId().instance().value());
}
@Test