99import lombok .SneakyThrows ;
1010import org .apache .activemq .artemis .jms .client .ActiveMQConnectionFactory ;
1111import org .junit .jupiter .api .Test ;
12+ import org .junit .jupiter .params .ParameterizedTest ;
13+ import org .junit .jupiter .params .provider .ValueSource ;
1214
1315import static org .assertj .core .api .Assertions .assertThat ;
1416
@@ -18,7 +20,7 @@ class ArtemisContainerTest {
1820 void defaultCredentials () {
1921 try (
2022 // container {
21- ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.30 .0-alpine" )
23+ ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.32 .0-alpine" )
2224 // }
2325 ) {
2426 artemis .start ();
@@ -33,7 +35,7 @@ void defaultCredentials() {
3335 void customCredentials () {
3436 try (
3537 // settingCredentials {
36- ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.30 .0-alpine" )
38+ ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.32 .0-alpine" )
3739 .withUser ("testcontainers" )
3840 .withPassword ("testcontainers" )
3941 // }
@@ -50,7 +52,7 @@ void customCredentials() {
5052 void allowAnonymousLogin () {
5153 try (
5254 // enableAnonymousLogin {
53- ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.30 .0-alpine" )
55+ ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.32 .0-alpine" )
5456 .withEnv ("ANONYMOUS_LOGIN" , "true" )
5557 // }
5658 ) {
@@ -60,6 +62,15 @@ void allowAnonymousLogin() {
6062 }
6163 }
6264
65+ @ ParameterizedTest
66+ @ ValueSource (strings = { "apache/activemq-artemis:2.32.0-alpine" , "apache/artemis:2.53.0-alpine" })
67+ void compatibility (String image ) {
68+ try (ArtemisContainer artemis = new ArtemisContainer (image )) {
69+ artemis .start ();
70+ assertFunctionality (artemis , false );
71+ }
72+ }
73+
6374 @ SneakyThrows
6475 private void assertFunctionality (ArtemisContainer artemis , boolean anonymousLogin ) {
6576 ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory (artemis .getBrokerUrl ());
0 commit comments