An Infinispan testcontainer implementation
Find a file
Reinhard Prechtl 587e7d1d0d Improve error checking
The container now gives error messages if you use programmatic cache creation with invalid InfinispanServer versions or invalid Hotrod protocol versions
2017-12-22 15:47:37 +01:00
src Improve error checking 2017-12-22 15:47:37 +01:00
.gitignore Initial 2017-12-07 11:49:27 +01:00
pom.xml Update the Infinispan client to the latest version 2017-12-22 15:02:01 +01:00
README.md Update the README file 2017-12-17 17:37:31 +01:00

Testcontainers Infinispan

The Testcontainers library provides container implementations for a few different docker containers that you might want to use during integration tests. You can always 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. It only supports the Hotrod protocol to connect to the Infinispan server, for example.

Feel free to suggest changes!

Usage

Here's simple example how you can use the InfinispanContainer.

@ClassRule
public static InfinispanContainer infinispan = new InfinispanContainer()
          .withProtocolVersion(ProtocolVersion.PROTOCOL_VERSION_26)
          .withCaches("testCache");

If you want, you can retrieve a RemoteCacheManager from the container:

infinispan.getCacheManager()

For general usage info on Testcontainers please look at the examples of the project.