SGF-543 - Register the DiskStoreDirectoryBeanPostProcessor for the new Annotation config model.

(cherry picked from commit 402e916427e16eb24eaf65e354a92c95c65c1026)
Signed-off-by: John Blum <jblum@pivotal.io>
This commit is contained in:
John Blum
2016-10-04 21:09:40 -07:00
parent eb0df3d0ef
commit 6d95846b55
4 changed files with 24 additions and 25 deletions

View File

@@ -36,16 +36,16 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.util.FileSystemUtils;
/**
* Integration tests for {@link DiskStoreBeanPostProcessor}.
* Integration tests for {@link DiskStoreDirectoryBeanPostProcessor}.
*
* @author John Blum
* @see org.junit.Test
* @see org.springframework.data.gemfire.config.support.DiskStoreBeanPostProcessor
* @see org.springframework.data.gemfire.config.support.DiskStoreDirectoryBeanPostProcessor
* @since 1.5.0
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class DiskStoreBeanPostProcessorIntegrationTests {
public class DiskStoreDirectoryBeanPostProcessorIntegrationTests {
@BeforeClass
public static void testSuiteSetup() {
@@ -68,18 +68,12 @@ public class DiskStoreBeanPostProcessorIntegrationTests {
@PeerCacheApplication(logLevel = "warning")
@SuppressWarnings("unused")
static class DiskStoreBeanPostProcessorConfiguration {
static class DiskStoreDirectoryBeanPostProcessorConfiguration {
DiskStoreFactoryBean.DiskDir newDiskDir(String location) {
return new DiskStoreFactoryBean.DiskDir(location);
}
@Bean
// TODO remove when the Annotation config model includes support
DiskStoreBeanPostProcessor diskStoreBeanPostProcessor() {
return new DiskStoreBeanPostProcessor();
}
@Bean
DiskStoreFactoryBean diskStoreOne(GemFireCache gemfireCache) {
DiskStoreFactoryBean diskStoreOne = new DiskStoreFactoryBean();