chore: add tests for quarkusio/quarkus#4408
@@ -21,6 +21,7 @@ import io.restassured.RestAssured;
import org.apache.camel.component.platform.http.PlatformHttpComponent;
import org.apache.camel.component.platform.http.PlatformHttpConstants;
import org.apache.camel.quarkus.component.platform.http.runtime.QuarkusPlatformHttpEngine;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.equalTo;
@@ -49,4 +50,11 @@ class PlatformHttpEngineTest {
.statusCode(200)
.body(equalTo("platform-http/hello"));
}
+
+ @Disabled("https://github.com/quarkusio/quarkus/issues/4408")
+ @Test
+ public void invalidMethod() {
+ RestAssured.post("/platform-http/hello")
+ .then().statusCode(405);
+ }
}
