List of usage examples for org.springframework.data.gemfire.test GemfireTestBeanPostProcessor GemfireTestBeanPostProcessor
GemfireTestBeanPostProcessor
From source file:org.springframework.data.gemfire.test.GemfireTestApplicationContextInitializer.java
@Override public void initialize(ConfigurableApplicationContext applicationContext) { if (StringUtils.hasText(System.getProperty(GEMFIRE_TEST_RUNNER_DISABLED))) { String value = System.getProperty(GEMFIRE_TEST_RUNNER_DISABLED); if (!("NO".equalsIgnoreCase(value) || "FALSE".equalsIgnoreCase(value))) { logger.warn(String.format("Mocks disabled. Using real GemFire components: %1$s = %2$s", GEMFIRE_TEST_RUNNER_DISABLED, value)); return; }/*from w ww .j a va2 s.c om*/ } applicationContext.getBeanFactory().addBeanPostProcessor(new GemfireTestBeanPostProcessor()); }