Use GemFire Mock Objects.
This commit is contained in:
@@ -32,6 +32,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.data.gemfire.config.annotation.EnableCachingDefinedRegions;
|
import org.springframework.data.gemfire.config.annotation.EnableCachingDefinedRegions;
|
||||||
import org.springframework.data.gemfire.tests.integration.IntegrationTestsSupport;
|
import org.springframework.data.gemfire.tests.integration.IntegrationTestsSupport;
|
||||||
|
import org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects;
|
||||||
import org.springframework.data.gemfire.util.RegionUtils;
|
import org.springframework.data.gemfire.util.RegionUtils;
|
||||||
import org.springframework.test.annotation.DirtiesContext;
|
import org.springframework.test.annotation.DirtiesContext;
|
||||||
import org.springframework.test.context.junit4.SpringRunner;
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
@@ -51,8 +52,8 @@ import example.app.books.service.support.CachingBookService;
|
|||||||
* @see org.springframework.boot.test.context.SpringBootTest
|
* @see org.springframework.boot.test.context.SpringBootTest
|
||||||
* @see org.springframework.data.gemfire.config.annotation.EnableCachingDefinedRegions
|
* @see org.springframework.data.gemfire.config.annotation.EnableCachingDefinedRegions
|
||||||
* @see org.springframework.data.gemfire.tests.integration.IntegrationTestsSupport
|
* @see org.springframework.data.gemfire.tests.integration.IntegrationTestsSupport
|
||||||
|
* @see org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects
|
||||||
* @see org.springframework.geode.boot.autoconfigure.CachingProviderAutoConfiguration
|
* @see org.springframework.geode.boot.autoconfigure.CachingProviderAutoConfiguration
|
||||||
* @see org.springframework.test.annotation.DirtiesContext
|
|
||||||
* @see org.springframework.test.context.junit4.SpringRunner
|
* @see org.springframework.test.context.junit4.SpringRunner
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
@@ -122,6 +123,7 @@ public class AutoConfiguredCachingIntegrationTests extends IntegrationTestsSuppo
|
|||||||
|
|
||||||
@SpringBootApplication(scanBasePackageClasses = NonBeanType.class)
|
@SpringBootApplication(scanBasePackageClasses = NonBeanType.class)
|
||||||
@EnableCachingDefinedRegions(clientRegionShortcut = ClientRegionShortcut.LOCAL)
|
@EnableCachingDefinedRegions(clientRegionShortcut = ClientRegionShortcut.LOCAL)
|
||||||
|
@EnableGemFireMockObjects
|
||||||
static class TestConfiguration { }
|
static class TestConfiguration { }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user