@Test public void testPutIfAbsentInvalidKey() { getVertx().sharedData().<SomeObject, String>getAsyncMap("foo", onSuccess(map -> { assertIllegalArgumentException(() -> map.putIfAbsent(new SomeObject(), "foo", ar2 -> {})); testComplete(); })); await(); }
@Test public void testPutInvalidKey() { getVertx().sharedData().<SomeObject, String>getAsyncMap("foo", onSuccess(map -> { assertIllegalArgumentException(() -> map.put(new SomeObject(), "foo", ar2 -> {})); testComplete(); })); await(); }
@Test public void testPutIfAbsentInvalidValue() { getVertx().sharedData().<String, SomeObject>getAsyncMap("foo", onSuccess(map -> { assertIllegalArgumentException(() -> map.putIfAbsent("foo", new SomeObject(), ar2 -> {})); testComplete(); })); await(); }
@Test public void testPutInvalidValue() { getVertx().sharedData().<String, SomeObject>getAsyncMap("foo", onSuccess(map -> { assertIllegalArgumentException(() -> map.put("foo", new SomeObject(), ar2 -> {})); testComplete(); })); await(); }
@Test public void testPutInvalidKey() { getVertx().sharedData().<SomeObject, String>getAsyncMap("foo", onSuccess(map -> { assertIllegalArgumentException(() -> map.put(new SomeObject(), "foo", ar2 -> {})); testComplete(); })); await(); }
@Test public void testPutIfAbsentInvalidValue() { getVertx().sharedData().<String, SomeObject>getAsyncMap("foo", onSuccess(map -> { assertIllegalArgumentException(() -> map.putIfAbsent("foo", new SomeObject(), ar2 -> {})); testComplete(); })); await(); }
@Test public void testPutIfAbsentInvalidKey() { getVertx().sharedData().<SomeObject, String>getAsyncMap("foo", onSuccess(map -> { assertIllegalArgumentException(() -> map.putIfAbsent(new SomeObject(), "foo", ar2 -> {})); testComplete(); })); await(); }
@Test public void testPutInvalidValue() { getVertx().sharedData().<String, SomeObject>getAsyncMap("foo", onSuccess(map -> { assertIllegalArgumentException(() -> map.put("foo", new SomeObject(), ar2 -> {})); testComplete(); })); await(); }