You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/01/28 06:32:16 UTC
[camel] 05/09: Camel-16001 - Cleaned up POM and switch to junit5
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 0feca0c9332a0044c2e869aabe6502673e88876c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 28 07:18:59 2021 +0100
Camel-16001 - Cleaned up POM and switch to junit5
---
components/camel-huaweicloud-smn/pom.xml | 92 +++++++---------------
.../smn/SimpleNotificationProducer.java | 7 +-
.../huaweicloud/smn/SimpleNotificationUtils.java | 4 +-
.../smn/PublishTemplatedMessageTest.java | 31 ++++----
.../huaweicloud/smn/PublishTextMessageTest.java | 34 ++++----
.../smn/constants/SmnConstantsTest.java | 7 +-
.../smn/constants/SmnOperationsTest.java | 9 ++-
.../smn/constants/SmnPropertiesTest.java | 19 ++---
.../huaweicloud/smn/constants/SmnServicesTest.java | 7 +-
core/camel-allcomponents/pom.xml | 4 +
.../component/ComponentsBuilderFactory.java | 13 +++
.../src/generated/resources/metadata.json | 22 ++++++
.../builder/endpoint/EndpointBuilderFactory.java | 1 +
.../camel/builder/endpoint/EndpointBuilders.java | 1 +
.../builder/endpoint/StaticEndpointBuilders.java | 43 ++++++++++
15 files changed, 177 insertions(+), 117 deletions(-)
diff --git a/components/camel-huaweicloud-smn/pom.xml b/components/camel-huaweicloud-smn/pom.xml
index c860fb5..551c785 100644
--- a/components/camel-huaweicloud-smn/pom.xml
+++ b/components/camel-huaweicloud-smn/pom.xml
@@ -17,33 +17,22 @@
<modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.camel</groupId>
+ <parent>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>components</artifactId>
+ <version>3.8.0-SNAPSHOT</version>
+ </parent>
+
<artifactId>camel-huaweicloud-smn</artifactId>
<packaging>jar</packaging>
- <version>3.8.0-SNAPSHOT</version>
- <name>Huawei Cloud SimpleNotification Component</name>
+ <name>Camel :: Huawei Cloud SimpleNotification Component</name>
+ <description>A Camel Huawei Simple Notification Component</description>
<properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
- <dependencyManagement>
- <dependencies>
- <!-- Camel BOM -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-bom</artifactId>
- <version>3.8.0-SNAPSHOT</version>
- <scope>import</scope>
- <type>pom</type>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
<dependencies>
-
<!-- camel -->
<dependency>
<groupId>org.apache.camel</groupId>
@@ -68,50 +57,27 @@
<version>3.0.30-rc</version>
</dependency>
- <!-- logging -->
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j-impl</artifactId>
- <version>2.13.3</version>
- <scope>test</scope>
- </dependency>
-
- <!-- testing -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-test</artifactId>
- <scope>test</scope>
- </dependency>
- <!-- testing -->
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-api</artifactId>
- <version>5.7.0</version>
- <scope>test</scope>
- </dependency>
+ <!-- for testing -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-test-spring-junit5</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-core-catalog</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.camel</groupId>
+ <artifactId>camel-test-junit5</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
- <build>
- <defaultGoal>install</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.8.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>3.2.0</version>
- <configuration>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
</project>
diff --git a/components/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationProducer.java b/components/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationProducer.java
index 119ac6c..9251ea1 100644
--- a/components/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationProducer.java
+++ b/components/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationProducer.java
@@ -159,9 +159,10 @@ public class SimpleNotificationProducer extends DefaultProducer {
* @param simpleNotificationEndpoint
*/
private void validateAndInitializeSmnClient(SimpleNotificationEndpoint simpleNotificationEndpoint) {
- if(simpleNotificationEndpoint.getSmnClient() != null) {
- if(LOG.isWarnEnabled()) {
- LOG.warn("Instance of SmnClient was set on the endpoint. Skipping creation of SmnClient from endpoint parameters");
+ if (simpleNotificationEndpoint.getSmnClient() != null) {
+ if (LOG.isWarnEnabled()) {
+ LOG.warn(
+ "Instance of SmnClient was set on the endpoint. Skipping creation of SmnClient from endpoint parameters");
}
this.smnClient = simpleNotificationEndpoint.getSmnClient();
return;
diff --git a/components/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationUtils.java b/components/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationUtils.java
index b7abd32..1c8ac33 100644
--- a/components/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationUtils.java
+++ b/components/camel-huaweicloud-smn/src/main/java/org/apache/camel/component/huaweicloud/smn/SimpleNotificationUtils.java
@@ -44,11 +44,11 @@ public class SimpleNotificationUtils {
String result = SmnRegion.valueOf(region).getEndpoint();
- if(LOG.isDebugEnabled()) {
+ if (LOG.isDebugEnabled()) {
LOG.debug("endpoint resolved as {} for region {}", result, region);
}
- if(ObjectHelper.isEmpty(result)) {
+ if (ObjectHelper.isEmpty(result)) {
LOG.error("Couldn't resolve endpoint for region : {}", region);
result = null;
}
diff --git a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/PublishTemplatedMessageTest.java b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/PublishTemplatedMessageTest.java
index 3b48fdb..c2ae4bc 100644
--- a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/PublishTemplatedMessageTest.java
+++ b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/PublishTemplatedMessageTest.java
@@ -16,21 +16,25 @@
*/
package org.apache.camel.component.huaweicloud.smn;
+import java.util.HashMap;
+import java.util.Map;
+
import org.apache.camel.BindToRegistry;
import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.huaweicloud.smn.constants.SmnProperties;
import org.apache.camel.component.huaweicloud.smn.models.ServiceKeys;
import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.test.junit4.CamelTestSupport;
-import org.junit.Assert;
-import org.junit.Test;
+import org.apache.camel.test.junit5.CamelTestSupport;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.util.HashMap;
-import java.util.Map;
-
public class PublishTemplatedMessageTest extends CamelTestSupport {
private static final Logger LOGGER = LoggerFactory.getLogger(PublishTemplatedMessageTest.class.getName());
@@ -58,9 +62,9 @@ public class PublishTemplatedMessageTest extends CamelTestSupport {
.setProperty(SmnProperties.TEMPLATE_TAGS, constant(tags))
.setProperty(SmnProperties.TEMPLATE_NAME, constant("hello-template"))
.to("hwcloud-smn:publishMessageService?serviceKeys=#serviceKeys&operation=publishAsTemplatedMessage"
- + "&projectId=" + testConfiguration.getProperty("projectId") + "®ion="
- + testConfiguration.getProperty("region") + "&ignoreSslVerification=true"
- + "&smnClient=#smnClient")
+ + "&projectId=" + testConfiguration.getProperty("projectId") + "®ion="
+ + testConfiguration.getProperty("region") + "&ignoreSslVerification=true"
+ + "&smnClient=#smnClient")
.log("templated notification sent")
.to("mock:publish_templated_message_result");
}
@@ -76,11 +80,10 @@ public class PublishTemplatedMessageTest extends CamelTestSupport {
mock.assertIsSatisfied();
- Assert.assertNotNull(responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID));
- Assert.assertNotNull(responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID));
- Assert.assertTrue(responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID).toString().length() > 0);
- Assert.assertTrue(responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID).toString().length() > 0);
+ assertNotNull(responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID));
+ assertNotNull(responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID));
+ assertTrue(responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID).toString().length() > 0);
+ assertTrue(responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID).toString().length() > 0);
}
-
}
diff --git a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/PublishTextMessageTest.java b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/PublishTextMessageTest.java
index 31d5907..c965d3d 100644
--- a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/PublishTextMessageTest.java
+++ b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/PublishTextMessageTest.java
@@ -21,10 +21,13 @@ import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.huaweicloud.smn.constants.SmnProperties;
import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.test.junit4.CamelTestSupport;
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.runner.RunWith;
+import org.apache.camel.test.junit5.CamelTestSupport;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -44,11 +47,11 @@ public class PublishTextMessageTest extends CamelTestSupport {
.setProperty(SmnProperties.NOTIFICATION_TOPIC_NAME, constant(testConfiguration.getProperty("topic")))
.setProperty(SmnProperties.NOTIFICATION_TTL, constant(60))
.to("hwcloud-smn:publishMessageService?operation=publishAsTextMessage&authKey="
- + testConfiguration.getProperty("authKey") + "&secretKey="
- + testConfiguration.getProperty("secretKey") + "&projectId="
- + testConfiguration.getProperty("projectId") + "®ion=" + testConfiguration.getProperty("region")
- + "&ignoreSslVerification=true"
- + "&smnClient=#smnClient")
+ + testConfiguration.getProperty("authKey") + "&secretKey="
+ + testConfiguration.getProperty("secretKey") + "&projectId="
+ + testConfiguration.getProperty("projectId") + "®ion=" + testConfiguration.getProperty("region")
+ + "&ignoreSslVerification=true"
+ + "&smnClient=#smnClient")
.log("publish message successful")
.to("mock:publish_text_message_result");
}
@@ -65,14 +68,13 @@ public class PublishTextMessageTest extends CamelTestSupport {
mock.assertIsSatisfied();
- Assert.assertNotNull(responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID));
- Assert.assertNotNull(responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID));
- Assert.assertTrue(responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID).toString().length() > 0);
- Assert.assertTrue(responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID).toString().length() > 0);
+ assertNotNull(responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID));
+ assertNotNull(responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID));
+ assertTrue(responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID).toString().length() > 0);
+ assertTrue(responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID).toString().length() > 0);
- Assert.assertEquals("bf94b63a5dfb475994d3ac34664e24f2", responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID));
- Assert.assertEquals("6a63a18b8bab40ffb71ebd9cb80d0085", responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID));
+ assertEquals("bf94b63a5dfb475994d3ac34664e24f2", responseExchange.getProperty(SmnProperties.SERVICE_MESSAGE_ID));
+ assertEquals("6a63a18b8bab40ffb71ebd9cb80d0085", responseExchange.getProperty(SmnProperties.SERVICE_REQUEST_ID));
}
-
}
diff --git a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnConstantsTest.java b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnConstantsTest.java
index 2b406a9..2d67b4e3 100644
--- a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnConstantsTest.java
+++ b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnConstantsTest.java
@@ -16,12 +16,13 @@
*/
package org.apache.camel.component.huaweicloud.smn.constants;
-import org.junit.Assert;
-import org.junit.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
public class SmnConstantsTest {
@Test
public void testConstants() {
- Assert.assertEquals("urn:smn:%s:%s:%s", SmnConstants.TOPIC_URN_FORMAT);
+ assertEquals("urn:smn:%s:%s:%s", SmnConstants.TOPIC_URN_FORMAT);
}
}
diff --git a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnOperationsTest.java b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnOperationsTest.java
index a8467b3..30a04dd 100644
--- a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnOperationsTest.java
+++ b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnOperationsTest.java
@@ -16,13 +16,14 @@
*/
package org.apache.camel.component.huaweicloud.smn.constants;
-import org.junit.Assert;
-import org.junit.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
public class SmnOperationsTest {
@Test
public void testOperationsName() {
- Assert.assertEquals("publishAsTextMessage", SmnOperations.PUBLISH_AS_TEXT_MESSAGE);
- Assert.assertEquals("publishAsTemplatedMessage", SmnOperations.PUBLISH_AS_TEMPLATED_MESSAGE);
+ assertEquals("publishAsTextMessage", SmnOperations.PUBLISH_AS_TEXT_MESSAGE);
+ assertEquals("publishAsTemplatedMessage", SmnOperations.PUBLISH_AS_TEMPLATED_MESSAGE);
}
}
diff --git a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnPropertiesTest.java b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnPropertiesTest.java
index 57dff53..ee5ff7e 100644
--- a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnPropertiesTest.java
+++ b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnPropertiesTest.java
@@ -16,18 +16,19 @@
*/
package org.apache.camel.component.huaweicloud.smn.constants;
-import org.junit.Assert;
-import org.junit.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
public class SmnPropertiesTest {
@Test
public void testHwCloudSmnPropertyNames() {
- Assert.assertEquals("CamelHwCloudSmnTemplateName", SmnProperties.TEMPLATE_NAME);
- Assert.assertEquals("CamelHwCloudSmnTemplateTags", SmnProperties.TEMPLATE_TAGS);
- Assert.assertEquals("CamelHwCloudSmnOperation", SmnProperties.SMN_OPERATION);
- Assert.assertEquals("CamelHwCloudSmnTopic", SmnProperties.NOTIFICATION_TOPIC_NAME);
- Assert.assertEquals("CamelHwCloudSmnSubject", SmnProperties.NOTIFICATION_SUBJECT);
- Assert.assertEquals("CamelHwCloudSmnMesssageId", SmnProperties.SERVICE_MESSAGE_ID);
- Assert.assertEquals("CamelHwCloudSmnRequestId", SmnProperties.SERVICE_REQUEST_ID);
+ assertEquals("CamelHwCloudSmnTemplateName", SmnProperties.TEMPLATE_NAME);
+ assertEquals("CamelHwCloudSmnTemplateTags", SmnProperties.TEMPLATE_TAGS);
+ assertEquals("CamelHwCloudSmnOperation", SmnProperties.SMN_OPERATION);
+ assertEquals("CamelHwCloudSmnTopic", SmnProperties.NOTIFICATION_TOPIC_NAME);
+ assertEquals("CamelHwCloudSmnSubject", SmnProperties.NOTIFICATION_SUBJECT);
+ assertEquals("CamelHwCloudSmnMesssageId", SmnProperties.SERVICE_MESSAGE_ID);
+ assertEquals("CamelHwCloudSmnRequestId", SmnProperties.SERVICE_REQUEST_ID);
}
}
diff --git a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnServicesTest.java b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnServicesTest.java
index b8af8ac..1c5efbf 100644
--- a/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnServicesTest.java
+++ b/components/camel-huaweicloud-smn/src/test/java/org/apache/camel/component/huaweicloud/smn/constants/SmnServicesTest.java
@@ -16,12 +16,13 @@
*/
package org.apache.camel.component.huaweicloud.smn.constants;
-import org.junit.Assert;
-import org.junit.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
public class SmnServicesTest {
@Test
public void testSmnServicesName() {
- Assert.assertEquals("publishMessageService", SmnServices.PUBLISH_MESSAGE);
+ assertEquals("publishMessageService", SmnServices.PUBLISH_MESSAGE);
}
}
diff --git a/core/camel-allcomponents/pom.xml b/core/camel-allcomponents/pom.xml
index f19192c..3549137 100644
--- a/core/camel-allcomponents/pom.xml
+++ b/core/camel-allcomponents/pom.xml
@@ -671,6 +671,10 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
+ <artifactId>camel-huaweicloud-smn</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
<artifactId>camel-hystrix</artifactId>
</dependency>
<dependency>
diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index b7ef2e3..10e106c 100644
--- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -2255,6 +2255,19 @@ public interface ComponentsBuilderFactory {
return org.apache.camel.builder.component.dsl.HttpsComponentBuilderFactory.https();
}
/**
+ * SimpleNotification (camel-huaweicloud-smn)
+ * Huawei Cloud component to integrate with SimpleNotification services
+ *
+ * Category: cloud,messaging
+ * Since: 3.8
+ * Maven coordinates: org.apache.camel:camel-huaweicloud-smn
+ *
+ * @return the dsl builder
+ */
+ static org.apache.camel.builder.component.dsl.HwcloudSmnComponentBuilderFactory.HwcloudSmnComponentBuilder hwcloudSmn() {
+ return org.apache.camel.builder.component.dsl.HwcloudSmnComponentBuilderFactory.hwcloudSmn();
+ }
+ /**
* IEC 60870 Client (camel-iec60870)
* IEC 60870 supervisory control and data acquisition (SCADA) client using
* NeoSCADA implementation.
diff --git a/core/camel-componentdsl/src/generated/resources/metadata.json b/core/camel-componentdsl/src/generated/resources/metadata.json
index 142733a..af7e6f1 100644
--- a/core/camel-componentdsl/src/generated/resources/metadata.json
+++ b/core/camel-componentdsl/src/generated/resources/metadata.json
@@ -3701,6 +3701,28 @@
"producerOnly": true,
"lenientProperties": true
},
+ "HwcloudSmnComponentBuilderFactory": {
+ "kind": "component",
+ "name": "hwcloud-smn",
+ "title": "SimpleNotification",
+ "description": "Huawei Cloud component to integrate with SimpleNotification services",
+ "deprecated": false,
+ "firstVersion": "3.8.0",
+ "label": "cloud,messaging",
+ "javaType": "org.apache.camel.component.huaweicloud.smn.SimpleNotificationComponent",
+ "supportLevel": "Preview",
+ "groupId": "org.apache.camel",
+ "artifactId": "camel-huaweicloud-smn",
+ "version": "3.8.0-SNAPSHOT",
+ "scheme": "hwcloud-smn",
+ "extendsScheme": "",
+ "syntax": "hwcloud-smn:smnService",
+ "async": false,
+ "api": false,
+ "consumerOnly": false,
+ "producerOnly": true,
+ "lenientProperties": false
+ },
"Iec60870ClientComponentBuilderFactory": {
"kind": "component",
"name": "iec60870-client",
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
index ab6bf03..a632277 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
@@ -311,6 +311,7 @@ public interface EndpointBuilderFactory
org.apache.camel.builder.endpoint.dsl.Ses2EndpointBuilderFactory.Ses2Builders,
org.apache.camel.builder.endpoint.dsl.SesEndpointBuilderFactory.SesBuilders,
org.apache.camel.builder.endpoint.dsl.SftpEndpointBuilderFactory.SftpBuilders,
+ org.apache.camel.builder.endpoint.dsl.SimpleNotificationEndpointBuilderFactory.SimpleNotificationBuilders,
org.apache.camel.builder.endpoint.dsl.SipEndpointBuilderFactory.SipBuilders,
org.apache.camel.builder.endpoint.dsl.Sjms2EndpointBuilderFactory.Sjms2Builders,
org.apache.camel.builder.endpoint.dsl.SjmsEndpointBuilderFactory.SjmsBuilders,
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
index 558d439..43354bb 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
@@ -308,6 +308,7 @@ public interface EndpointBuilders
org.apache.camel.builder.endpoint.dsl.Ses2EndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.SesEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.SftpEndpointBuilderFactory,
+ org.apache.camel.builder.endpoint.dsl.SimpleNotificationEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.SipEndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.Sjms2EndpointBuilderFactory,
org.apache.camel.builder.endpoint.dsl.SjmsEndpointBuilderFactory,
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 961f622..abd92cf 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -7599,6 +7599,49 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.HttpEndpointBuilderFactory.endpointBuilder(componentName, path);
}
/**
+ * SimpleNotification (camel-huaweicloud-smn)
+ * Huawei Cloud component to integrate with SimpleNotification services
+ *
+ * Category: cloud,messaging
+ * Since: 3.8
+ * Maven coordinates: org.apache.camel:camel-huaweicloud-smn
+ *
+ * Syntax: <code>hwcloud-smn:smnService</code>
+ *
+ * Path parameter: smnService (required)
+ * Name of SMN service to invoke
+ *
+ * @param path smnService
+ * @return the dsl builder
+ */
+ public static org.apache.camel.builder.endpoint.dsl.SimpleNotificationEndpointBuilderFactory.SimpleNotificationEndpointBuilder hwcloudSmn(
+ String path) {
+ return org.apache.camel.builder.endpoint.dsl.SimpleNotificationEndpointBuilderFactory.endpointBuilder("hwcloud-smn", path);
+ }
+ /**
+ * SimpleNotification (camel-huaweicloud-smn)
+ * Huawei Cloud component to integrate with SimpleNotification services
+ *
+ * Category: cloud,messaging
+ * Since: 3.8
+ * Maven coordinates: org.apache.camel:camel-huaweicloud-smn
+ *
+ * Syntax: <code>hwcloud-smn:smnService</code>
+ *
+ * Path parameter: smnService (required)
+ * Name of SMN service to invoke
+ *
+ * @param componentName to use a custom component name for the endpoint
+ * instead of the default name
+ * @param path smnService
+ * @return the dsl builder
+ */
+ public static org.apache.camel.builder.endpoint.dsl.SimpleNotificationEndpointBuilderFactory.SimpleNotificationEndpointBuilder hwcloudSmn(
+ String componentName,
+ String path) {
+ return org.apache.camel.builder.endpoint.dsl.SimpleNotificationEndpointBuilderFactory.endpointBuilder(componentName, path);
+ }
+ /**
* IEC 60870 Client (camel-iec60870)
* IEC 60870 supervisory control and data acquisition (SCADA) client using
* NeoSCADA implementation.