+ add region name test

SGF-10
SGF-12
SGF-13
This commit is contained in:
costin
2010-08-27 20:11:20 +03:00
parent fe3d02a89b
commit 291178fe09
5 changed files with 5 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ public abstract class RecreatingContextTest {
@Before
public void createCtx() {
ctx = new GenericXmlApplicationContext(location());
ctx.registerShutdownHook();
}
@After

View File

@@ -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();

View File

@@ -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());
}