Skip to content

Commit

Permalink
refactor: rename method for ease of reading
Browse files Browse the repository at this point in the history
  • Loading branch information
zregvart committed Jan 18, 2022
1 parent 7f2715e commit fd3b2d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public final class InMemory implements En {

public InMemory(final Camel camel) {
@SuppressWarnings("resource")
final CamelContext camelContext = camel.camel();
final CamelContext camelContext = camel.context();

Given("a running example", () -> {
camelContext.addRoutes(new Route());
Expand Down
2 changes: 1 addition & 1 deletion test-harness/src/main/java/memory/Camel.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Camel() {
}

@SuppressFBWarnings(value = "EI_EXPOSE_REP", justification = "We need to pass it and there is no immutable version of CamelContext")
public CamelContext camel() {
public CamelContext context() {
return camel;
}
}
2 changes: 1 addition & 1 deletion test-harness/src/main/java/memory/InMemorySteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public final class InMemorySteps implements En {

public InMemorySteps(final Camel camel) {
@SuppressWarnings("resource")
final CamelContext camelContext = camel.camel();
final CamelContext camelContext = camel.context();

When("a row is inserted in the source database", (final Customer customer) -> {
try (ProducerTemplate producer = camelContext.createProducerTemplate()) {
Expand Down

0 comments on commit fd3b2d8

Please sign in to comment.