ppalaga commented on a change in pull request #226: Use MainSupport as base for running Camel URL: https://github.com/apache/camel-quarkus/pull/226#discussion_r331444759
########## File path: extensions/servlet/deployment/src/test/java/org/apache/camel/quarkus/component/servlet/test/CustomDefaultServletClassTest.java ########## @@ -30,25 +37,45 @@ @RegisterExtension static final QuarkusUnitTest CONFIG = new QuarkusUnitTest() .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class) - .addClasses(Routes.class) - .addAsResource(new StringAsset( - "quarkus.camel.servlet.url-patterns=/*\n" - + "quarkus.camel.servlet.servlet-name=my-named-servlet\n" - + "quarkus.camel.servlet.servlet-class=" + CustomServlet.class.getName() + "\n"), - "application.properties")); + .addAsResource(applicationProperties(), "application.properties")); @Test - public void customDefaultServletClass() { - RestAssured.when().get("/custom").then() - .body(IsEqual.equalTo("GET: /custom")) - .and().header("x-servlet-class-name", CustomServlet.class.getName()); + public void customDefaultServletClass() throws Exception { + DefaultCamelContext context = new DefaultCamelContext(); + context.addRoutes(new Routes()); + context.start(); Review comment: Why do we have to do this manually now? ---------------------------------------------------------------- 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