Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules/activemq/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ description = "Testcontainers :: ActiveMQ"
dependencies {
api project(':testcontainers')

testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0'

testImplementation 'org.assertj:assertj-core:3.27.4'
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
testImplementation "org.apache.activemq:activemq-client:6.1.7"
testImplementation "org.apache.activemq:artemis-jakarta-client:2.42.0"
}

test {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
import jakarta.jms.TextMessage;
import lombok.SneakyThrows;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.junit.Test;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

public class ActiveMQContainerTest {
class ActiveMQContainerTest {

@Test
public void test() {
void test() {
try ( // container {
ActiveMQContainer activemq = new ActiveMQContainer("apache/activemq-classic:5.18.3")
// }
Expand All @@ -30,7 +30,7 @@ public void test() {
}

@Test
public void customCredentials() {
void customCredentials() {
try (
// settingCredentials {
ActiveMQContainer activemq = new ActiveMQContainer("apache/activemq-classic:5.18.3")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
import jakarta.jms.TextMessage;
import lombok.SneakyThrows;
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
import org.junit.Test;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

public class ArtemisContainerTest {
class ArtemisContainerTest {

@Test
public void defaultCredentials() {
void defaultCredentials() {
try (
// container {
ArtemisContainer artemis = new ArtemisContainer("apache/activemq-artemis:2.30.0-alpine")
Expand All @@ -30,7 +30,7 @@ public void defaultCredentials() {
}

@Test
public void customCredentials() {
void customCredentials() {
try (
// settingCredentials {
ArtemisContainer artemis = new ArtemisContainer("apache/activemq-artemis:2.30.0-alpine")
Expand All @@ -47,7 +47,7 @@ public void customCredentials() {
}

@Test
public void allowAnonymousLogin() {
void allowAnonymousLogin() {
try (
// enableAnonymousLogin {
ArtemisContainer artemis = new ArtemisContainer("apache/activemq-artemis:2.30.0-alpine")
Expand Down
Loading