Skip to content

reactive-rsocket-broker/testcontainers-rsocket-broker-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Alibaba RSocket Broker Testcontainers module

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages