Package org.axonframework.cache

Examples of org.axonframework.cache.EhCacheAdapter


    @Before
    public void setUp() throws Exception {
        ehCache = new net.sf.ehcache.Cache("test", 100, false, false, 10, 10);
        cacheManager = CacheManager.create();
        cacheManager.addCache(ehCache);
        associationsCache = spy(new EhCacheAdapter(ehCache));
        sagaCache = spy(new EhCacheAdapter(ehCache));
        repository = mock(SagaRepository.class);
        testSubject = new CachingSagaRepository(repository, associationsCache, sagaCache);
    }
View Full Code Here


        mockEventBus = mock(EventBus.class);
        testSubject.setEventBus(mockEventBus);

        final CacheManager cacheManager = CacheManager.getInstance();
        ehCache = cacheManager.getCache("testCache");
        cache = spy(new EhCacheAdapter(ehCache));
        testSubject.setCache(cache);
    }
View Full Code Here

    public TemporaryFolder tempFolder = new TemporaryFolder();

    @Before
    public void setUp() throws Exception {
        final CacheManager cacheManager = CacheManager.getInstance();
        cache = new EhCacheAdapter(cacheManager.addCacheIfAbsent("name"));

        eventBus = new SimpleEventBus();
        eventBus.subscribe(new LoggingEventListener(events));
        events.clear();
View Full Code Here

TOP

Related Classes of org.axonframework.cache.EhCacheAdapter

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.