Created
February 25, 2018 10:39
-
-
Save dnno/a0d1e5ca79c9e99c948d773d15e9ef4d 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
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