Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save dnno/ff05c4bd3e6c80a0aba18a5e55811f82 to your computer and use it in GitHub Desktop.

Select an option

Save dnno/ff05c4bd3e6c80a0aba18a5e55811f82 to your computer and use it in GitHub Desktop.
@ClassRule
public static InfinispanContainer infinispan =
new InfinispanContainer()
.withProtocolVersion(ProtocolVersion.PROTOCOL_VERSION_21)
.withCaches("testCache");
@Test
public void should_get_existing_cache() {
assertNotNull(infinispan.getCacheManager().getCache("testCache"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment