Created
February 25, 2018 10:35
-
-
Save dnno/6b0ced5dda343872f1429a14dbcf9598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ClassRule | |
public static GenericContainer infinispan = | |
new GenericContainer("jboss/infinispan-server:9.1.3.Final"); | |
@Before | |
public void setup(){ | |
cacheManager = new RemoteCacheManager(new ConfigurationBuilder() | |
.addServers(getServerAddress()) | |
.version(ProtocolVersion.PROTOCOL_VERSION_26) | |
.build()); | |
} | |
@Test | |
public void should_be_able_to_retrieve_a_cache() { | |
assertNotNull(cacheManager.getCache()); | |
} | |
private String getServerAddress() { | |
return infinispan.getContainerIpAddress() + ":" | |
+ infinispan.getMappedPort(11222); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment