This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 7015979  camel-mock - Fix doc to use context.getEndpoint() instead of 
resolveEndpoint()
7015979 is described below

commit 70159790908566e8b4aa446c3468237ccc3aa165
Author: Tadayoshi Sato <[email protected]>
AuthorDate: Thu Apr 23 22:56:09 2020 +0900

    camel-mock - Fix doc to use context.getEndpoint() instead of 
resolveEndpoint()
---
 components/camel-mock/src/main/docs/mock-component.adoc | 4 ++--
 docs/components/modules/ROOT/pages/mock-component.adoc  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-mock/src/main/docs/mock-component.adoc 
b/components/camel-mock/src/main/docs/mock-component.adoc
index f121cbe..74076b6 100644
--- a/components/camel-mock/src/main/docs/mock-component.adoc
+++ b/components/camel-mock/src/main/docs/mock-component.adoc
@@ -155,7 +155,7 @@ test has run, we assert that our expectations have been met:
 
 [source,java]
 ----
-MockEndpoint resultEndpoint = context.resolveEndpoint("mock:foo", 
MockEndpoint.class);
+MockEndpoint resultEndpoint = context.getEndpoint("mock:foo", 
MockEndpoint.class);
 
 // set expectations
 resultEndpoint.expectedMessageCount(2);
@@ -185,7 +185,7 @@ can do that by setting the `setAssertPeriod` method, for 
example:
 
 [source,java]
 ----
-MockEndpoint resultEndpoint = context.resolveEndpoint("mock:foo", 
MockEndpoint.class);
+MockEndpoint resultEndpoint = context.getEndpoint("mock:foo", 
MockEndpoint.class);
 resultEndpoint.setAssertPeriod(5000);
 resultEndpoint.expectedMessageCount(2);
 
diff --git a/docs/components/modules/ROOT/pages/mock-component.adoc 
b/docs/components/modules/ROOT/pages/mock-component.adoc
index 96c97c1..a8ec986 100644
--- a/docs/components/modules/ROOT/pages/mock-component.adoc
+++ b/docs/components/modules/ROOT/pages/mock-component.adoc
@@ -157,7 +157,7 @@ test has run, we assert that our expectations have been met:
 
 [source,java]
 ----
-MockEndpoint resultEndpoint = context.resolveEndpoint("mock:foo", 
MockEndpoint.class);
+MockEndpoint resultEndpoint = context.getEndpoint("mock:foo", 
MockEndpoint.class);
 
 // set expectations
 resultEndpoint.expectedMessageCount(2);
@@ -187,7 +187,7 @@ can do that by setting the `setAssertPeriod` method, for 
example:
 
 [source,java]
 ----
-MockEndpoint resultEndpoint = context.resolveEndpoint("mock:foo", 
MockEndpoint.class);
+MockEndpoint resultEndpoint = context.getEndpoint("mock:foo", 
MockEndpoint.class);
 resultEndpoint.setAssertPeriod(5000);
 resultEndpoint.expectedMessageCount(2);
 

Reply via email to