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

jamesnetherton pushed a commit to branch camel-quarkus-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git


The following commit(s) were added to refs/heads/camel-quarkus-main by this 
push:
     new eb7d193  Clean up deprecated API and configuration usage
eb7d193 is described below

commit eb7d19321fed711c67f5eeb5e45a591e493e7f9f
Author: James Netherton <[email protected]>
AuthorDate: Mon Mar 3 09:30:59 2025 +0000

    Clean up deprecated API and configuration usage
---
 aws-lambda/src/test/resources/application.properties    | 17 -----------------
 .../org/acme/message/bridge/MessageBridgeITCase.java    |  8 ++++----
 openapi-contract-first/pom.xml                          |  4 ++--
 saga/pom.xml                                            |  4 ++--
 4 files changed, 8 insertions(+), 25 deletions(-)

diff --git a/aws-lambda/src/test/resources/application.properties 
b/aws-lambda/src/test/resources/application.properties
deleted file mode 100644
index 3db48e4..0000000
--- a/aws-lambda/src/test/resources/application.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-## ---------------------------------------------------------------------------
-## 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.
-## ---------------------------------------------------------------------------
-quarkus.lambda.enable-polling-jvm-mode=true
diff --git 
a/message-bridge/src/test/java/org/acme/message/bridge/MessageBridgeITCase.java 
b/message-bridge/src/test/java/org/acme/message/bridge/MessageBridgeITCase.java
index 5de012e..1d3f545 100644
--- 
a/message-bridge/src/test/java/org/acme/message/bridge/MessageBridgeITCase.java
+++ 
b/message-bridge/src/test/java/org/acme/message/bridge/MessageBridgeITCase.java
@@ -19,13 +19,13 @@ package org.acme.message.bridge;
 import java.io.File;
 import java.nio.file.Files;
 import java.nio.file.Paths;
+import java.util.UUID;
 import java.util.concurrent.TimeUnit;
 
 import io.quarkus.test.common.QuarkusTestResource;
 import io.quarkus.test.junit.QuarkusIntegrationTest;
 import io.restassured.RestAssured;
 import org.acme.message.bridge.resource.IBMMQTestResource;
-import org.apache.commons.lang3.RandomStringUtils;
 import org.awaitility.Awaitility;
 import org.eclipse.microprofile.config.ConfigProvider;
 import org.junit.jupiter.api.MethodOrderer;
@@ -45,7 +45,7 @@ public class MessageBridgeITCase {
     @Test
     @Order(1)
     public void shouldSendMessageToActiveMQTest() {
-        final String message = RandomStringUtils.randomAlphabetic(8);
+        final String message = UUID.randomUUID().toString();
         RestAssured
                 .given()
                 .body(message)
@@ -58,7 +58,7 @@ public class MessageBridgeITCase {
     @Test
     @Order(2)
     public void shouldRollbackMessageTest() {
-        final String message = RandomStringUtils.randomAlphabetic(8) + " 
rollback";
+        final String message = UUID.randomUUID() + "-rollback";
         RestAssured
                 .given()
                 .body(message)
@@ -76,7 +76,7 @@ public class MessageBridgeITCase {
     @Test
     @Order(3)
     public void shouldCrashTest() {
-        final String message = RandomStringUtils.randomAlphabetic(8) + " 
crash";
+        final String message = UUID.randomUUID() + "-crash";
         RestAssured
                 .given()
                 .body(message)
diff --git a/openapi-contract-first/pom.xml b/openapi-contract-first/pom.xml
index bfac30d..84cc832 100644
--- a/openapi-contract-first/pom.xml
+++ b/openapi-contract-first/pom.xml
@@ -259,7 +259,7 @@
                 </property>
             </activation>
             <properties>
-                <quarkus.package.type>native</quarkus.package.type>
+                <quarkus.native.enabled>true</quarkus.native.enabled>
             </properties>
             <build>
                 <plugins>
@@ -274,7 +274,7 @@
                                 </goals>
                                 <configuration>
                                     <systemPropertyVariables>
-                                        
<quarkus.package.type>${quarkus.package.type}</quarkus.package.type>
+                                        
<quarkus.native.enabled>${quarkus.native.enabled}</quarkus.native.enabled>
                                     </systemPropertyVariables>
                                 </configuration>
                             </execution>
diff --git a/saga/pom.xml b/saga/pom.xml
index 00b3f24..4abc791 100644
--- a/saga/pom.xml
+++ b/saga/pom.xml
@@ -267,7 +267,7 @@
                 </property>
             </activation>
             <properties>
-                <quarkus.package.type>native</quarkus.package.type>
+                <quarkus.native.enabled>true</quarkus.native.enabled>
             </properties>
             <build>
                 <plugins>
@@ -282,7 +282,7 @@
                                 </goals>
                                 <configuration>
                                     <systemPropertyVariables>
-                                        
<quarkus.package.type>${quarkus.package.type}</quarkus.package.type>
+                                        
<quarkus.native.enabled>${quarkus.native.enabled}</quarkus.native.enabled>
                                     </systemPropertyVariables>
                                 </configuration>
                             </execution>

Reply via email to