use of com.hazelcast.multimap.MultiMap in project hazelcast by hazelcast.
the class ClientMultiMapTest method testPut_withNullValue.
@Test(expected = NullPointerException.class)
public void testPut_withNullValue() {
Object key = "key";
final MultiMap mm = client.getMultiMap(randomString());
mm.put(key, null);
}
use of com.hazelcast.multimap.MultiMap in project hazelcast by hazelcast.
the class ClientMultiMapTest method testLocalKeySet.
@Test(expected = UnsupportedOperationException.class)
public void testLocalKeySet() {
final MultiMap mm = client.getMultiMap(randomString());
mm.localKeySet();
}
use of com.hazelcast.multimap.MultiMap in project hazelcast by hazelcast.
the class ClientMultiMapTest method testRemove_whenKeyNotExist.
@Test
public void testRemove_whenKeyNotExist() {
final MultiMap mm = client.getMultiMap(randomString());
Collection coll = mm.remove("NOT_THERE");
assertTrue(coll.isEmpty());
}
use of com.hazelcast.multimap.MultiMap in project hazelcast by hazelcast.
the class ClientMultiMapTest method testVoidDelete.
@Test
public void testVoidDelete() {
String key = "key";
MultiMap mm = client.getMultiMap(randomString());
mm.put(key, 4);
assertTrue(!mm.get(key).isEmpty());
mm.delete(key);
assertTrue(mm.get(key).isEmpty());
}
use of com.hazelcast.multimap.MultiMap in project hazelcast by hazelcast.
the class ClientMultiMapTest method testContainsKey_whenKeyNotExists.
@Test
public void testContainsKey_whenKeyNotExists() {
final MultiMap mm = client.getMultiMap(randomString());
assertFalse(mm.containsKey("NOT_THERE"));
}
Aggregations