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 2021/03/18 07:55:16 UTC
[camel] 02/02: CAMEL-16369: camel-endpointdsl and
camel-componentdsl - Test without JMX enabled
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit f40299899596b88744a349f17c942958badd397a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Mar 18 08:54:44 2021 +0100
CAMEL-16369: camel-endpointdsl and camel-componentdsl - Test without JMX enabled
---
core/camel-componentdsl/pom.xml | 26 ++++++++++++++++++++--
.../component/ComponentsBuilderFactoryTest.java | 4 ++--
2 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/core/camel-componentdsl/pom.xml b/core/camel-componentdsl/pom.xml
index f811730..ddc299f 100644
--- a/core/camel-componentdsl/pom.xml
+++ b/core/camel-componentdsl/pom.xml
@@ -56,6 +56,23 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-threadpoolfactory-vertx</artifactId>
</exclusion>
+ <!-- exclude javax.annotation packages as they cause javadoc WARN on java8 vs java11 -->
+ <exclusion>
+ <groupId>javax.annotation</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.spec.javax.annotation</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>jakarta.annotation</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.drill.exec</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
</exclusions>
</dependency>
@@ -72,10 +89,15 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
- <artifactId>camel-core</artifactId>
- <type>test-jar</type>
+ <artifactId>camel-test-junit5</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-slf4j-impl</artifactId>
<scope>test</scope>
</dependency>
+
</dependencies>
</project>
\ No newline at end of file
diff --git a/core/camel-componentdsl/src/test/java/org/apache/camel/builder/component/ComponentsBuilderFactoryTest.java b/core/camel-componentdsl/src/test/java/org/apache/camel/builder/component/ComponentsBuilderFactoryTest.java
index 7dd3b3b..d6a29d0 100644
--- a/core/camel-componentdsl/src/test/java/org/apache/camel/builder/component/ComponentsBuilderFactoryTest.java
+++ b/core/camel-componentdsl/src/test/java/org/apache/camel/builder/component/ComponentsBuilderFactoryTest.java
@@ -16,19 +16,19 @@
*/
package org.apache.camel.builder.component;
-import org.apache.camel.ContextTestSupport;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.kafka.KafkaComponent;
import org.apache.camel.component.kafka.KafkaConfiguration;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.component.timer.TimerComponent;
+import org.apache.camel.test.junit5.CamelTestSupport;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
-public class ComponentsBuilderFactoryTest extends ContextTestSupport {
+public class ComponentsBuilderFactoryTest extends CamelTestSupport {
@Test
public void testIfCreateComponentCorrectlyWithoutContextProvided() {