Skip to content

Commit

Permalink
update assertion to changed logging behavior (#722)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Brückel <[email protected]>
Co-authored-by: Thomas Bayer <[email protected]>
  • Loading branch information
3 people authored Sep 6, 2023
1 parent 14b3661 commit e3ef279
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"));
}
}
}

0 comments on commit e3ef279

Please sign in to comment.