List of usage examples for org.springframework.data.gemfire.snapshot SnapshotServiceFactoryBean getCache
protected Cache getCache()
From source file:org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBeanTest.java
@Test public void setAndGetCacheSuccessfully() { Cache mockCache = mock(Cache.class, "MockCache"); SnapshotServiceFactoryBean factoryBean = new SnapshotServiceFactoryBean(); factoryBean.setCache(mockCache);//from w ww . ja va 2 s . c om assertThat(factoryBean.getCache(), is(sameInstance(mockCache))); }