diff options
-rw-r--r-- | application/pom.xml | 7 | ||||
-rw-r--r-- | application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/application/pom.xml b/application/pom.xml index f9f3e8394af..20b754fc236 100644 --- a/application/pom.xml +++ b/application/pom.xml @@ -134,7 +134,12 @@ <artifactId>httpclient</artifactId> <scope>test</scope> </dependency> - + <dependency> + <groupId>com.yahoo.vespa</groupId> + <artifactId>testutil</artifactId> + <version>${project.version}</version> + <scope>test</scope> + </dependency> <!-- These dependencies are necessary in test classpath when using jdisc_http_filters --> <dependency> diff --git a/application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java b/application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java index 66a7ae579fa..6a2b7945d73 100644 --- a/application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java +++ b/application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java @@ -7,6 +7,7 @@ import com.yahoo.application.container.handler.Request; import com.yahoo.application.container.handler.Response; import com.yahoo.tensor.Tensor; import com.yahoo.tensor.TensorType; +import com.yahoo.test.json.JsonTestHelper; import org.junit.Ignore; import org.junit.Test; @@ -64,7 +65,7 @@ public class ContainerModelEvaluationTest { private void assertResponse(String url, String expectedResponse, JDisc jdisc) { try { Response response = jdisc.handleRequest(new Request(url)); - assertEquals(expectedResponse, response.getBodyAsString()); + JsonTestHelper.assertJsonEquals(expectedResponse, response.getBodyAsString()); assertEquals(200, response.getStatus()); } catch (CharacterCodingException e) { |