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 2009/09/17 15:50:24 UTC
svn commit: r816190 - in /camel/trunk/camel-core/src/test:
java/org/apache/camel/language/ java/org/apache/camel/model/
java/org/apache/camel/util/ resources/org/apache/camel/model/
Author: davsclaus
Date: Thu Sep 17 13:50:23 2009
New Revision: 816190
URL: http://svn.apache.org/viewvc?rev=816190&view=rev
Log:
MR-187: Added more unit tests.
Added:
camel/trunk/camel-core/src/test/java/org/apache/camel/language/NoSuchLanguageTest.java
- copied, changed from r816164, camel/trunk/camel-core/src/test/java/org/apache/camel/language/ConstantTest.java
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithArtixDSDataFormat.xml (with props)
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithBindyDataFormat.xml (with props)
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithCvsDataFormat.xml (with props)
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithFlatpackDataFormat.xml (with props)
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithHL7DataFormat.xml
- copied, changed from r816171, camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTopicLoadBalance.xml
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJSonDataFormat.xml (with props)
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJaxbDataFormat.xml (with props)
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithRSSDataFormat.xml (with props)
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTidyMarkupDataFormat.xml (with props)
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLBeansDataFormat.xml (with props)
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLSecurityDataFormat.xml (with props)
camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXStreamDataFormat.xml (with props)
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/model/XmlParseTest.java
camel/trunk/camel-core/src/test/java/org/apache/camel/util/ExchangeHelperTest.java
Copied: camel/trunk/camel-core/src/test/java/org/apache/camel/language/NoSuchLanguageTest.java (from r816164, camel/trunk/camel-core/src/test/java/org/apache/camel/language/ConstantTest.java)
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/language/NoSuchLanguageTest.java?p2=camel/trunk/camel-core/src/test/java/org/apache/camel/language/NoSuchLanguageTest.java&p1=camel/trunk/camel-core/src/test/java/org/apache/camel/language/ConstantTest.java&r1=816164&r2=816190&rev=816190&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/language/ConstantTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/language/NoSuchLanguageTest.java Thu Sep 17 13:50:23 2009
@@ -17,20 +17,21 @@
package org.apache.camel.language;
import org.apache.camel.LanguageTestSupport;
+import org.apache.camel.NoSuchLanguageException;
-public class ConstantTest extends LanguageTestSupport {
+public class NoSuchLanguageTest extends LanguageTestSupport {
- public void testConstantExpressions() throws Exception {
- // We can put anything in here, the expression will
- // always evaluate to itself
- assertExpression("a value", "a value");
- }
-
- public void testPredicates() throws Exception {
- assertPredicate("another value");
+ public void testNoSuchLanguage() throws Exception {
+ try {
+ assertPredicate("foo");
+ fail("Should have thrown an exception");
+ } catch (NoSuchLanguageException e) {
+ assertEquals("No language could be found for: unknown", e.getMessage());
+ assertEquals("unknown", e.getLanguage());
+ }
}
protected String getLanguageName() {
- return "constant";
+ return "unknown";
}
-}
+}
\ No newline at end of file
Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/model/XmlParseTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/model/XmlParseTest.java?rev=816190&r1=816189&r2=816190&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/model/XmlParseTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/model/XmlParseTest.java Thu Sep 17 13:50:23 2009
@@ -30,6 +30,7 @@
* @version $Revision$
*/
public class XmlParseTest extends XmlTestSupport {
+
public void testParseSimpleRouteXml() throws Exception {
RouteDefinition route = assertOneRoute("simpleRoute.xml");
assertFrom(route, "seda:a");
@@ -235,6 +236,66 @@
assertTrue("The loadBalancer shoud be TopicLoadBalancerDefinition", loadBalance.getLoadBalancerType() instanceof TopicLoadBalancerDefinition);
}
+ public void testParseHL7DataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithHL7DataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseXStreamDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithXStreamDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseXMLBeansDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithXMLBeansDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseXMLSecurityDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithXMLSecurityDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseTidyMarkupDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithTidyMarkupDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseRSSDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithRSSDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseJSonDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithJSonDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseJaxbDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithJSonDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseFlatpackDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithFlatpackDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseCvsDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithCvsDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseBindyDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithBindyDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
+ public void testParseArtixDSDataFormat() throws Exception {
+ RouteDefinition route = assertOneRoute("routeWithArtixDSDataFormat.xml");
+ assertFrom(route, "seda:a");
+ }
+
public void testParseBatchResequencerXml() throws Exception {
RouteDefinition route = assertOneRoute("resequencerBatch.xml");
ResequenceDefinition resequencer = assertOneProcessorInstanceOf(ResequenceDefinition.class, route);
Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/util/ExchangeHelperTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/util/ExchangeHelperTest.java?rev=816190&r1=816189&r2=816190&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/util/ExchangeHelperTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/util/ExchangeHelperTest.java Thu Sep 17 13:50:23 2009
@@ -18,20 +18,18 @@
import java.util.List;
-import junit.framework.TestCase;
-
+import org.apache.camel.ContextTestSupport;
import org.apache.camel.Exchange;
+import org.apache.camel.NoSuchBeanException;
+import org.apache.camel.NoSuchHeaderException;
import org.apache.camel.NoSuchPropertyException;
import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.impl.DefaultExchange;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
/**
* @version $Revision$
*/
-public class ExchangeHelperTest extends TestCase {
- private static final transient Log LOG = LogFactory.getLog(ExchangeHelperTest.class);
+public class ExchangeHelperTest extends ContextTestSupport {
protected Exchange exchange;
@@ -45,7 +43,7 @@
String value = ExchangeHelper.getMandatoryProperty(exchange, "bar", String.class);
fail("Should have failed but got: " + value);
} catch (NoSuchPropertyException e) {
- LOG.debug("Caught expected: " + e, e);
+ assertEquals("bar", e.getPropertyName());
}
}
@@ -54,12 +52,42 @@
List value = ExchangeHelper.getMandatoryProperty(exchange, "foo", List.class);
fail("Should have failed but got: " + value);
} catch (NoSuchPropertyException e) {
- LOG.debug("Caught expected: " + e, e);
+ assertEquals("foo", e.getPropertyName());
+ }
+ }
+
+ public void testMissingHeader() throws Exception {
+ try {
+ String value = ExchangeHelper.getMandatoryHeader(exchange, "unknown", String.class);
+ fail("Should have failed but got: " + value);
+ } catch (NoSuchHeaderException e) {
+ assertEquals("unknown", e.getHeaderName());
+ }
+ }
+
+ public void testHeaderOfIncompatibleType() throws Exception {
+ exchange.getIn().setHeader("foo", 123);
+ try {
+ List value = ExchangeHelper.getMandatoryHeader(exchange, "foo", List.class);
+ fail("Should have failed but got: " + value);
+ } catch (NoSuchHeaderException e) {
+ assertEquals("foo", e.getHeaderName());
+ }
+ }
+
+ public void testNoSuchBean() throws Exception {
+ try {
+ ExchangeHelper.lookupMandatoryBean(exchange, "foo");
+ fail("Should have thrown an exception");
+ } catch (NoSuchBeanException e) {
+ assertEquals("No bean could be found in the registry for: foo", e.getMessage());
+ assertEquals("foo", e.getName());
}
}
@Override
protected void setUp() throws Exception {
+ super.setUp();
exchange = new DefaultExchange(new DefaultCamelContext());
exchange.setProperty("foo", 123);
}
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithArtixDSDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithArtixDSDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithArtixDSDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithArtixDSDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <artixDS/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithArtixDSDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithArtixDSDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithArtixDSDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithBindyDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithBindyDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithBindyDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithBindyDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <bindy bindyTyp="Csv" packages="org.apache.camel"/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithBindyDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithBindyDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithBindyDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithCvsDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithCvsDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithCvsDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithCvsDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <cvs/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithCvsDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithCvsDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithCvsDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithFlatpackDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithFlatpackDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithFlatpackDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithFlatpackDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <flatpack/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithFlatpackDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithFlatpackDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithFlatpackDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Copied: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithHL7DataFormat.xml (from r816171, camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTopicLoadBalance.xml)
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithHL7DataFormat.xml?p2=camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithHL7DataFormat.xml&p1=camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTopicLoadBalance.xml&r1=816171&r2=816190&rev=816190&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTopicLoadBalance.xml (original)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithHL7DataFormat.xml Thu Sep 17 13:50:23 2009
@@ -18,11 +18,11 @@
<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="seda:a"/>
- <loadBalance>
- <topic/>
+ <pipeline>
+ <marshal>
+ <hl7/>
+ </marshal>
<to uri="seda:b"/>
- <to uri="seda:c"/>
- <to uri="seda:d"/>
- </loadBalance>
+ </pipeline>
</route>
</routes>
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJSonDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJSonDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJSonDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJSonDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <json library="Jackson"/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJSonDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJSonDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJSonDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJaxbDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJaxbDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJaxbDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJaxbDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <jaxb contextPath="org.apache.camel.model"/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJaxbDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJaxbDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithJaxbDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithRSSDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithRSSDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithRSSDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithRSSDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <rss/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithRSSDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithRSSDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithRSSDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTidyMarkupDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTidyMarkupDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTidyMarkupDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTidyMarkupDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <tidyMarkup/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTidyMarkupDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTidyMarkupDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithTidyMarkupDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLBeansDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLBeansDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLBeansDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLBeansDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <xmlBeans/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLBeansDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLBeansDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLBeansDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLSecurityDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLSecurityDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLSecurityDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLSecurityDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <xmlSecurity/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLSecurityDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLSecurityDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXMLSecurityDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXStreamDataFormat.xml
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXStreamDataFormat.xml?rev=816190&view=auto
==============================================================================
--- camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXStreamDataFormat.xml (added)
+++ camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXStreamDataFormat.xml Thu Sep 17 13:50:23 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<routes id="camel" xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="seda:a"/>
+ <pipeline>
+ <marshal>
+ <xstream/>
+ </marshal>
+ <to uri="seda:b"/>
+ </pipeline>
+ </route>
+</routes>
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXStreamDataFormat.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXStreamDataFormat.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: camel/trunk/camel-core/src/test/resources/org/apache/camel/model/routeWithXStreamDataFormat.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml