This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 599865f6ef6e788a0f6a7e34284885e1f4c23849 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Thu Aug 18 10:43:42 2022 +0200 camel-jms: guarantee resource isolation for the transacted tests --- .../JmsTransactedDeadLetterChannelHandlerRollbackOnExceptionTest.java | 4 +--- .../jms/issues/JmsTransactedOnExceptionRollbackOnExceptionTest.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsTransactedDeadLetterChannelHandlerRollbackOnExceptionTest.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsTransactedDeadLetterChannelHandlerRollbackOnExceptionTest.java index 4cf145fb88b..34b68b33584 100644 --- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsTransactedDeadLetterChannelHandlerRollbackOnExceptionTest.java +++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsTransactedDeadLetterChannelHandlerRollbackOnExceptionTest.java @@ -30,15 +30,13 @@ import org.apache.camel.test.infra.activemq.services.ActiveMQServiceFactory; import org.apache.camel.test.junit5.CamelTestSupport; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import org.junit.jupiter.api.parallel.Isolated; import static org.apache.camel.component.jms.JmsComponent.jmsComponentTransacted; import static org.junit.jupiter.api.Assertions.assertNull; -@Isolated public class JmsTransactedDeadLetterChannelHandlerRollbackOnExceptionTest extends CamelTestSupport { @RegisterExtension - public static ActiveMQService service = ActiveMQServiceFactory.createVMService(); + public ActiveMQService service = ActiveMQServiceFactory.createVMServiceInstance(); public static class BadErrorHandler { @Handler diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsTransactedOnExceptionRollbackOnExceptionTest.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsTransactedOnExceptionRollbackOnExceptionTest.java index 6ab42b766f2..9769121fac5 100644 --- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsTransactedOnExceptionRollbackOnExceptionTest.java +++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsTransactedOnExceptionRollbackOnExceptionTest.java @@ -36,7 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; public class JmsTransactedOnExceptionRollbackOnExceptionTest extends CamelTestSupport { @RegisterExtension - public static ActiveMQService service = ActiveMQServiceFactory.createVMService(); + public static ActiveMQService service = ActiveMQServiceFactory.createVMServiceInstance(); public static class BadErrorHandler {
