This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch saxon in repository https://gitbox.apache.org/repos/asf/camel.git
commit 69ef57a508e279ab3b32f1ee8133d0a65eb9ae85 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Thu Nov 14 10:56:50 2019 +0100 CAMEL-14167: camel-xslt - Split up into camel-saxon-xslt --- .../karaf/features/src/main/resources/features.xml | 4 ++ .../camel/itest/karaf/CamelXsltSaxonTest.java | 33 +++++++++++++++ .../camel/itest/springboot/CamelXsltSaxonTest.java | 47 ++++++++++++++++++++++ 3 files changed, 84 insertions(+) diff --git a/platforms/karaf/features/src/main/resources/features.xml b/platforms/karaf/features/src/main/resources/features.xml index 6c1af12..0ae46a0 100644 --- a/platforms/karaf/features/src/main/resources/features.xml +++ b/platforms/karaf/features/src/main/resources/features.xml @@ -2646,6 +2646,10 @@ <bundle dependency='true'>wrap:mvn:org.minidns/minidns-core/${minidns-version}</bundle> <bundle>mvn:org.apache.camel/camel-xmpp/${project.version}</bundle> </feature> + <feature name='camel-xslt-saxon' version='${project.version}' start-level='50'> + <feature version='${project.version}'>camel-saxon</feature> + <bundle>mvn:org.apache.camel/camel-xslt-saxon/${project.version}</bundle> + </feature> <feature name='camel-xstream' version='${project.version}' start-level='50'> <feature version='${project.version}'>camel-core</feature> <bundle dependency='true'>mvn:org.codehaus.jettison/jettison/${jettison-version}</bundle> diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelXsltSaxonTest.java b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelXsltSaxonTest.java new file mode 100644 index 0000000..f7c4f29 --- /dev/null +++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelXsltSaxonTest.java @@ -0,0 +1,33 @@ +/* + * 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.itest.karaf; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.ops4j.pax.exam.junit.PaxExam; + +@RunWith(PaxExam.class) +public class CamelXsltSaxonTest extends BaseKarafTest { + + public static final String COMPONENT = extractName(CamelXsltSaxonTest.class); + + @Test + public void test() throws Exception { + testComponent(COMPONENT); + } + +} \ No newline at end of file diff --git a/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/CamelXsltSaxonTest.java b/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/CamelXsltSaxonTest.java new file mode 100644 index 0000000..8b48b35 --- /dev/null +++ b/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/CamelXsltSaxonTest.java @@ -0,0 +1,47 @@ +/* + * 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.itest.springboot; + +import org.apache.camel.itest.springboot.util.ArquillianPackager; +import org.jboss.arquillian.container.test.api.Deployment; +import org.jboss.arquillian.junit.Arquillian; +import org.jboss.shrinkwrap.api.Archive; +import org.junit.Test; +import org.junit.runner.RunWith; + + +@RunWith(Arquillian.class) +public class CamelXsltSaxonTest extends AbstractSpringBootTestSupport { + + @Deployment + public static Archive<?> createSpringBootPackage() throws Exception { + return ArquillianPackager.springBootPackage(createTestConfig()); + } + + public static ITestConfig createTestConfig() { + return new ITestConfigBuilder() + .module(inferModuleName(CamelXsltSaxonTest.class)) + .build(); + } + + @Test + public void componentTests() throws Exception { + this.runComponentTest(config); + this.runModuleUnitTestsIfEnabled(config); + } + +}