This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit dc6dfe6b5635571d343e461ea25fafa0368a2457 Author: Luca Burgazzoli <[email protected]> AuthorDate: Tue Mar 9 18:30:21 2021 +0100 dsl: refactor camel-xml-jaxb-dsl tests (jbpm) --- dsl/camel-xml-jaxb-dsl-test/jbpm/pom.xml | 187 +++++++++++++++++++++ .../jbpm/server/CamelKieServerExtensionTest.java | 0 .../jbpm}/src/test/resources/camel-routes.xml | 0 .../src/test/resources/global-camel-routes.xml | 0 .../jbpm/src/test/resources/log4j2-test.properties | 31 ++++ dsl/camel-xml-jaxb-dsl-test/pom.xml | 1 + 6 files changed, 219 insertions(+) diff --git a/dsl/camel-xml-jaxb-dsl-test/jbpm/pom.xml b/dsl/camel-xml-jaxb-dsl-test/jbpm/pom.xml new file mode 100644 index 0000000..7cb2501 --- /dev/null +++ b/dsl/camel-xml-jaxb-dsl-test/jbpm/pom.xml @@ -0,0 +1,187 @@ +<?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. + +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.camel</groupId> + <artifactId>camel-xml-jaxb-dsl-test</artifactId> + <version>3.9.0-SNAPSHOT</version> + </parent> + + <artifactId>camel-xml-jaxb-dsl-test-jbpm</artifactId> + <packaging>jar</packaging> + <name>Camel :: XML DSL Jaxb :: Test :: JBPM</name> + <description>Camel XML DSL Tests with Jaxb and JBPM</description> + + <properties> + <firstVersion>3.9.0</firstVersion> + </properties> + + <dependencies> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-xml-jaxb-dsl</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-support</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-jbpm</artifactId> + </dependency> + + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-core</artifactId> + <type>test-jar</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-main</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-management</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-direct</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-rest</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-mock</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-core-languages</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-bean</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-log</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-telegram</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-seda</artifactId> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.assertj</groupId> + <artifactId>assertj-core</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-test-junit5</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.hamcrest</groupId> + <artifactId>hamcrest</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-junit-jupiter</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.jbpm</groupId> + <artifactId>jbpm-workitems-core</artifactId> + <version>${jbpm-version}</version> + <type>test-jar</type> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>xml-apis</groupId> + <artifactId>xml-apis</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.kie.server</groupId> + <artifactId>kie-server-services-common</artifactId> + <version>${jbpm-version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.jbpm</groupId> + <artifactId>jbpm-services-api</artifactId> + <version>${jbpm-version}</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-slf4j-impl</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-jcl</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <!-- skip testing on java 8 --> + <profiles> + <profile> + <id>jdk8</id> + <activation> + <jdk>[,8)</jdk> + </activation> + <properties> + <maven.test.skip.exec>true</maven.test.skip.exec> + </properties> + </profile> + </profiles> + +</project> \ No newline at end of file diff --git a/components/camel-jbpm/src/test/java/org/apache/camel/component/jbpm/server/CamelKieServerExtensionTest.java b/dsl/camel-xml-jaxb-dsl-test/jbpm/src/test/java/org/apache/camel/component/jbpm/server/CamelKieServerExtensionTest.java similarity index 100% rename from components/camel-jbpm/src/test/java/org/apache/camel/component/jbpm/server/CamelKieServerExtensionTest.java rename to dsl/camel-xml-jaxb-dsl-test/jbpm/src/test/java/org/apache/camel/component/jbpm/server/CamelKieServerExtensionTest.java diff --git a/components/camel-jbpm/src/test/resources/camel-routes.xml b/dsl/camel-xml-jaxb-dsl-test/jbpm/src/test/resources/camel-routes.xml similarity index 100% rename from components/camel-jbpm/src/test/resources/camel-routes.xml rename to dsl/camel-xml-jaxb-dsl-test/jbpm/src/test/resources/camel-routes.xml diff --git a/components/camel-jbpm/src/test/resources/global-camel-routes.xml b/dsl/camel-xml-jaxb-dsl-test/jbpm/src/test/resources/global-camel-routes.xml similarity index 100% rename from components/camel-jbpm/src/test/resources/global-camel-routes.xml rename to dsl/camel-xml-jaxb-dsl-test/jbpm/src/test/resources/global-camel-routes.xml diff --git a/dsl/camel-xml-jaxb-dsl-test/jbpm/src/test/resources/log4j2-test.properties b/dsl/camel-xml-jaxb-dsl-test/jbpm/src/test/resources/log4j2-test.properties new file mode 100644 index 0000000..c55a7bf --- /dev/null +++ b/dsl/camel-xml-jaxb-dsl-test/jbpm/src/test/resources/log4j2-test.properties @@ -0,0 +1,31 @@ +## --------------------------------------------------------------------------- +## 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. +## --------------------------------------------------------------------------- + +appender.file.type = File +appender.file.name = file +appender.file.fileName = target/camel-xml-jaxb-dsl-test-jbpm.log +appender.file.layout.type = PatternLayout +appender.file.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n + +appender.out.type = Console +appender.out.name = out +appender.out.layout.type = PatternLayout +appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n + +rootLogger.level = INFO +rootLogger.appenderRef.file.ref = file +#rootLogger.appenderRef.out.ref = out diff --git a/dsl/camel-xml-jaxb-dsl-test/pom.xml b/dsl/camel-xml-jaxb-dsl-test/pom.xml index a0296da..1211a15 100644 --- a/dsl/camel-xml-jaxb-dsl-test/pom.xml +++ b/dsl/camel-xml-jaxb-dsl-test/pom.xml @@ -37,6 +37,7 @@ <module>definition</module> <module>management</module> <module>cdi</module> + <module>jbpm</module> <module>spring</module> </modules> </project>
