@Test public void testContainsValue_whenExists() { final MultiMap mm = client.getMultiMap(randomString()); mm.put("key1", "value1"); assertTrue(mm.containsValue("value1")); assertFalse(mm.containsValue("NOT_THERE")); }
@Test public void containsValue() { HazelcastClient hClient = getHazelcastClient(); MultiMap<String, Integer> multiMap = hClient.getMultiMap("containsValue"); assertFalse(multiMap.containsValue(1)); assertTrue(multiMap.put("a", 1)); assertTrue(multiMap.containsValue(1)); }
@Test public void testMultiMapContainsValue() { HazelcastClient hClient = getHazelcastClient(); MultiMap<String, String> map = hClient.getMultiMap("testMultiMapContainsValue"); map.put("Hello", "World"); assertTrue(map.containsValue("World")); }
@Test(expected = NullPointerException.class) public void testContainsValue_whenSearchValueNull() { final MultiMap mm = client.getMultiMap(randomString()); mm.containsValue(null); }
@Test public void testContainsValue_whenNotExists() { final MultiMap mm = client.getMultiMap(randomString()); assertFalse(mm.containsValue("NOT_THERE")); }
@Override public boolean containsValue(Object value) { return delegate.containsValue(value); }