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"
3
3
dependencies {
4
4
api project(' :testcontainers' )
5
5
6
+ testRuntimeOnly ' org.junit.platform:junit-platform-launcher:1.11.0'
7
+
6
8
testImplementation ' org.assertj:assertj-core:3.27.4'
9
+ testImplementation ' org.junit.jupiter:junit-jupiter:5.13.4'
7
10
testImplementation " org.apache.activemq:activemq-client:6.1.7"
8
11
testImplementation " org.apache.activemq:artemis-jakarta-client:2.42.0"
9
12
}
13
+
14
+ test {
15
+ useJUnitPlatform()
16
+ }
Original file line number Diff line number Diff line change 9
9
import jakarta .jms .TextMessage ;
10
10
import lombok .SneakyThrows ;
11
11
import org .apache .activemq .ActiveMQConnectionFactory ;
12
- import org .junit .Test ;
12
+ import org .junit .jupiter . api . Test ;
13
13
14
14
import static org .assertj .core .api .Assertions .assertThat ;
15
15
16
- public class ActiveMQContainerTest {
16
+ class ActiveMQContainerTest {
17
17
18
18
@ Test
19
- public void test () {
19
+ void test () {
20
20
try ( // container {
21
21
ActiveMQContainer activemq = new ActiveMQContainer ("apache/activemq-classic:5.18.3" )
22
22
// }
@@ -30,7 +30,7 @@ public void test() {
30
30
}
31
31
32
32
@ Test
33
- public void customCredentials () {
33
+ void customCredentials () {
34
34
try (
35
35
// settingCredentials {
36
36
ActiveMQContainer activemq = new ActiveMQContainer ("apache/activemq-classic:5.18.3" )
Original file line number Diff line number Diff line change 8
8
import jakarta .jms .TextMessage ;
9
9
import lombok .SneakyThrows ;
10
10
import org .apache .activemq .artemis .jms .client .ActiveMQConnectionFactory ;
11
- import org .junit .Test ;
11
+ import org .junit .jupiter . api . Test ;
12
12
13
13
import static org .assertj .core .api .Assertions .assertThat ;
14
14
15
- public class ArtemisContainerTest {
15
+ class ArtemisContainerTest {
16
16
17
17
@ Test
18
- public void defaultCredentials () {
18
+ void defaultCredentials () {
19
19
try (
20
20
// container {
21
21
ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.30.0-alpine" )
@@ -30,7 +30,7 @@ public void defaultCredentials() {
30
30
}
31
31
32
32
@ Test
33
- public void customCredentials () {
33
+ void customCredentials () {
34
34
try (
35
35
// settingCredentials {
36
36
ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.30.0-alpine" )
@@ -47,7 +47,7 @@ public void customCredentials() {
47
47
}
48
48
49
49
@ Test
50
- public void allowAnonymousLogin () {
50
+ void allowAnonymousLogin () {
51
51
try (
52
52
// enableAnonymousLogin {
53
53
ArtemisContainer artemis = new ArtemisContainer ("apache/activemq-artemis:2.30.0-alpine" )
You can’t perform that action at this time.
0 commit comments