+ 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());
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<gfe:partitioned-region id="simple" />
|
||||
|
||||
<gfe:partitioned-region id="options" copies="1" total-buckets="4">
|
||||
<gfe:partitioned-region id="options" copies="1" total-buckets="4" name="redundant">
|
||||
<gfe:partition-resolver>
|
||||
<bean class="org.springframework.data.gemfire.SimplePartitionResolver"/>
|
||||
</gfe:partition-resolver>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<gfe:replicated-region id="simple" />
|
||||
|
||||
<gfe:replicated-region id="pub" publisher="true"/>
|
||||
<gfe:replicated-region id="pub" publisher="true" name="publisher"/>
|
||||
|
||||
<gfe:replicated-region id="complex">
|
||||
<gfe:cache-listener>
|
||||
|
||||
Reference in New Issue
Block a user