ppalaga commented on a change in pull request #230: Ensure the PlatformHttpComponent is registered before the routes are started URL: https://github.com/apache/camel-quarkus/pull/230#discussion_r331954607
########## File path: integration-tests/platform-http/src/test/java/org/apache/camel/quarkus/component/http/server/it/PlatformHttpTest.java ########## @@ -18,20 +18,63 @@ import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; - +import io.restassured.path.json.JsonPath; +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.core.IsEqual.equalTo; +import static org.hamcrest.CoreMatchers.equalTo; @QuarkusTest class PlatformHttpTest { + @Disabled("looks like adding resteasy break the component") + @Test + public void testRegistrySetUp() { + + JsonPath p = RestAssured.given() + .get("/test/registry/inspect") + .then() + .statusCode(200) + .extract() + .body() + .jsonPath(); + + //assertThat(p.getString(PlatformHttpConstants.PLATFORM_HTTP_ENGINE_NAME)).isEqualTo(QuarkusPlatformHttpEngine.class.getName()); + //assertThat(p.getString(PlatformHttpConstants.PLATFORM_HTTP_COMPONENT_NAME)).isEqualTo(PlatformHttpComponent.class.getName()); Review comment: Should these two lines really stay commented? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services