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 bf2956bd6a6e6bb07f13438b445495efbc2d4f1d Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Fri Mar 1 10:57:01 2024 +0100 CAMEL-20477: JmsFormatDateHeadersToIso8601Test should recycle the broker for every test --- .../camel/component/jms/JmsFormatDateHeadersToIso8601Test.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsFormatDateHeadersToIso8601Test.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsFormatDateHeadersToIso8601Test.java index 9f7637640c0..ac4e9214f62 100644 --- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsFormatDateHeadersToIso8601Test.java +++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsFormatDateHeadersToIso8601Test.java @@ -27,6 +27,8 @@ import org.apache.camel.test.infra.artemis.common.ConnectionFactoryHelper; import org.apache.camel.test.infra.artemis.services.ArtemisService; import org.apache.camel.test.infra.artemis.services.ArtemisVMService; import org.apache.camel.test.junit5.CamelTestSupport; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Tags; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; import org.junit.jupiter.api.extension.RegisterExtension; @@ -35,13 +37,14 @@ import static org.apache.camel.component.jms.JmsComponent.jmsComponentAutoAcknow import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; -@TestInstance(TestInstance.Lifecycle.PER_CLASS) +@Tags({ @Tag("not-parallel") }) +@TestInstance(TestInstance.Lifecycle.PER_METHOD) public class JmsFormatDateHeadersToIso8601Test extends CamelTestSupport { private static final Date DATE = Date.from(Instant.ofEpochMilli(1519672338000L)); @RegisterExtension - public ArtemisService service = new ArtemisVMService(); + public static ArtemisService service = new ArtemisVMService(); @Test public void testComponentFormatDateHeaderToIso8601() {