This is an automated email from the ASF dual-hosted git repository. JiriOndrusek pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit afa45b99cda272286d28778138176e3d974c6069 Author: James Netherton <[email protected]> AuthorDate: Thu May 21 14:32:17 2026 +0100 Use QuarkusTestResource for enabling virtual thread support in SedaVirtualThreadsTest --- .../seda/src/main/resources/application.properties | 17 ----------------- .../component/seda/it/SedaVirtualThreadsTest.java | 18 ++++++++++++------ 2 files changed, 12 insertions(+), 23 deletions(-) diff --git a/integration-test-groups/foundation/seda/src/main/resources/application.properties b/integration-test-groups/foundation/seda/src/main/resources/application.properties deleted file mode 100644 index ecf18b08b7..0000000000 --- a/integration-test-groups/foundation/seda/src/main/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. -## --------------------------------------------------------------------------- -%virtualThreads.camel.main.virtualThreadsEnabled=true \ No newline at end of file diff --git a/integration-test-groups/foundation/seda/src/test/java/org/apache/camel/quarkus/component/seda/it/SedaVirtualThreadsTest.java b/integration-test-groups/foundation/seda/src/test/java/org/apache/camel/quarkus/component/seda/it/SedaVirtualThreadsTest.java index 5a575f8e3c..0c06aac300 100644 --- a/integration-test-groups/foundation/seda/src/test/java/org/apache/camel/quarkus/component/seda/it/SedaVirtualThreadsTest.java +++ b/integration-test-groups/foundation/seda/src/test/java/org/apache/camel/quarkus/component/seda/it/SedaVirtualThreadsTest.java @@ -16,9 +16,11 @@ */ package org.apache.camel.quarkus.component.seda.it; +import java.util.Map; + +import io.quarkus.test.common.QuarkusTestResource; +import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; import io.quarkus.test.junit.QuarkusTest; -import io.quarkus.test.junit.QuarkusTestProfile; -import io.quarkus.test.junit.TestProfile; import io.restassured.RestAssured; import io.restassured.http.ContentType; import org.junit.jupiter.api.Test; @@ -27,7 +29,7 @@ import org.junit.jupiter.api.condition.JRE; import static org.hamcrest.Matchers.containsString; -@TestProfile(SedaVirtualThreadsTest.VirtualThreadsTestProfile.class) +@QuarkusTestResource(value = SedaVirtualThreadsTest.VirtualThreadsResource.class, restrictToAnnotatedClass = true) @QuarkusTest class SedaVirtualThreadsTest { @EnabledForJreRange(min = JRE.JAVA_21) @@ -45,10 +47,14 @@ class SedaVirtualThreadsTest { .statusCode(200); } - public static final class VirtualThreadsTestProfile implements QuarkusTestProfile { + public static class VirtualThreadsResource implements QuarkusTestResourceLifecycleManager { + @Override + public Map<String, String> start() { + return Map.of("camel.main.virtualThreadsEnabled", "true"); + } + @Override - public String getConfigProfile() { - return "virtualThreads"; + public void stop() { } } }
