+ add region name test
SGF-10 SGF-12 SGF-13
This commit is contained in:
@@ -36,6 +36,7 @@ public abstract class RecreatingContextTest {
|
||||
@Before
|
||||
public void createCtx() {
|
||||
ctx = new GenericXmlApplicationContext(location());
|
||||
ctx.registerShutdownHook();
|
||||
}
|
||||
|
||||
@After
|
||||
|
||||
@@ -58,6 +58,7 @@ public class PartitionedRegionNamespaceTest {
|
||||
RegionFactoryBean fb = context.getBean("&options", RegionFactoryBean.class);
|
||||
assertEquals(DataPolicy.PARTITION, TestUtils.readField("dataPolicy", fb));
|
||||
assertEquals(null, TestUtils.readField("scope", fb));
|
||||
assertEquals("redundant", TestUtils.readField("name", fb));
|
||||
|
||||
RegionAttributes attrs = TestUtils.readField("attributes", fb);
|
||||
PartitionAttributes pAttr = attrs.getPartitionAttributes();
|
||||
|
||||
@@ -57,7 +57,7 @@ public class ReplicatedRegionNamespaceTest {
|
||||
RegionFactoryBean fb = context.getBean("&pub", RegionFactoryBean.class);
|
||||
assertEquals(DataPolicy.REPLICATE, TestUtils.readField("dataPolicy", fb));
|
||||
assertEquals(Scope.DISTRIBUTED_ACK, TestUtils.readField("scope", fb));
|
||||
|
||||
assertEquals("publisher", TestUtils.readField("name", fb));
|
||||
RegionAttributes attrs = TestUtils.readField("attributes", fb);
|
||||
assertTrue(attrs.getPublisher());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user