File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed
src/test/java/org/testcontainers/activemq Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,14 @@ description = "Testcontainers :: ActiveMQ"
33dependencies {
44 api project(' :testcontainers' )
55
6+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher:1.11.0'
7+
68 testImplementation ' org.assertj:assertj-core:3.27.4'
9+ testImplementation ' org.junit.jupiter:junit-jupiter:5.13.4'
710 testImplementation " org.apache.activemq:activemq-client:6.1.7"
811 testImplementation " org.apache.activemq:artemis-jakarta-client:2.42.0"
912}
13+
14+ test {
15+ useJUnitPlatform()
16+ }
Original file line number Diff line number Diff line change 99import jakarta .jms .TextMessage ;
1010import lombok .SneakyThrows ;
1111import org .apache .activemq .ActiveMQConnectionFactory ;
12- import org .junit .Test ;
12+ import org .junit .jupiter . api . Test ;
1313
1414import static org .assertj .core .api .Assertions .assertThat ;
1515
16- public class ActiveMQContainerTest {
16+ class ActiveMQContainerTest {
1717
1818 @ Test
19- public void test () {
19+ void test () {
2020 try ( // container {
2121 ActiveMQContainer activemq = new ActiveMQContainer ("apache/activemq-classic:5.18.3" )
2222 // }
@@ -30,7 +30,7 @@ public void test() {
3030 }
3131
3232 @ Test
33- public void customCredentials () {
33+ void customCredentials () {
3434 try (
3535 // settingCredentials {
3636 ActiveMQContainer activemq = new ActiveMQContainer ("apache/activemq-classic:5.18.3" )
Original file line number Diff line number Diff line change 88import jakarta .jms .TextMessage ;
99import lombok .SneakyThrows ;
1010import org .apache .activemq .artemis .jms .client .ActiveMQConnectionFactory ;
11- import org .junit .Test ;
11+ import org .junit .jupiter . api . Test ;
1212
1313import static org .assertj .core .api .Assertions .assertThat ;
1414
15- public class ArtemisContainerTest {
15+ class ArtemisContainerTest {
1616
1717 @ Test
18- public void defaultCredentials () {
18+ void defaultCredentials () {
1919 try (
2020 // container {
2121 ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.30.0-alpine" )
@@ -30,7 +30,7 @@ public void defaultCredentials() {
3030 }
3131
3232 @ Test
33- public void customCredentials () {
33+ void customCredentials () {
3434 try (
3535 // settingCredentials {
3636 ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.30.0-alpine" )
@@ -47,7 +47,7 @@ public void customCredentials() {
4747 }
4848
4949 @ Test
50- public void allowAnonymousLogin () {
50+ void allowAnonymousLogin () {
5151 try (
5252 // enableAnonymousLogin {
5353 ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.30.0-alpine" )
You can’t perform that action at this time.
0 commit comments