Repository: camel Updated Branches: refs/heads/master 2f8b01906 -> 3768550ba
Move spring related split-tockenizer tests to camel-spring Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a1d32c41 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a1d32c41 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a1d32c41 Branch: refs/heads/master Commit: a1d32c416dbef73754aa73bc6d107d5d8ba23989 Parents: 2f8b019 Author: lburgazzoli <lburgazz...@gmail.com> Authored: Mon Jun 19 11:34:03 2017 +0200 Committer: lburgazzoli <lburgazz...@gmail.com> Committed: Mon Jun 19 11:34:03 2017 +0200 ---------------------------------------------------------------------- .../SpringSplitTokenizerGroupDynamicTest.java | 32 -------------- .../SpringSplitTokenizerGroupDynamicTest.xml | 46 -------------------- .../SpringSplitTokenizerGroupDynamicTest.java | 32 ++++++++++++++ .../SpringSplitTokenizerGroupDynamicTest.xml | 46 ++++++++++++++++++++ 4 files changed, 78 insertions(+), 78 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/a1d32c41/camel-core/src/test/java/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.java ---------------------------------------------------------------------- diff --git a/camel-core/src/test/java/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.java b/camel-core/src/test/java/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.java deleted file mode 100644 index d5cd66b..0000000 --- a/camel-core/src/test/java/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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. - */ -package org.apache.camel.spring.processor; - -import org.apache.camel.CamelContext; -import org.apache.camel.processor.SplitTokenizerGroupDynamicTest; - -import static org.apache.camel.spring.processor.SpringTestHelper.createSpringCamelContext; - -/** - * @version - */ -public class SpringSplitTokenizerGroupDynamicTest extends SplitTokenizerGroupDynamicTest { - - protected CamelContext createCamelContext() throws Exception { - return createSpringCamelContext(this, "org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.xml"); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/a1d32c41/camel-core/src/test/resources/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.xml ---------------------------------------------------------------------- diff --git a/camel-core/src/test/resources/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.xml b/camel-core/src/test/resources/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.xml deleted file mode 100644 index 7744a14..0000000 --- a/camel-core/src/test/resources/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.xml +++ /dev/null @@ -1,46 +0,0 @@ -<?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. - ---> -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd - "> - - <!-- START SNIPPET: example --> - <camelContext xmlns="http://camel.apache.org/schema/spring"> - <route> - <from uri="direct:a"/> - <split> - <tokenize token="," group="${header.groups}"/> - <to uri="mock:split"/> - </split> - </route> - <route> - <from uri="direct:b"/> - <split> - <tokenize token="," group="${header.groups}" skipFirst="true"/> - <to uri="mock:split"/> - </split> - </route> - </camelContext> - <!-- END SNIPPET: example --> - -</beans> http://git-wip-us.apache.org/repos/asf/camel/blob/a1d32c41/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.java ---------------------------------------------------------------------- diff --git a/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.java b/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.java new file mode 100644 index 0000000..d5cd66b --- /dev/null +++ b/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.java @@ -0,0 +1,32 @@ +/** + * 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. + */ +package org.apache.camel.spring.processor; + +import org.apache.camel.CamelContext; +import org.apache.camel.processor.SplitTokenizerGroupDynamicTest; + +import static org.apache.camel.spring.processor.SpringTestHelper.createSpringCamelContext; + +/** + * @version + */ +public class SpringSplitTokenizerGroupDynamicTest extends SplitTokenizerGroupDynamicTest { + + protected CamelContext createCamelContext() throws Exception { + return createSpringCamelContext(this, "org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.xml"); + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/a1d32c41/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.xml ---------------------------------------------------------------------- diff --git a/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.xml b/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.xml new file mode 100644 index 0000000..7744a14 --- /dev/null +++ b/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/SpringSplitTokenizerGroupDynamicTest.xml @@ -0,0 +1,46 @@ +<?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. + +--> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd + "> + + <!-- START SNIPPET: example --> + <camelContext xmlns="http://camel.apache.org/schema/spring"> + <route> + <from uri="direct:a"/> + <split> + <tokenize token="," group="${header.groups}"/> + <to uri="mock:split"/> + </split> + </route> + <route> + <from uri="direct:b"/> + <split> + <tokenize token="," group="${header.groups}" skipFirst="true"/> + <to uri="mock:split"/> + </split> + </route> + </camelContext> + <!-- END SNIPPET: example --> + +</beans>