Package com.hazelcast.client.spi

Examples of com.hazelcast.client.spi.ClientProxy


    }

    @Test
    public void testTwoClientProxiesFromTheSameInstanceAreEquals() {

        ClientProxy ref1 = (ClientProxy) client1GroupA.getAtomicLong(atomicName);
        ClientProxy ref2 = (ClientProxy) client1GroupA.getAtomicLong(atomicName);

        assertEquals(ref1, ref2);
    }
View Full Code Here


    }

    @Test
    public void testProxiesAreCached() {

        ClientProxy ref1 = (ClientProxy) client1GroupA.getAtomicLong(atomicName);
        ClientProxy ref2 = (ClientProxy) client1GroupA.getAtomicLong(atomicName);

        assertSame(ref1, ref2);
    }
View Full Code Here

    }

    @Test
    public void testTwoClientProxiesFromDifferentInstancesAreNotEquals() {

        ClientProxy ref1 = (ClientProxy) client1GroupA.getAtomicLong(atomicName);
        ClientProxy ref2 = (ClientProxy) client1GroupB.getAtomicLong(atomicName);

        assertNotEquals(ref1, ref2);
    }
View Full Code Here

    }

    @Test
    public void testTwoClientProxiesFromTwoDifferentClientsConnectedToTheSameInstanceAreNotEquals() {

        ClientProxy ref1 = (ClientProxy) client1GroupA.getAtomicLong(atomicName);
        ClientProxy ref2 = (ClientProxy) client2GroupA.getAtomicLong(atomicName);

        assertNotEquals(ref1, ref2);
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.client.spi.ClientProxy

Copyright © 2018 www.massapicom. 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.