Skip to content

Commit

Permalink
chore: include test xml routes in native image
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Jan 3, 2020
1 parent fabd529 commit ebe54ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#
quarkus.log.file.enable = false

# include xml routes in native image
quarkus.native.additional-build-args = -H:IncludeResources=routes/my-routes.xml

#
# Camel
#
Expand All @@ -27,4 +30,4 @@ camel.context.name=quarkus-camel-example
#
# Main
#
camel.main.xml-routes = file:src/test/resources/my-routes.xml
camel.main.xml-routes = classpath:routes/my-routes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,13 @@
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
import io.restassured.path.json.JsonPath;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

@QuarkusTest
public class CamelTest {
/*
* This test is tagged with quarkus-platform-ignore as it needs to be
* ignored when running camel test from the quarkus-platform as the
* test relies on a local route file being loaded.
*/
@Test
@Tag("quarkus-platform-ignore")
public void testMainInstanceWithXmlRoutes() {
JsonPath p = RestAssured.given()
.accept(MediaType.APPLICATION_JSON)
Expand Down

0 comments on commit ebe54ae

Please sign in to comment.