예제 #1
0
  @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"));
 }
예제 #4
0
 @Test(expected = NullPointerException.class)
 public void testContainsValue_whenSearchValueNull() {
   final MultiMap mm = client.getMultiMap(randomString());
   mm.containsValue(null);
 }
예제 #5
0
 @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);
 }