Package org.apache.jetspeed.cache.impl

Examples of org.apache.jetspeed.cache.impl.EhPortletContentCacheImpl.createElement()


        // create some PortletContent mock objects
        PortletContent content3 = new MockPortletContent(cckey3, 300, "ContentThree", "content3content3content3content3");
        PortletContent content4 = new MockPortletContent(cckey4, 400, "ContentTwo", "content4content4content4content4");
       
        // put it in the cache
        CacheElement element3 = contentCache.createElement(cckey3, content3);
        contentCache.put(element3);
        CacheElement element4 = contentCache.createElement(cckey4, content4);
        contentCache.put(element4);

        // assert 3 and 4
View Full Code Here


        PortletContent content4 = new MockPortletContent(cckey4, 400, "ContentTwo", "content4content4content4content4");
       
        // put it in the cache
        CacheElement element3 = contentCache.createElement(cckey3, content3);
        contentCache.put(element3);
        CacheElement element4 = contentCache.createElement(cckey4, content4);
        contentCache.put(element4);

        // assert 3 and 4
        assertTrue(contentCache.isKeyInCache(cckey3));
        assertTrue(contentCache.isKeyInCache(cckey4));
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.