Package org.apache.camel.component.cache

Examples of org.apache.camel.component.cache.CacheEndpoint


        return ctx;
    }

    @Test
    public void testCache() throws Exception {
        CacheEndpoint endpoint = context.getEndpoint(CACHE_URI, CacheEndpoint.class);

        // do some routes to let everything be initialized
        template.sendBody("direct:add", "Hello World");

        // Is CacheManagerFactory really referenced?
        CacheManagerFactory cmf = endpoint.getCacheManagerFactory();
        assertEquals("Cache Manager Factory Referenced", cmfRef, cmf);

        // Is the right ehcache_test.xml config. loaded?
        Cache cache = cmfRef.getCacheManager().getCache("testingOne");
        assertNotNull("Is ehcache_test.xml loaded", cache);
View Full Code Here


        return ctx;
    }

    @Test
    public void testCache() throws Exception {
        CacheEndpoint endpoint = (CacheEndpoint) context.getEndpoint(CACHE_URI);

        // do some routes to let everything be initialized
        template.sendBody("direct:add", "Hello World");

        // Is CacheManagerFactory really referenced?
        CacheManagerFactory cmf = endpoint.getCacheManagerFactory();
        assertEquals("Cache Manager Factory Referenced", cmfRef, cmf);

        // Is the right ehcache_test.xml config. loaded?
        Cache cache = cmfRef.getCacheManager().getCache("testingOne");
        assertNotNull("Is ehcache_test.xml loaded", cache);
View Full Code Here

        return ctx;
    }

    @Test
    public void testCache() throws Exception {
        CacheEndpoint endpoint = context.getEndpoint(CACHE_URI, CacheEndpoint.class);

        // do some routes to let everything be initialized
        template.sendBody("direct:add", "Hello World");

        // Is CacheManagerFactory really referenced?
        CacheManagerFactory cmf = endpoint.getCacheManagerFactory();
        assertEquals("Cache Manager Factory Referenced", cmfRef, cmf);

        // Is the right ehcache_test.xml config. loaded?
        Cache cache = cmfRef.getCacheManager().getCache("testingOne");
        assertNotNull("Is ehcache_test.xml loaded", cache);
View Full Code Here

        return ctx;
    }

    @Test
    public void testCache() throws Exception {
        CacheEndpoint endpoint = context.getEndpoint(CACHE_URI, CacheEndpoint.class);

        // do some routes to let everything be initialized
        template.sendBody("direct:add", "Hello World");

        // Is CacheManagerFactory really referenced?
        CacheManagerFactory cmf = endpoint.getCacheManagerFactory();
        assertEquals("Cache Manager Factory Referenced", cmfRef, cmf);

        // Is the right ehcache_test.xml config. loaded?
        Cache cache = cmfRef.getCacheManager().getCache("testingOne");
        assertNotNull("Is ehcache_test.xml loaded", cache);
View Full Code Here

TOP

Related Classes of org.apache.camel.component.cache.CacheEndpoint

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.