Skip to content

Instantly share code, notes, and snippets.

@dnno
Created February 25, 2018 10:38
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/c3fb0982e96b8b34949afad368278117 to your computer and use it in GitHub Desktop.
Save dnno/c3fb0982e96b8b34949afad368278117 to your computer and use it in GitHub Desktop.
private ExecutorService executorService = Executors.newCachedThreadPool();
@Test
public void should_be_able_to_retrieve_a_cache() throws Exception {
Future<RemoteCache<Object, Object>> result =
executorService.submit(() -> cacheManager.getCache());
assertNotNull(result.get(1500, TimeUnit.MILLISECONDS));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment