minor test improvements

This commit is contained in:
markpollack
2010-07-27 10:36:32 -04:00
parent cdf4c57dcf
commit 358789cbdc
2 changed files with 5 additions and 1 deletions

View File

@@ -53,11 +53,14 @@ public class CacheIntegrationTest {
Cache cache = ctx.getBean("cache-with-props", Cache.class);
// the name property seems to be ignored
Assert.assertEquals("cache-with-props", cache.getDistributedSystem().getName());
Assert.assertEquals("cache-with-props", cache.getName());
}
@Test
public void testNamedCache() throws Exception {
ctx.getBean("named-cache");
Cache cache = ctx.getBean("named-cache", Cache.class);
Assert.assertEquals("named-cache", cache.getDistributedSystem().getName());
Assert.assertEquals("named-cache", cache.getName());
}
@Test