Skip to content

Commit

Permalink
chore: Fix load Camel route resource step
Browse files Browse the repository at this point in the history
  • Loading branch information
christophd committed May 2, 2024
1 parent 5340998 commit d612730
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d612730

Please sign in to comment.