+ improve other tests in the process
This commit is contained in:
Costin Leau
2011-08-19 15:09:43 +03:00
parent da8dfd30d7
commit c49e11f45d
6 changed files with 53 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ public class CacheNamespaceTest extends RecreatingContextTest {
assertTrue(ctx.containsBean("cache-with-xml"));
CacheFactoryBean cfb = (CacheFactoryBean) ctx.getBean("&cache-with-xml");
Resource res = TestUtils.readField("cacheXml", cfb);
assertEquals("cache.xml", res.getFilename());
assertEquals("gemfire-cache.xml", res.getFilename());
assertEquals(ctx.getBean("props"), TestUtils.readField("properties", cfb));
}

View File

@@ -48,7 +48,7 @@ public class CacheServerProcess {
AttributesFactory factory = new AttributesFactory();
factory.setDataPolicy(DataPolicy.REPLICATE);
factory.setScope(Scope.DISTRIBUTED_ACK);
Region testRegion = cache.createRegion("test", factory.create());
Region testRegion = cache.createRegion("test-cq", factory.create());
System.out.println("Test region, " + testRegion.getFullPath() + ", created in cache.");
// Start Cache Server.