You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by wt...@apache.org on 2009/02/24 22:56:36 UTC
svn commit: r747561 - in /camel/trunk/components/camel-cxf/src/test:
java/org/apache/camel/component/cxf/cxfbean/CxfBeanTest.java
resources/org/apache/camel/component/cxf/cxfbean/CxfBeanTest-context.xml
Author: wtam
Date: Tue Feb 24 21:56:35 2009
New Revision: 747561
URL: http://svn.apache.org/viewvc?rev=747561&view=rev
Log:
add snippet annotation
Modified:
camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/cxfbean/CxfBeanTest.java
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/cxfbean/CxfBeanTest-context.xml
Modified: camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/cxfbean/CxfBeanTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/cxfbean/CxfBeanTest.java?rev=747561&r1=747560&r2=747561&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/cxfbean/CxfBeanTest.java (original)
+++ camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/cxfbean/CxfBeanTest.java Tue Feb 24 21:56:35 2009
@@ -55,7 +55,9 @@
@Override
public void configure() throws Exception {
+ // START SNIPPET: routeDefinition
from("jetty:http://localhost:9000?matchOnUriPrefix=true").to("cxfbean:customerServiceBean");
+ // END SNIPPET: routeDefinition
}
@@ -69,10 +71,12 @@
InputStream in = url.openStream();
assertEquals("{\"Customer\":{\"id\":123,\"name\":\"John\"}}", getStringFromInputStream(in));
+ // START SNIPPET: clientInvocation
url = new URL("http://localhost:9000/customerservice/orders/223/products/323");
in = url.openStream();
assertEquals("{\"Product\":{\"description\":\"product 323\",\"id\":323}}", getStringFromInputStream(in));
-
+ // END SNIPPET: clientInvocation
+
}
Modified: camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/cxfbean/CxfBeanTest-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/cxfbean/CxfBeanTest-context.xml?rev=747561&r1=747560&r2=747561&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/cxfbean/CxfBeanTest-context.xml (original)
+++ camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/cxfbean/CxfBeanTest-context.xml Tue Feb 24 21:56:35 2009
@@ -28,8 +28,10 @@
xmlns="http://camel.apache.org/schema/spring">
</camelContext>
+ <!-- START SNIPPET: beanDefinition -->
<util:list id="customerServiceBean">
<bean class="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService" />
</util:list>
+ <!-- END SNIPPET: beanDefinition -->
</beans>
\ No newline at end of file