From e3ef27902e2eaeb8ce830231433f510453486a98 Mon Sep 17 00:00:00 2001 From: bridgerdier Date: Wed, 6 Sep 2023 16:15:32 +0200 Subject: [PATCH] update assertion to changed logging behavior (#722) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Valentin Brückel Co-authored-by: Thomas Bayer --- .../membrane/examples/tests/LoggingCSVTest.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/distribution/src/test/java/com/predic8/membrane/examples/tests/LoggingCSVTest.java b/distribution/src/test/java/com/predic8/membrane/examples/tests/LoggingCSVTest.java index b54a4ef9c..38495c453 100644 --- a/distribution/src/test/java/com/predic8/membrane/examples/tests/LoggingCSVTest.java +++ b/distribution/src/test/java/com/predic8/membrane/examples/tests/LoggingCSVTest.java @@ -14,13 +14,14 @@ package com.predic8.membrane.examples.tests; -import static com.predic8.membrane.core.http.MimeType.TEXT_HTML; +import com.predic8.membrane.examples.util.DistributionExtractingTestcase; +import com.predic8.membrane.examples.util.Process2; +import org.junit.jupiter.api.Test; + +import static com.predic8.membrane.core.http.MimeType.APPLICATION_JSON; import static com.predic8.membrane.test.AssertUtils.assertContains; import static com.predic8.membrane.test.AssertUtils.getAndAssert200; -import com.predic8.membrane.examples.util.*; -import org.junit.jupiter.api.Test; - public class LoggingCSVTest extends DistributionExtractingTestcase { @Override @@ -33,6 +34,6 @@ public void test() throws Exception { try(Process2 ignored = startServiceProxyScript()) { getAndAssert200("http://localhost:2000/"); } - assertContains(TEXT_HTML, readFile("log.csv")); + assertContains(APPLICATION_JSON, readFile("log.csv")); } -} \ No newline at end of file +}