Example usage for org.springframework.data.gemfire IndexFactoryBean resolveCache

List of usage examples for org.springframework.data.gemfire IndexFactoryBean resolveCache

Introduction

In this page you can find the example usage for org.springframework.data.gemfire IndexFactoryBean resolveCache.

Prototype

RegionService resolveCache() 

Source Link

Usage

From source file:org.springframework.data.gemfire.IndexFactoryBeanTest.java

@Test(expected = IllegalStateException.class)
public void resolveCacheThrowsExceptionForUnresolvableCache() {
    try {/*w  w w .  j av a2s . c  om*/
        IndexFactoryBean indexFactoryBean = newIndexFactoryBean();
        indexFactoryBean.setCache(null);
        indexFactoryBean.resolveCache();
    } catch (IllegalStateException expected) {
        assertThat(expected).hasMessage("Cache is required");
        assertThat(expected).hasNoCause();

        throw expected;
    }
}