Skip to content

Commit

Permalink
Merge pull request #441 from jsmrcka/feat/resteasy-accept-header
Browse files Browse the repository at this point in the history
Add coverage for case-insensitive HTTP `Accept` header
  • Loading branch information
Pablo Gonzalez Granados authored Jan 5, 2022
2 parents 06a765e + 40262f3 commit 8b55155
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package io.quarkus.ts.http.minimum.reactive;

import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;

import org.apache.http.HttpStatus;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

import io.quarkus.test.scenarios.QuarkusScenario;

@Tag("QUARKUS-1574")
@QuarkusScenario
public class HttpCustomHeadersIT {

@Test
public void caseInsensitiveAcceptHeader() {
given()
.accept("Application/json")
.get("/api/hello")
.then()
.statusCode(HttpStatus.SC_OK)
.body("content", is("Hello, World!"));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package io.quarkus.ts.http.minimum;

import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;

import org.apache.http.HttpStatus;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

import io.quarkus.test.scenarios.QuarkusScenario;

@Tag("QUARKUS-1574")
@QuarkusScenario
public class HttpCustomHeadersIT {

@Test
public void caseInsensitiveAcceptHeader() {
given()
.accept("Application/json")
.get("/api/hello")
.then()
.statusCode(HttpStatus.SC_OK)
.body("content", is("Hello, World!"));
}
}

0 comments on commit 8b55155

Please sign in to comment.