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

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

commit 9c2681ec0fd5b0e92b468cbd503bdc809b96ed21
Author: Guillaume Nodet <[email protected]>
AuthorDate: Mon Jul 27 16:08:21 2020 +0200

    [CAMEL-11807] Upgrade camel-catalog to junit5
---
 catalog/camel-catalog-lucene/pom.xml               |  4 +--
 .../catalog/lucene/CamelCatalogLuceneTest.java     | 12 ++++----
 catalog/camel-catalog-maven/pom.xml                |  4 +--
 .../catalog/maven/MavenArtifactProviderTest.java   | 14 +++++----
 .../catalog/maven/MavenVersionManagerTest.java     | 15 ++++++----
 catalog/camel-catalog/pom.xml                      |  4 +--
 .../apache/camel/catalog/components/aws-sns.json   |  2 --
 .../apache/camel/catalog/components/aws-sqs.json   |  2 --
 .../apache/camel/catalog/components/aws2-sns.json  |  2 --
 .../apache/camel/catalog/components/aws2-sqs.json  |  2 --
 .../camel/catalog/CamelCatalogCacheTest.java       |  4 +--
 .../camel/catalog/CamelCatalogJsonSchemaTest.java  | 34 ++++++++++++----------
 .../org/apache/camel/catalog/CamelCatalogTest.java | 16 +++++-----
 13 files changed, 58 insertions(+), 57 deletions(-)

diff --git a/catalog/camel-catalog-lucene/pom.xml 
b/catalog/camel-catalog-lucene/pom.xml
index 48df092..770bd30 100644
--- a/catalog/camel-catalog-lucene/pom.xml
+++ b/catalog/camel-catalog-lucene/pom.xml
@@ -69,8 +69,8 @@
         </dependency>
 
         <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter</artifactId>
             <scope>test</scope>
         </dependency>
 
diff --git 
a/catalog/camel-catalog-lucene/src/test/java/org/apache/camel/catalog/lucene/CamelCatalogLuceneTest.java
 
b/catalog/camel-catalog-lucene/src/test/java/org/apache/camel/catalog/lucene/CamelCatalogLuceneTest.java
index 2b5681d..84d0054 100644
--- 
a/catalog/camel-catalog-lucene/src/test/java/org/apache/camel/catalog/lucene/CamelCatalogLuceneTest.java
+++ 
b/catalog/camel-catalog-lucene/src/test/java/org/apache/camel/catalog/lucene/CamelCatalogLuceneTest.java
@@ -19,18 +19,18 @@ package org.apache.camel.catalog.lucene;
 import org.apache.camel.catalog.CamelCatalog;
 import org.apache.camel.catalog.DefaultCamelCatalog;
 import org.apache.camel.catalog.EndpointValidationResult;
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class CamelCatalogLuceneTest {
 
     private CamelCatalog catalog;
 
-    @Before
+    @BeforeAll
     public void createCamelCatalog() {
         catalog = new DefaultCamelCatalog();
         catalog.setSuggestionStrategy(new LuceneSuggestionStrategy());
diff --git a/catalog/camel-catalog-maven/pom.xml 
b/catalog/camel-catalog-maven/pom.xml
index d888682..db2ef2d 100644
--- a/catalog/camel-catalog-maven/pom.xml
+++ b/catalog/camel-catalog-maven/pom.xml
@@ -78,8 +78,8 @@
 
         <!-- testing -->
         <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter</artifactId>
             <scope>test</scope>
         </dependency>
 
diff --git 
a/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenArtifactProviderTest.java
 
b/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenArtifactProviderTest.java
index 2e4026b..423c052 100644
--- 
a/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenArtifactProviderTest.java
+++ 
b/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenArtifactProviderTest.java
@@ -20,12 +20,14 @@ import java.util.Set;
 
 import org.apache.camel.catalog.CamelCatalog;
 import org.apache.camel.catalog.DefaultCamelCatalog;
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
 
-@Ignore("Cannot run on CI servers so run manually")
-public class MavenArtifactProviderTest extends Assert {
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+@Disabled("Cannot run on CI servers so run manually")
+public class MavenArtifactProviderTest {
 
     @Test
     public void testAddComponent() {
@@ -40,7 +42,7 @@ public class MavenArtifactProviderTest extends Assert {
 
         int after = camelCatalog.findComponentNames().size();
 
-        assertTrue("Should find 1 new component", after - before == 1);
+        assertEquals(1, after - before, "Should find 1 new component");
     }
 
 }
diff --git 
a/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
 
b/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
index 36f1cc9..d81bad6 100644
--- 
a/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
+++ 
b/catalog/camel-catalog-maven/src/test/java/org/apache/camel/catalog/maven/MavenVersionManagerTest.java
@@ -23,12 +23,17 @@ import org.apache.camel.catalog.CamelCatalog;
 import org.apache.camel.catalog.DefaultCamelCatalog;
 import org.apache.camel.catalog.DefaultRuntimeProvider;
 import org.apache.camel.catalog.impl.CatalogHelper;
-import org.junit.Assert;
-import org.junit.Ignore;
-import org.junit.Test;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
 
-@Ignore("Cannot run on CI servers so run manually")
-public class MavenVersionManagerTest extends Assert {
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+@Disabled("Cannot run on CI servers so run manually")
+public class MavenVersionManagerTest {
 
     private static final String COMPONENTS_CATALOG = 
"org/apache/camel/catalog/components.properties";
 
diff --git a/catalog/camel-catalog/pom.xml b/catalog/camel-catalog/pom.xml
index 1f5ee74..f0c498a 100644
--- a/catalog/camel-catalog/pom.xml
+++ b/catalog/camel-catalog/pom.xml
@@ -99,8 +99,8 @@
         </dependency>
 
         <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter</artifactId>
             <scope>test</scope>
         </dependency>
 
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-sns.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-sns.json
index 8c6e65d..ee5b5ae 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-sns.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-sns.json
@@ -24,7 +24,6 @@
     "amazonSNSClient": { "kind": "property", "displayName": "Amazon 
SNSClient", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "com.amazonaws.services.sns.AmazonSNS", "deprecated": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws.sns.SnsConfiguration", "configurationField": 
"configuration", "description": "To use the AmazonSNS as the client" },
     "amazonSQSClient": { "kind": "property", "displayName": "Amazon 
SQSClient", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "com.amazonaws.services.sqs.AmazonSQS", "deprecated": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws.sns.SnsConfiguration", "configurationField": 
"configuration", "description": "An SQS Client to use as bridge between SNS and 
SQS" },
     "autoCreateTopic": { "kind": "property", "displayName": "Auto Create 
Topic", "group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws.sns.SnsConfiguration", "configurationField": 
"configuration", "description": "Setting the autocreation of the topic" },
-    "autoDiscoverClient": { "kind": "property", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws.sns.SnsConfiguration", "configurationField": 
"configuration", "description": "Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registry [...]
     "configuration": { "kind": "property", "displayName": "Configuration", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.aws.sns.SnsConfiguration", 
"deprecated": false, "secret": false, "description": "The component 
configuration" },
     "kmsMasterKeyId": { "kind": "property", "displayName": "Kms Master Key 
Id", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws.sns.SnsConfiguration", 
"configurationField": "configuration", "description": "The ID of an AWS-managed 
customer master key (CMK) for Amazon SNS or a custom CMK." },
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a producer may otherwise 
fail during starting and cause the r [...]
@@ -47,7 +46,6 @@
     "amazonSNSClient": { "kind": "parameter", "displayName": "Amazon 
SNSClient", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "com.amazonaws.services.sns.AmazonSNS", "deprecated": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws.sns.SnsConfiguration", "configurationField": 
"configuration", "description": "To use the AmazonSNS as the client" },
     "amazonSQSClient": { "kind": "parameter", "displayName": "Amazon 
SQSClient", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "com.amazonaws.services.sqs.AmazonSQS", "deprecated": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws.sns.SnsConfiguration", "configurationField": 
"configuration", "description": "An SQS Client to use as bridge between SNS and 
SQS" },
     "autoCreateTopic": { "kind": "parameter", "displayName": "Auto Create 
Topic", "group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws.sns.SnsConfiguration", "configurationField": 
"configuration", "description": "Setting the autocreation of the topic" },
-    "autoDiscoverClient": { "kind": "parameter", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws.sns.SnsConfiguration", "configurationField": 
"configuration", "description": "Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registr [...]
     "headerFilterStrategy": { "kind": "parameter", "displayName": "Header 
Filter Strategy", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", 
"deprecated": false, "secret": false, "description": "To use a custom 
HeaderFilterStrategy to map headers to\/from Camel." },
     "kmsMasterKeyId": { "kind": "parameter", "displayName": "Kms Master Key 
Id", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws.sns.SnsConfiguration", 
"configurationField": "configuration", "description": "The ID of an AWS-managed 
customer master key (CMK) for Amazon SNS or a custom CMK." },
     "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a producer may otherwise 
fail during starting and cause the  [...]
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-sqs.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-sqs.json
index 49b4ba1..f7b33d9 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-sqs.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws-sqs.json
@@ -24,7 +24,6 @@
     "amazonAWSHost": { "kind": "property", "displayName": "Amazon AWSHost", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"defaultValue": "amazonaws.com", "configurationClass": 
"org.apache.camel.component.aws.sqs.SqsConfiguration", "configurationField": 
"configuration", "description": "The hostname of the Amazon AWS cloud." },
     "amazonSQSClient": { "kind": "property", "displayName": "Amazon 
SQSClient", "group": "common", "label": "", "required": false, "type": 
"object", "javaType": "com.amazonaws.services.sqs.AmazonSQS", "deprecated": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws.sqs.SqsConfiguration", "configurationField": 
"configuration", "description": "To use the AmazonSQS as client" },
     "autoCreateQueue": { "kind": "property", "displayName": "Auto Create 
Queue", "group": "common", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws.sqs.SqsConfiguration", "configurationField": 
"configuration", "description": "Setting the autocreation of the queue" },
-    "autoDiscoverClient": { "kind": "property", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws.sqs.SqsConfiguration", "configurationField": 
"configuration", "description": "Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registry [...]
     "configuration": { "kind": "property", "displayName": "Configuration", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.aws.sqs.SqsConfiguration", 
"deprecated": false, "secret": false, "description": "The component 
configuration" },
     "protocol": { "kind": "property", "displayName": "Protocol", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "secret": false, "defaultValue": 
"https", "configurationClass": 
"org.apache.camel.component.aws.sqs.SqsConfiguration", "configurationField": 
"configuration", "description": "The underlying protocol used to communicate 
with SQS" },
     "proxyProtocol": { "kind": "property", "displayName": "Proxy Protocol", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "com.amazonaws.Protocol", "enum": [ "HTTP", "HTTPS" ], 
"deprecated": false, "secret": false, "defaultValue": "HTTPS", 
"configurationClass": "org.apache.camel.component.aws.sqs.SqsConfiguration", 
"configurationField": "configuration", "description": "To define a proxy 
protocol when instantiating the SQS client" },
@@ -66,7 +65,6 @@
     "amazonAWSHost": { "kind": "parameter", "displayName": "Amazon AWSHost", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"defaultValue": "amazonaws.com", "configurationClass": 
"org.apache.camel.component.aws.sqs.SqsConfiguration", "configurationField": 
"configuration", "description": "The hostname of the Amazon AWS cloud." },
     "amazonSQSClient": { "kind": "parameter", "displayName": "Amazon 
SQSClient", "group": "common", "label": "", "required": false, "type": 
"object", "javaType": "com.amazonaws.services.sqs.AmazonSQS", "deprecated": 
false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws.sqs.SqsConfiguration", "configurationField": 
"configuration", "description": "To use the AmazonSQS as client" },
     "autoCreateQueue": { "kind": "parameter", "displayName": "Auto Create 
Queue", "group": "common", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws.sqs.SqsConfiguration", "configurationField": 
"configuration", "description": "Setting the autocreation of the queue" },
-    "autoDiscoverClient": { "kind": "parameter", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws.sqs.SqsConfiguration", "configurationField": 
"configuration", "description": "Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the registr [...]
     "headerFilterStrategy": { "kind": "parameter", "displayName": "Header 
Filter Strategy", "group": "common", "label": "", "required": false, "type": 
"object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", 
"deprecated": false, "secret": false, "description": "To use a custom 
HeaderFilterStrategy to map headers to\/from Camel." },
     "protocol": { "kind": "parameter", "displayName": "Protocol", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "secret": false, "defaultValue": 
"https", "configurationClass": 
"org.apache.camel.component.aws.sqs.SqsConfiguration", "configurationField": 
"configuration", "description": "The underlying protocol used to communicate 
with SQS" },
     "proxyProtocol": { "kind": "parameter", "displayName": "Proxy Protocol", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "com.amazonaws.Protocol", "enum": [ "HTTP", "HTTPS" ], 
"deprecated": false, "secret": false, "defaultValue": "HTTPS", 
"configurationClass": "org.apache.camel.component.aws.sqs.SqsConfiguration", 
"configurationField": "configuration", "description": "To define a proxy 
protocol when instantiating the SQS client" },
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sns.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sns.json
index 89fd007..34d7058 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sns.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sns.json
@@ -23,7 +23,6 @@
   "componentProperties": {
     "amazonSNSClient": { "kind": "property", "displayName": "Amazon 
SNSClient", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.services.sns.SnsClient", 
"deprecated": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": 
"configuration", "description": "To use the AmazonSNS as the client" },
     "autoCreateTopic": { "kind": "property", "displayName": "Auto Create 
Topic", "group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": 
"configuration", "description": "Setting the autocreation of the topic" },
-    "autoDiscoverClient": { "kind": "property", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": 
"configuration", "description": "Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the regist [...]
     "configuration": { "kind": "property", "displayName": "Configuration", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.aws2.sns.Sns2Configuration", 
"deprecated": false, "secret": false, "description": "Component configuration" 
},
     "kmsMasterKeyId": { "kind": "property", "displayName": "Kms Master Key 
Id", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", 
"configurationField": "configuration", "description": "The ID of an AWS-managed 
customer master key (CMK) for Amazon SNS or a custom CMK." },
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a producer may otherwise 
fail during starting and cause the r [...]
@@ -46,7 +45,6 @@
     "topicNameOrArn": { "kind": "path", "displayName": "Topic Name Or Arn", 
"group": "producer", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", 
"secret": false, "description": "Topic name or ARN" },
     "amazonSNSClient": { "kind": "parameter", "displayName": "Amazon 
SNSClient", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.services.sns.SnsClient", 
"deprecated": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": 
"configuration", "description": "To use the AmazonSNS as the client" },
     "autoCreateTopic": { "kind": "parameter", "displayName": "Auto Create 
Topic", "group": "producer", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": 
"configuration", "description": "Setting the autocreation of the topic" },
-    "autoDiscoverClient": { "kind": "parameter", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws2.sns.Sns2Configuration", "configurationField": 
"configuration", "description": "Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the regis [...]
     "headerFilterStrategy": { "kind": "parameter", "displayName": "Header 
Filter Strategy", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", 
"deprecated": false, "secret": false, "description": "To use a custom 
HeaderFilterStrategy to map headers to\/from Camel." },
     "kmsMasterKeyId": { "kind": "parameter", "displayName": "Kms Master Key 
Id", "group": "producer", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"configurationClass": "org.apache.camel.component.aws2.sns.Sns2Configuration", 
"configurationField": "configuration", "description": "The ID of an AWS-managed 
customer master key (CMK) for Amazon SNS or a custom CMK." },
     "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a producer may otherwise 
fail during starting and cause the  [...]
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sqs.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sqs.json
index d5d8d8a..d90ae35 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sqs.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-sqs.json
@@ -24,7 +24,6 @@
     "amazonAWSHost": { "kind": "property", "displayName": "Amazon AWSHost", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"defaultValue": "amazonaws.com", "configurationClass": 
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField": 
"configuration", "description": "The hostname of the Amazon AWS cloud." },
     "amazonSQSClient": { "kind": "property", "displayName": "Amazon 
SQSClient", "group": "common", "label": "", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.services.sqs.SqsClient", 
"deprecated": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField": 
"configuration", "description": "To use the AmazonSQS as client" },
     "autoCreateQueue": { "kind": "property", "displayName": "Auto Create 
Queue", "group": "common", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField": 
"configuration", "description": "Setting the autocreation of the queue" },
-    "autoDiscoverClient": { "kind": "property", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField": 
"configuration", "description": "Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the regist [...]
     "configuration": { "kind": "property", "displayName": "Configuration", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.aws2.sqs.Sqs2Configuration", 
"deprecated": false, "secret": false, "description": "The AWS SQS default 
configuration" },
     "protocol": { "kind": "property", "displayName": "Protocol", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "secret": false, "defaultValue": 
"https", "configurationClass": 
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField": 
"configuration", "description": "The underlying protocol used to communicate 
with SQS" },
     "proxyProtocol": { "kind": "property", "displayName": "Proxy Protocol", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" 
], "deprecated": false, "secret": false, "defaultValue": "HTTPS", 
"configurationClass": "org.apache.camel.component.aws2.sqs.Sqs2Configuration", 
"configurationField": "configuration", "description": "To define a proxy 
protocol when instantiating the SQS client" },
@@ -67,7 +66,6 @@
     "amazonAWSHost": { "kind": "parameter", "displayName": "Amazon AWSHost", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "secret": false, 
"defaultValue": "amazonaws.com", "configurationClass": 
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField": 
"configuration", "description": "The hostname of the Amazon AWS cloud." },
     "amazonSQSClient": { "kind": "parameter", "displayName": "Amazon 
SQSClient", "group": "common", "label": "", "required": false, "type": 
"object", "javaType": "software.amazon.awssdk.services.sqs.SqsClient", 
"deprecated": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField": 
"configuration", "description": "To use the AmazonSQS as client" },
     "autoCreateQueue": { "kind": "parameter", "displayName": "Auto Create 
Queue", "group": "common", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": 
"true", "configurationClass": 
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField": 
"configuration", "description": "Setting the autocreation of the queue" },
-    "autoDiscoverClient": { "kind": "parameter", "displayName": "Auto Discover 
Client", "group": "common", "label": "common", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": "true", "configurationClass": 
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField": 
"configuration", "description": "Setting the autoDiscoverClient mechanism, if 
true, the component will look for a client instance in the regis [...]
     "headerFilterStrategy": { "kind": "parameter", "displayName": "Header 
Filter Strategy", "group": "common", "label": "", "required": false, "type": 
"object", "javaType": "org.apache.camel.spi.HeaderFilterStrategy", 
"deprecated": false, "secret": false, "description": "To use a custom 
HeaderFilterStrategy to map headers to\/from Camel." },
     "protocol": { "kind": "parameter", "displayName": "Protocol", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "secret": false, "defaultValue": 
"https", "configurationClass": 
"org.apache.camel.component.aws2.sqs.Sqs2Configuration", "configurationField": 
"configuration", "description": "The underlying protocol used to communicate 
with SQS" },
     "proxyProtocol": { "kind": "parameter", "displayName": "Proxy Protocol", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "software.amazon.awssdk.core.Protocol", "enum": [ "HTTP", "HTTPS" 
], "deprecated": false, "secret": false, "defaultValue": "HTTPS", 
"configurationClass": "org.apache.camel.component.aws2.sqs.Sqs2Configuration", 
"configurationField": "configuration", "description": "To define a proxy 
protocol when instantiating the SQS client" },
diff --git 
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogCacheTest.java
 
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogCacheTest.java
index 01abbb9..e8b488c 100644
--- 
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogCacheTest.java
+++ 
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogCacheTest.java
@@ -16,11 +16,11 @@
  */
 package org.apache.camel.catalog;
 
-import org.junit.BeforeClass;
+import org.junit.jupiter.api.BeforeAll;
 
 public class CamelCatalogCacheTest extends CamelCatalogTest {
 
-    @BeforeClass
+    @BeforeAll
     public static void createCamelCatalog() {
         catalog = new DefaultCamelCatalog(true);
     }
diff --git 
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogJsonSchemaTest.java
 
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogJsonSchemaTest.java
index 486d22d..d29cc7e 100644
--- 
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogJsonSchemaTest.java
+++ 
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogJsonSchemaTest.java
@@ -24,12 +24,14 @@ import java.util.Map;
 
 import com.fasterxml.jackson.databind.JsonNode;
 import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import static org.junit.Assert.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class CamelCatalogJsonSchemaTest {
 
@@ -49,9 +51,9 @@ public class CamelCatalogJsonSchemaTest {
             JsonNode tree = mapper.readTree(json);
             assertNotNull(tree);
 
-            assertTrue(name, tree.has("component"));
-            assertTrue(name, tree.has("componentProperties"));
-            assertTrue(name, tree.has("properties"));
+            assertTrue(tree.has("component"), name);
+            assertTrue(tree.has("componentProperties"), name);
+            assertTrue(tree.has("properties"), name);
 
             validateComponentSyntax(name, tree);
         }
@@ -59,7 +61,7 @@ public class CamelCatalogJsonSchemaTest {
 
     private void validateComponentSyntax(String name, JsonNode tree) {
         String syntax = tree.get("component").get("syntax").textValue();
-        assertFalse("Empty syntax for component " + name, syntax.isEmpty());
+        assertFalse(syntax.isEmpty(), "Empty syntax for component " + name);
         List<String> pathProperties = new ArrayList<>();
         List<String> requiredProperties = new ArrayList<>();
 
@@ -74,16 +76,16 @@ public class CamelCatalogJsonSchemaTest {
             }
         }
         List<String> syntaxParts = Arrays.asList(syntax.split("[/:#.]"));
-        Assert.assertEquals("Syntax must start with component name", name, 
syntaxParts.get(0));
+        assertEquals(name, syntaxParts.get(0), "Syntax must start with 
component name");
 
         for (String part : syntaxParts.subList(1, syntaxParts.size())) {
             if (!part.isEmpty()) {
-                Assert.assertTrue(String.format("Component %s. Syntax %s. Part 
%s is not defined as UriPath", name, syntax, part), 
pathProperties.contains(part));
+                assertTrue(pathProperties.contains(part), 
String.format("Component %s. Syntax %s. Part %s is not defined as UriPath", 
name, syntax, part));
             }
         }
 
         for (String requiredPart : requiredProperties) {
-            Assert.assertTrue(String.format("Component %s. Syntax %s. Required 
param %s is not defined in syntax", name, syntax, requiredPart), 
syntaxParts.contains(requiredPart));
+            assertTrue(syntaxParts.contains(requiredPart), 
String.format("Component %s. Syntax %s. Required param %s is not defined in 
syntax", name, syntax, requiredPart));
         }
     }
 
@@ -99,8 +101,8 @@ public class CamelCatalogJsonSchemaTest {
             JsonNode tree = mapper.readTree(json);
             assertNotNull(tree);
 
-            assertTrue(name, tree.has("dataformat"));
-            assertTrue(name, tree.has("properties"));
+            assertTrue(tree.has("dataformat"), name);
+            assertTrue(tree.has("properties"), name);
         }
     }
 
@@ -116,8 +118,8 @@ public class CamelCatalogJsonSchemaTest {
             JsonNode tree = mapper.readTree(json);
             assertNotNull(tree);
 
-            assertTrue(name, tree.has("language"));
-            assertTrue(name, tree.has("properties"));
+            assertTrue(tree.has("language"), name);
+            assertTrue(tree.has("properties"), name);
         }
     }
 
@@ -133,8 +135,8 @@ public class CamelCatalogJsonSchemaTest {
             JsonNode tree = mapper.readTree(json);
             assertNotNull(tree);
 
-            assertTrue(name, tree.has("model"));
-            assertTrue(name, tree.has("properties"));
+            assertTrue(tree.has("model"), name);
+            assertTrue(tree.has("properties"), name);
         }
     }
 }
diff --git 
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
 
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
index ade74e4..7c8a0d6 100644
--- 
a/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
+++ 
b/catalog/camel-catalog/src/test/java/org/apache/camel/catalog/CamelCatalogTest.java
@@ -24,17 +24,17 @@ import java.util.Map;
 
 import com.fasterxml.jackson.databind.JsonNode;
 import com.fasterxml.jackson.databind.ObjectMapper;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import static org.apache.camel.catalog.impl.CatalogHelper.loadText;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class CamelCatalogTest {
 
@@ -42,7 +42,7 @@ public class CamelCatalogTest {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(CamelCatalogTest.class);
 
-    @BeforeClass
+    @BeforeAll
     public static void createCamelCatalog() {
         catalog = new DefaultCamelCatalog();
     }

Reply via email to