Package com.volantis.cache

Examples of com.volantis.cache.ExpectCacheEntry


        final RemovalListenerMock listener3Mock =
                new RemovalListenerMock("listener3Mock", expectations);
        final RemovalListenerMock listener4Mock =
                new RemovalListenerMock("listener4Mock", expectations);

        ExpectCacheEntry removeGroup2Key1 = new ExpectCacheEntry(
                "group2.key1", "value for (group2.key1)");
        ExpectedValue expectsCacheEntry =
                mockFactory.expectsInstanceOf(CacheEntry.class);
        listener2Mock.fuzzy
                .entryRemoved(expectsCacheEntry)
                .does(removeGroup2Key1);
        listenerRootMock.fuzzy
                .entryRemoved(expectsCacheEntry)
                .does(removeGroup2Key1);

        ExpectCacheEntry removeGroup2Key3 = new ExpectCacheEntry(
                "group2.key3", "value for (group2.key3)");
        listener2Mock.fuzzy
                .entryRemoved(expectsCacheEntry)
                .does(removeGroup2Key3);
        listenerRootMock.fuzzy
                .entryRemoved(expectsCacheEntry)
                .does(removeGroup2Key3);

        ExpectCacheEntry removeGroup3Key1 = new ExpectCacheEntry(
                "group3.key1", "value for (group3.key1)");
        listener3Mock.fuzzy
                .entryRemoved(expectsCacheEntry)
                .does(removeGroup3Key1);
        listenerRootMock.fuzzy
View Full Code Here

TOP

Related Classes of com.volantis.cache.ExpectCacheEntry

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.