@Test
  public void submitRunnable() {
    IExecutorService service = client.getExecutorService(randomString());

    String mapName = randomString();
    Runnable runnable = new MapPutRunnable(mapName);

    service.submit(runnable);

    IMap map = client.getMap(mapName);

    assertSizeEventually(1, map);
  }
Ejemplo n.º 2
0
 public static void assertSizeEventually(int expectedSize, Collection c) {
   assertSizeEventually(expectedSize, c, ASSERT_TRUE_EVENTUALLY_TIMEOUT);
 }