Package com.hazelcast.core

Examples of com.hazelcast.core.MultiMap.containsKey()


    @Test
    public void testContainsKey() {
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(1);
        MultiMap multiMap = getMultiMap(factory.newInstances(), randomString());
        System.out.println("test = " + multiMap.containsKey("test"));
        multiMap.put("test","test");
        System.out.println("test = " + multiMap.containsKey("test"));
        multiMap.remove("test");
        System.out.println("test = " + multiMap.containsKey("test"));
View Full Code Here


    public void testContainsKey() {
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(1);
        MultiMap multiMap = getMultiMap(factory.newInstances(), randomString());
        System.out.println("test = " + multiMap.containsKey("test"));
        multiMap.put("test","test");
        System.out.println("test = " + multiMap.containsKey("test"));
        multiMap.remove("test");
        System.out.println("test = " + multiMap.containsKey("test"));


    }
View Full Code Here

        MultiMap multiMap = getMultiMap(factory.newInstances(), randomString());
        System.out.println("test = " + multiMap.containsKey("test"));
        multiMap.put("test","test");
        System.out.println("test = " + multiMap.containsKey("test"));
        multiMap.remove("test");
        System.out.println("test = " + multiMap.containsKey("test"));


    }

    @Test(expected = NullPointerException.class)
View Full Code Here

    @Test(expected = NullPointerException.class)
    public void testContainsKey_whenNullKey() throws InterruptedException {
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(1);
        MultiMap multiMap = getMultiMap(factory.newInstances(), randomString());

        multiMap.containsKey(null);
    }

    @Test(expected = NullPointerException.class)
    public void testContainsValue_whenNullKey() throws InterruptedException {
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(1);
View Full Code Here

    @Test
    public void testContainsKey_whenKeyExists() {
        final MultiMap mm = client.getMultiMap(randomString());
        mm.put("key1", "value1");

        assertTrue(mm.containsKey("key1"));
    }

    @Test
    public void testContainsKey_whenKeyNotExists() {
        final MultiMap mm = client.getMultiMap(randomString());
View Full Code Here

    @Test
    public void testContainsKey_whenKeyNotExists() {
        final MultiMap mm = client.getMultiMap(randomString());

        assertFalse(mm.containsKey("NOT_THERE"));
    }

    @Test(expected = NullPointerException.class)
    public void testContainsKey_whenKeyNull() {
        final MultiMap mm = client.getMultiMap(randomString());
View Full Code Here

    @Test(expected = NullPointerException.class)
    public void testContainsKey_whenKeyNull() {
        final MultiMap mm = client.getMultiMap(randomString());

        mm.containsKey(null);
    }

    @Test
    public void testContainsValue_whenExists() {
        final MultiMap mm = client.getMultiMap(randomString());
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.