Last active
February 25, 2018 10:45
-
-
Save dnno/7d268197f927ea9b5dba472941a00421 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 class InfinispanContainer extends GenericContainer<InfinispanContainer> { | |
| private static final String IMAGE_NAME = "jboss/infinispan-server"; | |
| public InfinispanContainer() { | |
| this(IMAGE_NAME + ":latest"); | |
| } | |
| public InfinispanContainer(final String imageName) { | |
| super(imageName); | |
| withStartupTimeout(Duration.ofMillis(20000)); | |
| withCommand("standalone"); | |
| waitingFor(new LogMessageWaitStrategy().withRegEx(".*Infinispan Server.*started in.*\\s")); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment