You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2018/03/21 12:13:49 UTC
[camel] 01/02: Fixed and speedup test
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit f406e1ef1f4da281e7c383d6136e37165fe6a6fa
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Mar 21 10:14:42 2018 +0100
Fixed and speedup test
---
.../camel/processor/intercept/FromFileInterceptSendToIssue.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/camel-core/src/test/java/org/apache/camel/processor/intercept/FromFileInterceptSendToIssue.java b/camel-core/src/test/java/org/apache/camel/processor/intercept/FromFileInterceptSendToIssue.java
index ad656e4..9b62169 100644
--- a/camel-core/src/test/java/org/apache/camel/processor/intercept/FromFileInterceptSendToIssue.java
+++ b/camel-core/src/test/java/org/apache/camel/processor/intercept/FromFileInterceptSendToIssue.java
@@ -31,14 +31,14 @@ public class FromFileInterceptSendToIssue extends ContextTestSupport {
public void testInterceptSendTo() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:foo");
mock.expectedMessageCount(1);
- mock.expectedHeaderReceived(Exchange.INTERCEPTED_ENDPOINT, "direct://foo");
+ mock.expectedHeaderReceived(Exchange.INTERCEPTED_ENDPOINT, "seda://foo");
template.sendBodyAndHeader("file://target/intercept", "Hello World", Exchange.FILE_NAME, "input.txt");
assertMockEndpointsSatisfied();
Exchange exchange = mock.getReceivedExchanges().get(0);
- assertEquals("file://target/intercept", exchange.getFromEndpoint().getEndpointUri());
+ assertTrue(exchange.getFromEndpoint().getEndpointUri().startsWith("file://target/intercept"));
}
@Override
@@ -46,11 +46,11 @@ public class FromFileInterceptSendToIssue extends ContextTestSupport {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
- interceptSendToEndpoint("direct:foo").to("mock:foo");
+ interceptSendToEndpoint("seda:foo").to("mock:foo");
from("file://target/intercept?initialDelay=0&delay=10")
.setHeader(Exchange.FILE_NAME, constant("hello.txt"))
- .to("direct:foo");
+ .to("seda:foo");
}
};
}
--
To stop receiving notification emails like this one, please contact
davsclaus@apache.org.