demonstrate problem trying to create subregions
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package org.springframework.data.gemfire;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class SubRegionFactoryBeanTest {
|
||||
@Test
|
||||
public void test() throws Exception {
|
||||
SubRegionFactoryBean srfb = new SubRegionFactoryBean();
|
||||
srfb.setName("child");
|
||||
srfb.afterPropertiesSet();
|
||||
SubRegion sr = srfb.getObject();
|
||||
}
|
||||
}
|
||||
@@ -18,15 +18,18 @@ package org.springframework.data.gemfire.config;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertSame;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.BeanCreationException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.data.gemfire.RegionFactoryBean;
|
||||
import org.springframework.data.gemfire.RegionLookupFactoryBean;
|
||||
import org.springframework.data.gemfire.SubRegion;
|
||||
import org.springframework.data.gemfire.TestUtils;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
@@ -87,4 +90,10 @@ public class ReplicatedRegionNamespaceTest {
|
||||
assertEquals("existing", TestUtils.readField("name", lfb));
|
||||
assertEquals(existing, context.getBean("lookup"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNestedRegions() {
|
||||
Object parent = context.getBean("parent");
|
||||
//SubRegion child = context.getBean("/parent/child", SubRegion.class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user