Skip to content

Commit bc1920d

Browse files
committed
Use a JRE range to control when Artemis tests are enabled
Closes gh-41909
1 parent 582c414 commit bc1920d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@
4141
import org.apache.activemq.artemis.jms.server.config.impl.JMSQueueConfigurationImpl;
4242
import org.apache.activemq.artemis.jms.server.config.impl.TopicConfigurationImpl;
4343
import org.junit.jupiter.api.Test;
44-
import org.junit.jupiter.api.condition.DisabledOnJre;
44+
import org.junit.jupiter.api.condition.EnabledForJreRange;
4545
import org.junit.jupiter.api.condition.JRE;
4646
import org.junit.jupiter.api.io.TempDir;
4747
import org.messaginghub.pooled.jms.JmsPoolConnectionFactory;
@@ -65,7 +65,8 @@
6565
* @author Eddú Meléndez
6666
* @author Stephane Nicoll
6767
*/
68-
@DisabledOnJre(value = JRE.OTHER, disabledReason = "https://issues.apache.org/jira/browse/ARTEMIS-4975")
68+
@EnabledForJreRange(min = JRE.JAVA_17, max = JRE.JAVA_22,
69+
disabledReason = "https://issues.apache.org/jira/browse/ARTEMIS-4975")
6970
class ArtemisAutoConfigurationTests {
7071

7172
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()

0 commit comments

Comments
 (0)