Package org.infinispan.loaders

Examples of org.infinispan.loaders.CacheStore.purgeExpired()


   @Test
   public void testDoWorkOnPurgeExpired() throws Exception {
      CacheStore cs = createMock(CacheStore.class);
      PurgeExpired purge = createMock(PurgeExpired.class);
      expect(purge.getType()).andReturn(Modification.Type.PURGE_EXPIRED);
      cs.purgeExpired();
      replay(cs);
      replay(purge);

      ModificationsTransactionWorker worker =
            new ModificationsTransactionWorker(cs,
View Full Code Here


   @Test
   public void testDoWorkOnPurgeExpired() throws Exception {
      CacheStore cs = mock(CacheStore.class);
      PurgeExpired purge = mock(PurgeExpired.class);
      when(purge.getType()).thenReturn(Modification.Type.PURGE_EXPIRED);
      cs.purgeExpired();

      ModificationsTransactionWorker worker =
            new ModificationsTransactionWorker(cs,
                                               Collections.singletonList(purge));
      worker.doWork();
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.