Package com.hazelcast.core

Examples of com.hazelcast.core.IMap.containsValue()


    }

    @Test
    public void testContainsValue_whenValueAbsent() {
        final IMap map = client.getMap(randomString());
        assertFalse(map.containsValue("NOT_THERE"));
    }

    @Test(expected = NullPointerException.class)
    public void testContainsValue_whenValueNull() {
        final IMap map = client.getMap(randomString());
View Full Code Here


    }

    @Test(expected = NullPointerException.class)
    public void testContainsValue_whenValueNull() {
        final IMap map = client.getMap(randomString());
        map.containsValue(null);
    }

    @Test
    public void testContainsValue_whenValuePresent() {
        final IMap map = client.getMap(randomString());
View Full Code Here

    public void testContainsValue_whenValuePresent() {
        final IMap map = client.getMap(randomString());
        final Object key = "key";
        final Object value = "value";
        map.put(key, value);
        assertTrue(map.containsValue(value));
    }

    @Test
    public void testContainsValue_whenMultiValuePresent() {
        final IMap map = client.getMap(randomString());
View Full Code Here

    public void testContainsValue_whenMultiValuePresent() {
        final IMap map = client.getMap(randomString());
        final Object value = "value";
        map.put("key1", value);
        map.put("key2", value);
        assertTrue(map.containsValue(value));
    }

    @Test
    public void testGet_whenKeyPresent() {
        final IMap map = client.getMap(randomString());
View Full Code Here

                        } else if (operation < 4) {
                            map.containsKey(key);
                            stats.increment("containsKey");
                        } else if (operation < 5) {
                            Object value = String.valueOf(key);
                            map.containsValue(value);
                            stats.increment("containsValue");
                        } else if (operation < 6) {
                            map.putIfAbsent(key, createValue());
                            stats.increment("putIfAbsent");
                        } else if (operation < 7) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.