diff --git a/components/camel-seda/src/main/docs/seda-component.adoc b/components/camel-seda/src/main/docs/seda-component.adoc index 57b6c122dc41b..65571385c3f0c 100644 --- a/components/camel-seda/src/main/docs/seda-component.adoc +++ b/components/camel-seda/src/main/docs/seda-component.adoc @@ -220,40 +220,7 @@ async queue to be able to send a fire-and-forget message for further processing in another thread, and return a constant reply in this thread to the original caller. -[source,java] ----- - @Test - public void testSendAsync() throws Exception { - MockEndpoint mock = getMockEndpoint("mock:result"); - mock.expectedBodiesReceived("Hello World"); - - // START SNIPPET: e2 - Object out = template.requestBody("direct:start", "Hello World"); - assertEquals("OK", out); - // END SNIPPET: e2 - - assertMockEndpointsSatisfied(); - } - - @Override - protected RouteBuilder createRouteBuilder() throws Exception { - return new RouteBuilder() { - // START SNIPPET: e1 - public void configure() throws Exception { - from("direct:start") - // send it to the seda queue that is async - .to("seda:next") - // return a constant response - .transform(constant("OK")); - - from("seda:next").to("mock:result"); - } - // END SNIPPET: e1 - }; - } ----- - -Here we send a Hello World message and expects the reply to be OK. +We send a Hello World message and expects the reply to be OK. [source,java] ----