Package com.gemstone.gemfire.cache

Examples of com.gemstone.gemfire.cache.CacheLoader


    ReplicatedRegionFactoryBean grandchild11FactoryBean = context.getBean("&/complexNested/child1/grandChild11",
      ReplicatedRegionFactoryBean.class);

    assertNotNull(grandchild11FactoryBean);

    CacheLoader expectedCacheLoader = TestUtils.readField("cacheLoader", grandchild11FactoryBean);

    assertNotNull(expectedCacheLoader);

    CacheLoader actualCacheLoader = grandchild11.getAttributes().getCacheLoader();

    assertSame(expectedCacheLoader, actualCacheLoader);
  }
View Full Code Here


      }
    });

    when(regionFactory.setCacheLoader(any(CacheLoader.class))).thenAnswer(new Answer<RegionFactory>(){
      @Override public RegionFactory answer(InvocationOnMock invocation) throws Throwable {
        CacheLoader cacheLoader = (CacheLoader) invocation.getArguments()[0];
        attributesFactory.setCacheLoader(cacheLoader);
        return regionFactory;
      }
    });
View Full Code Here

TOP

Related Classes of com.gemstone.gemfire.cache.CacheLoader

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.