Update the Infinispan client to the latest version

This commit is contained in:
Reinhard Prechtl 2017-12-22 15:02:01 +01:00
parent e375c73813
commit ebb1320506
4 changed files with 26 additions and 2 deletions

View file

@ -17,7 +17,7 @@
<!-- Dependency versions --> <!-- Dependency versions -->
<testcontainers.version>1.5.0</testcontainers.version> <testcontainers.version>1.5.0</testcontainers.version>
<infinispan.version>9.1.3.Final</infinispan.version> <infinispan.version>9.1.4.Final</infinispan.version>
</properties> </properties>
<dependencies> <dependencies>

View file

@ -0,0 +1,24 @@
import de.rpr.testcontainers.infinispan.InfinispanContainer;
import org.infinispan.client.hotrod.ProtocolVersion;
import org.junit.ClassRule;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
public class Infinispan91xContainerIntegrationTest {
@ClassRule
public static InfinispanContainer infinispan = new InfinispanContainer("jboss/infinispan-server:9.1.4.Final")
.withProtocolVersion(ProtocolVersion.PROTOCOL_VERSION_26)
.withCaches("testCache");
@Test
public void rule_should_have_mapped_hotrod_port() {
assertNotNull(infinispan.getMappedPort(11222));
}
@Test
public void should_get_existing_cache() {
assertNotNull(infinispan.getCacheManager().getCache("testCache"));
}
}

View file

@ -8,7 +8,7 @@ import static org.junit.Assert.assertNotNull;
public class InfinispanContainerIntegrationTest { public class InfinispanContainerIntegrationTest {
@ClassRule @ClassRule
public static InfinispanContainer infinispan = new InfinispanContainer() public static InfinispanContainer infinispan = new InfinispanContainer("jboss/infinispan-server:9.1.4.Final")
.withProtocolVersion(ProtocolVersion.PROTOCOL_VERSION_26) .withProtocolVersion(ProtocolVersion.PROTOCOL_VERSION_26)
.withCaches("testCache"); .withCaches("testCache");