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/solace/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ dependencies {

shaded 'org.awaitility:awaitility:4.3.0'

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

testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
testImplementation 'org.assertj:assertj-core:3.27.4'
testImplementation 'com.solacesystems:sol-jcsmp:10.27.3'
testImplementation 'org.apache.qpid:qpid-jms-client:0.61.0'
testImplementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
testImplementation 'org.apache.httpcomponents:fluent-hc:4.5.14'

}

test {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.apache.qpid.jms.JmsConnectionFactory;
import org.junit.Assert;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -20,7 +20,7 @@

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

public class SolaceContainerAMQPTest {
class SolaceContainerAMQPTest {

private static final Logger LOGGER = LoggerFactory.getLogger(SolaceContainerAMQPTest.class);

Expand All @@ -29,7 +29,7 @@ public class SolaceContainerAMQPTest {
private static final String TOPIC_NAME = "Topic/ActualTopic";

@Test
public void testSolaceContainer() throws JMSException {
void testSolaceContainer() throws JMSException {
try (
SolaceContainer solaceContainer = new SolaceContainer("solace/solace-pubsub-standard:10.25.0")
.withTopic(TOPIC_NAME, Service.AMQP)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.junit.Assert;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -16,7 +16,7 @@

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

public class SolaceContainerMQTTTest {
class SolaceContainerMQTTTest {

private static final Logger LOGGER = LoggerFactory.getLogger(SolaceContainerMQTTTest.class);

Expand All @@ -25,7 +25,7 @@ public class SolaceContainerMQTTTest {
private static final String TOPIC_NAME = "Topic/ActualTopic";

@Test
public void testSolaceContainer() {
void testSolaceContainer() {
try (
SolaceContainer solaceContainer = new SolaceContainer("solace/solace-pubsub-standard:10.25.0")
.withTopic(TOPIC_NAME, Service.MQTT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.util.EntityUtils;
import org.junit.Assert;
import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.io.IOException;

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

public class SolaceContainerRESTTest {
class SolaceContainerRESTTest {

private static final String MESSAGE = "HelloWorld";

private static final String TOPIC_NAME = "Topic/ActualTopic";

@Test
public void testSolaceContainer() throws IOException {
void testSolaceContainer() throws IOException {
try (
SolaceContainer solaceContainer = new SolaceContainer("solace/solace-pubsub-standard:10.25.0")
.withTopic(TOPIC_NAME, Service.REST)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import com.solacesystems.jcsmp.XMLMessageListener;
import com.solacesystems.jcsmp.XMLMessageProducer;
import org.junit.Assert;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.utility.MountableFile;
Expand All @@ -25,7 +25,7 @@

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

public class SolaceContainerSMFTest {
class SolaceContainerSMFTest {

private static final Logger LOGGER = LoggerFactory.getLogger(SolaceContainerSMFTest.class);

Expand All @@ -36,7 +36,7 @@ public class SolaceContainerSMFTest {
private static final Queue QUEUE = JCSMPFactory.onlyInstance().createQueue("Queue");

@Test
public void testSolaceContainerWithSimpleAuthentication() {
void testSolaceContainerWithSimpleAuthentication() {
try (
// solaceContainerSetup {
SolaceContainer solaceContainer = new SolaceContainer("solace/solace-pubsub-standard:10.25.0")
Expand All @@ -54,7 +54,7 @@ public void testSolaceContainerWithSimpleAuthentication() {
}

@Test
public void testSolaceContainerWithCreateFlow() {
void testSolaceContainerWithCreateFlow() {
try (
SolaceContainer solaceContainer = new SolaceContainer("solace/solace-pubsub-standard:10.25.0")
.withCredentials("user", "pass")
Expand Down Expand Up @@ -87,7 +87,7 @@ private static void testCreateFlow(JCSMPSession session) {
}

@Test
public void testSolaceContainerWithCertificates() {
void testSolaceContainerWithCertificates() {
try (
// solaceContainerUsageSSL {
SolaceContainer solaceContainer = new SolaceContainer("solace/solace-pubsub-standard:10.25.0")
Expand Down
Loading