Skip to content

Commit

Permalink
Fix broken pre-match test
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Apr 11, 2024
1 parent d358c64 commit 47d782f
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

public class PreMatchAcceptInHeader {
public class PreMatchAcceptInHeaderTest {

@RegisterExtension
static ResteasyReactiveUnitTest test = new ResteasyReactiveUnitTest()
.setArchiveProducer(new Supplier<>() {
@Override
public JavaArchive get() {
return ShrinkWrap.create(JavaArchive.class)
.addClass(PathSegmentTest.Resource.class);
return ShrinkWrap.create(JavaArchive.class);
}
});

Expand All @@ -52,7 +51,7 @@ void text() {
.get("test")
.then()
.statusCode(200)
.body(equalTo("test"));
.body(equalTo("text"));
}

@Test
Expand All @@ -62,7 +61,7 @@ void html() {
.get("test")
.then()
.statusCode(200)
.body(equalTo("test"));
.body(containsString("<html>"));
}

@Test
Expand All @@ -71,7 +70,7 @@ void json() {
.when()
.get("test")
.then()
.statusCode(404);
.statusCode(406);
}

@Test
Expand All @@ -82,7 +81,7 @@ void setAcceptToTextInFilter() {
.get("test")
.then()
.statusCode(200)
.body(equalTo("test"));
.body(equalTo("text"));
}

@Path("/test")
Expand Down

0 comments on commit 47d782f

Please sign in to comment.