Skip to content

Instantly share code, notes, and snippets.

@dnno
Created February 25, 2018 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnno/a0d1e5ca79c9e99c948d773d15e9ef4d to your computer and use it in GitHub Desktop.
Save dnno/a0d1e5ca79c9e99c948d773d15e9ef4d to your computer and use it in GitHub Desktop.
public static GenericContainer container =
new GenericContainer("jboss/infinispan-server:9.1.3.Final")
.waitingFor(new LogMessageWaitStrategy()
.withRegEx(".*Infinispan Server.*started in.*\\s"))
.withCommand("standalone")
.withClasspathResourceMapping(
"infinispan-standalone.xml",
"/opt/jboss/infinispan-server/standalone/configuration/standalone.xml",
BindMode.READ_ONLY);
@Test
public void should_be_able_to_retrieve_a_cache() throws Exception {
Future<RemoteCache<Object, Object>> result =
executorService.submit(() -> cacheManager.getCache("testCache"));
assertNotNull(result.get(1500, TimeUnit.MILLISECONDS));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment