Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Croway committed Dec 5, 2023
1 parent ed45421 commit 99ec5fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.apache.camel.component.master.springboot;

import java.util.Map;
import java.util.UUID;

import org.apache.camel.Consumer;
import org.apache.camel.Endpoint;
Expand Down Expand Up @@ -71,8 +72,9 @@ protected RouteBuilder createRouteBuilder() throws Exception {
setupClusterService();
return new RouteBuilder() {
public void configure() {
final String randomMasterId = UUID.randomUUID().toString();
context.addComponent("dummy", new DummyComponent());
from("master:test:dummy://path?foo=hello}+world&bar=RAW(hello}+world)")
from("master:" + randomMasterId + ":dummy://path?foo=hello}+world&bar=RAW(hello}+world)")
.to("mock:result");
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,11 @@ public MongoDbComponent mongoDbComponent() {
}

@Bean
public void propertyLocation() {
public String propertyLocation() {
String propertyLocation = "classpath:mongodb.test.properties";
context.getPropertiesComponent().setLocation("classpath:mongodb.test.properties");

return propertyLocation;
}
}
}
6 changes: 6 additions & 0 deletions core/camel-spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
<optional>true</optional>
<version>${spring-boot-version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
<scope>compile</scope> <!-- Avoid ClassNotFound AvailabilityStateHealthIndicator -->
<version>${spring-boot-version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
Expand Down

0 comments on commit 99ec5fc

Please sign in to comment.