diff --git a/java/steps/yaks-camel/src/main/java/org/citrusframework/yaks/camel/CamelSteps.java b/java/steps/yaks-camel/src/main/java/org/citrusframework/yaks/camel/CamelSteps.java index a8ed1f6f..3137af10 100644 --- a/java/steps/yaks-camel/src/main/java/org/citrusframework/yaks/camel/CamelSteps.java +++ b/java/steps/yaks-camel/src/main/java/org/citrusframework/yaks/camel/CamelSteps.java @@ -267,7 +267,7 @@ protected void configureRoute(RouteDefinition route) { @Given("^load Camel route ([^\\s]+)\\.(groovy|xml)") public void loadCamelRoute(String fileName, String language) throws Exception { - String route = FileUtils.readToString(ResourceUtils.resolve(fileName, context)); + String route = FileUtils.readToString(ResourceUtils.resolve("%s.%s".formatted(fileName, language), context)); switch (language) { case "groovy": camelRouteGroovy(fileName, route);