From d612730b2e24bbb19980217091670afa06e09a66 Mon Sep 17 00:00:00 2001 From: Christoph Deppisch Date: Thu, 2 May 2024 20:23:04 +0200 Subject: [PATCH] chore: Fix load Camel route resource step --- .../main/java/org/citrusframework/yaks/camel/CamelSteps.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);