Author: davsclaus
Date: Thu Oct 22 13:59:01 2009
New Revision: 828698
URL: http://svn.apache.org/viewvc?rev=828698&view=rev
Log:
Added wiki tags
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/BeanProxyTest.java
camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/OrderService.java
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/BeanProxyTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/BeanProxyTest.java?rev=828698&r1=828697&r2=828698&view=diff
==============================================================================
---
camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/BeanProxyTest.java
(original)
+++
camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/BeanProxyTest.java
Thu Oct 22 13:59:01 2009
@@ -30,11 +30,13 @@
public class BeanProxyTest extends ContextTestSupport {
public void testBeanProxyStringReturnString() throws Exception {
+ // START SNIPPET: e2
Endpoint endpoint = context.getEndpoint("direct:start");
OrderService service = ProxyHelper.createProxy(endpoint,
OrderService.class);
String reply = service.submitOrderStringReturnString("<order
type=\"book\">Camel in action</order>");
assertEquals("<order id=\"123\">OK</order>", reply);
+ // END SNIPPET: e2
}
public void testBeanProxyStringReturnDocument() throws Exception {
@@ -58,6 +60,7 @@
}
public void testBeanProxyDocumentReturnDocument() throws Exception {
+ // START SNIPPET: e3
Endpoint endpoint = context.getEndpoint("direct:start");
OrderService service = ProxyHelper.createProxy(endpoint,
OrderService.class);
@@ -67,6 +70,7 @@
assertNotNull(reply);
String s = context.getTypeConverter().convertTo(String.class, reply);
assertEquals("<order id=\"123\">OK</order>", s);
+ // END SNIPPET: e3
}
public void testBeanProxyFailure() throws Exception {
@@ -123,6 +127,7 @@
return new RouteBuilder() {
@Override
public void configure() throws Exception {
+ // START SNIPPET: e1
from("direct:start")
.choice()
.when(xpath("/order/@type = 'book'")).to("direct:book")
@@ -132,6 +137,7 @@
from("direct:book").transform(constant("<order
id=\"123\">OK</order>"));
from("direct:other").transform(constant("<order>FAIL</order>"));
+ // END SNIPPET: e1
}
};
}
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/OrderService.java
URL:
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/OrderService.java?rev=828698&r1=828697&r2=828698&view=diff
==============================================================================
---
camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/OrderService.java
(original)
+++
camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/OrderService.java
Thu Oct 22 13:59:01 2009
@@ -21,6 +21,7 @@
/**
* @version $Revision$
*/
+// START SNIPPET: e1
public interface OrderService {
String submitOrderStringReturnString(String order);
@@ -36,3 +37,4 @@
Integer invalidReturnType(String s);
}
+// END SNIPPET: e1