diff --git a/README.md b/README.md index 9aa5384..cd6b4a2 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,18 @@ for a few different docker containers that you might want to use during integrat use a generic container to launch other images. This repository contains an implementation of a container for the Infinispan cache server. It provides an API that is aimed to help you configure the container. -At the moment this is a rudimentary implementation and by no means complete. Feel free to suggest changes! \ No newline at end of file +At the moment this is a rudimentary implementation and by no means complete. Feel free to suggest changes! + +# Usage + +For general usage info on Testcontainers please look at the examples of the project. + +``` +@ClassRule +public static InfinispanContainer infinispan = InfinispanContainerFactory + .standalone("9.1.3.Final") + .configurationFile("infinispan-standalone.xml") + .expose() + .hotrod() + .build(); +``` \ No newline at end of file diff --git a/src/test/java/InfinispanContainerIntegrationTest.java b/src/test/java/InfinispanContainerIntegrationTest.java index 3a1c141..d1c1c15 100644 --- a/src/test/java/InfinispanContainerIntegrationTest.java +++ b/src/test/java/InfinispanContainerIntegrationTest.java @@ -11,12 +11,13 @@ import static org.junit.Assert.assertNotNull; public class InfinispanContainerIntegrationTest { @ClassRule - public static InfinispanContainer infinispan = InfinispanContainerFactory - .standalone("9.1.3.Final") - .configurationFile("infinispan-standalone.xml") - .expose() - .hotrod() - .build(); + public static InfinispanContainer infinispan = + InfinispanContainerFactory + .standalone("9.1.3.Final") + .configurationFile("infinispan-standalone.xml") + .expose() + .hotrod() + .build(); @Test public void rule_should_have_mapped_hotrod_port() {