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 2023/01/12 12:54:52 UTC

[camel] 03/03: Remove camel-test in v4

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit e1596062a58e56ff82e0c829d42edd8beabc8fc1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jan 12 13:54:36 2023 +0100

    Remove camel-test in v4
---
 bom/camel-bom/pom.xml                                     |  5 +++++
 .../resources/org/apache/camel/catalog/others.properties  |  1 +
 .../org/apache/camel/catalog/others/test-main-junit5.json | 15 +++++++++++++++
 components/camel-mock/src/main/docs/mock-component.adoc   |  2 +-
 components/camel-spring/src/main/docs/spring-summary.adoc |  2 +-
 docs/components/modules/others/examples/json/test.json    |  1 -
 docs/components/modules/others/nav.adoc                   |  1 -
 docs/components/modules/others/pages/test.adoc            |  1 -
 .../builder/endpoint/CamelContextReloadStrategyTest.java  |  2 +-
 9 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index 140477b18b3..3a16cec4726 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -1901,6 +1901,11 @@
         <artifactId>camel-telegram</artifactId>
         <version>${project.version}</version>
       </dependency>
+      <dependency>
+        <groupId>org.apache.camel</groupId>
+        <artifactId>camel-test</artifactId>
+        <version>${project.version}</version>
+      </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
         <artifactId>camel-test-junit5</artifactId>
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties
index 2e846bf5089..3a31b03514c 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties
@@ -46,6 +46,7 @@ spring-main
 spring-security
 spring-xml
 test-junit5
+test-main-junit5
 test-spring-junit5
 threadpoolfactory-vertx
 tracing
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/test-main-junit5.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/test-main-junit5.json
new file mode 100644
index 00000000000..9c56b60051f
--- /dev/null
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/test-main-junit5.json
@@ -0,0 +1,15 @@
+{
+  "other": {
+    "kind": "other",
+    "name": "test-main-junit5",
+    "title": "Test Main JUnit5",
+    "description": "Camel unit testing with Main and JUnit 5",
+    "deprecated": false,
+    "firstVersion": "3.16.0",
+    "label": "testing,java",
+    "supportLevel": "Stable",
+    "groupId": "org.apache.camel",
+    "artifactId": "camel-test-main-junit5",
+    "version": "4.0.0-SNAPSHOT"
+  }
+}
diff --git a/components/camel-mock/src/main/docs/mock-component.adoc b/components/camel-mock/src/main/docs/mock-component.adoc
index 2aa6e073a1d..e680383e92e 100644
--- a/components/camel-mock/src/main/docs/mock-component.adoc
+++ b/components/camel-mock/src/main/docs/mock-component.adoc
@@ -44,7 +44,7 @@ Expression.
 
 [NOTE]
 ====
-There is also the xref:others:test.adoc[Test endpoint] which is a
+There is also the xref:others:test-junit5.adoc[Test endpoint] which is a
 Mock endpoint, but which uses a second endpoint to provide the list of
 expected message bodies and automatically sets up the Mock endpoint
 assertions. In other words, it's a Mock endpoint that automatically sets
diff --git a/components/camel-spring/src/main/docs/spring-summary.adoc b/components/camel-spring/src/main/docs/spring-summary.adoc
index 07b549e7128..376d097d267 100644
--- a/components/camel-spring/src/main/docs/spring-summary.adoc
+++ b/components/camel-spring/src/main/docs/spring-summary.adoc
@@ -28,7 +28,7 @@ Type Converter support for Spring Resources etc
 framework to simplify your unit and integration testing using
 xref:eips:enterprise-integration-patterns.adoc[Enterprise Integration
 Patterns] and Camel's powerful xref:mock-component.adoc[Mock] and
-xref:others:test.adoc[Test] endpoints
+xref:others:test-junit5.adoc[Test] endpoints
 
 == Using Spring to configure the CamelContext
 
diff --git a/docs/components/modules/others/examples/json/test.json b/docs/components/modules/others/examples/json/test.json
deleted file mode 120000
index 3208d88fd79..00000000000
--- a/docs/components/modules/others/examples/json/test.json
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../../components/camel-test/camel-test/src/generated/resources/test.json
\ No newline at end of file
diff --git a/docs/components/modules/others/nav.adoc b/docs/components/modules/others/nav.adoc
index a150fd7a64a..0013e29fbba 100644
--- a/docs/components/modules/others/nav.adoc
+++ b/docs/components/modules/others/nav.adoc
@@ -49,7 +49,6 @@
 ** xref:spring-security.adoc[Spring Security]
 ** xref:spring-xml.adoc[Spring XML]
 ** xref:springdoc.adoc[Springdoc]
-** xref:test.adoc[Test]
 ** xref:test-junit5.adoc[Test JUnit5]
 ** xref:test-main-junit5.adoc[Test Main JUnit5]
 ** xref:test-spring-junit5.adoc[Test Spring JUnit5]
diff --git a/docs/components/modules/others/pages/test.adoc b/docs/components/modules/others/pages/test.adoc
deleted file mode 120000
index ae1e9f89a6e..00000000000
--- a/docs/components/modules/others/pages/test.adoc
+++ /dev/null
@@ -1 +0,0 @@
-../../../../../components/camel-test/camel-test/src/main/docs/test.adoc
\ No newline at end of file
diff --git a/dsl/camel-endpointdsl/src/test/java/org/apache/camel/builder/endpoint/CamelContextReloadStrategyTest.java b/dsl/camel-endpointdsl/src/test/java/org/apache/camel/builder/endpoint/CamelContextReloadStrategyTest.java
index 4c3aa412e1d..7fbe6b4a3bc 100644
--- a/dsl/camel-endpointdsl/src/test/java/org/apache/camel/builder/endpoint/CamelContextReloadStrategyTest.java
+++ b/dsl/camel-endpointdsl/src/test/java/org/apache/camel/builder/endpoint/CamelContextReloadStrategyTest.java
@@ -30,7 +30,7 @@ import org.apache.camel.test.junit5.CamelTestSupport;
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 
-import static org.assertj.core.api.Assertions.fail;
+import static org.junit.jupiter.api.Assertions.fail;
 
 public class CamelContextReloadStrategyTest extends CamelTestSupport {