Added a usage description
This commit is contained in:
parent
0aad592ea3
commit
d496e58fd3
2 changed files with 22 additions and 7 deletions
14
README.md
14
README.md
|
@ -6,3 +6,17 @@ use a generic container to launch other images. This repository contains an impl
|
||||||
for the Infinispan cache server. It provides an API that is aimed to help you configure the 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!
|
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();
|
||||||
|
```
|
|
@ -11,12 +11,13 @@ import static org.junit.Assert.assertNotNull;
|
||||||
public class InfinispanContainerIntegrationTest {
|
public class InfinispanContainerIntegrationTest {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static InfinispanContainer infinispan = InfinispanContainerFactory
|
public static InfinispanContainer infinispan =
|
||||||
.standalone("9.1.3.Final")
|
InfinispanContainerFactory
|
||||||
.configurationFile("infinispan-standalone.xml")
|
.standalone("9.1.3.Final")
|
||||||
.expose()
|
.configurationFile("infinispan-standalone.xml")
|
||||||
.hotrod()
|
.expose()
|
||||||
.build();
|
.hotrod()
|
||||||
|
.build();
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void rule_should_have_mapped_hotrod_port() {
|
public void rule_should_have_mapped_hotrod_port() {
|
||||||
|
|
Loading…
Reference in a new issue