Package org.castor.cache

Examples of org.castor.cache.CacheFactory


    }

    public TestOsCacheFactory(final String name) { super(name); }

    public void testConstructor() {
        CacheFactory cf = new OsCacheFactory();
        assertTrue(cf instanceof OsCacheFactory);
    }
View Full Code Here


        CacheFactory cf = new OsCacheFactory();
        assertTrue(cf instanceof OsCacheFactory);
    }

    public void testGetCacheType() {
        CacheFactory cf = new OsCacheFactory();
        assertEquals("oscache", cf.getCacheType());
    }
View Full Code Here

        CacheFactory cf = new OsCacheFactory();
        assertEquals("oscache", cf.getCacheType());
    }

    public void testGetCacheClassName() {
        CacheFactory cf = new OsCacheFactory();
        String classname = "org.castor.cache.distributed.OsCache";
        assertEquals(classname, cf.getCacheClassName());
    }
View Full Code Here

    }

    public TestFIFOHashbeltFactory(final String name) { super(name); }

    public void testConstructor() {
        CacheFactory cf = new FIFOHashbeltFactory();
        assertTrue(cf instanceof FIFOHashbeltFactory);
    }
View Full Code Here

        CacheFactory cf = new FIFOHashbeltFactory();
        assertTrue(cf instanceof FIFOHashbeltFactory);
    }

    public void testGetCacheType() {
        CacheFactory cf = new FIFOHashbeltFactory();
        assertEquals("fifo", cf.getCacheType());
    }
View Full Code Here

        CacheFactory cf = new FIFOHashbeltFactory();
        assertEquals("fifo", cf.getCacheType());
    }

    public void testGetCacheClassName() {
        CacheFactory cf = new FIFOHashbeltFactory();
        String classname = "org.castor.cache.hashbelt.FIFOHashbelt";
        assertEquals(classname, cf.getCacheClassName());
    }
View Full Code Here

        String classname = "org.castor.cache.hashbelt.FIFOHashbelt";
        assertEquals(classname, cf.getCacheClassName());
    }

    public void testGetCache() {
        CacheFactory cf = new FIFOHashbeltFactory();
        try {
            Cache c = cf.getCache(null);
            assertTrue(c instanceof FIFOHashbelt);
        } catch (CacheAcquireException ex) {
            fail("Failed to get instance of FIFOHashbelt from factroy");
        }
    }
View Full Code Here

            fail("Failed to get instance of FIFOHashbelt from factroy");
        }
    }

    public void testShutdown() {
        CacheFactory cf = new FIFOHashbeltFactory();
        cf.shutdown();
    }
View Full Code Here

    }

    public TestGigaspacesCacheFactory(final String name) { super(name); }

    public void testConstructor() {
        CacheFactory cf = new GigaspacesCacheFactory();
        assertTrue(cf instanceof GigaspacesCacheFactory);
    }
View Full Code Here

        CacheFactory cf = new GigaspacesCacheFactory();
        assertTrue(cf instanceof GigaspacesCacheFactory);
    }

    public void testGetCacheType() {
        CacheFactory cf = new GigaspacesCacheFactory();
        assertEquals("gigaspaces", cf.getCacheType());
    }
View Full Code Here

TOP

Related Classes of org.castor.cache.CacheFactory

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.