Alibaba RSocket Broker Testcontainers module

Quickstart

  • Add dependency in the pom.xml
<dependency>
    <groupId>com.alibaba.rsocket</groupId>
    <artifactId>testcontainers-rsocket-broker-module</artifactId>
    <version>1.0.1</version>
</dependency>
  • Add static RSocketBrokerContainer instance in test class as following:
import org.junit.jupiter.api.Test;
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;

@Testcontainers
public class RSocketBrokerContainerTest {
    @Container
    static RSocketBrokerContainer rsocketBrokerContainer = new RSocketBrokerContainer();

    @Test
    public void shouldAnswerWithTrue() {
        System.out.println(rsocketBrokerContainer.getRSocketBrokerUri());
        System.out.println(rsocketBrokerContainer.getWebConsoleUri());
    }
}

References