- Testcontainers
- RabbitMQ (Stream queues, MQTT 'native' support)
- others (webflux, websocket)
mvn spring-boot:run
You need the following services running:
- redis on localhost, port 6379
- rabbitmq on localhost, port 5552 (stream queues)
-
Create a docker instance of rabbitmq 3.12 with STREAMS queue support
docker run -d --name rbt-mq-3.12.0-beta.6-management -p 5552:5552 -p 5672:5672 -p 15672:15672 -e RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS='-rabbitmq_stream advertised_host localhost' rabbitmq:3.12.0-beta.6-management
-
Login to container to enable stream plugins
docker exec -it rbt-mq-3.12.0-beta.6-management bash
-
Execute in container
rabbitmq-plugins enable rabbitmq_stream rabbitmq_stream_management
Login to interface with guest/guest at https://localhost:15672/
- Run a simple redis container
docker run -d --name some-redis -p 6379:6379 redis
- h2 as spring default datasource
Run them with mvn test
commmand
Run them with mvn verify
command