Skip to content

Commit

Permalink
Add coverage for case-insensitive HTTP Accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmrcka committed Jan 4, 2022
1 parent 45c5f64 commit 40262f3
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 40262f3

Please sign in to comment.