From 358789cbdc1d319a5205e28059a94a0529bb1756 Mon Sep 17 00:00:00 2001 From: markpollack Date: Tue, 27 Jul 2010 10:36:32 -0400 Subject: [PATCH] minor test improvements --- .../springframework/data/gemfire/CacheIntegrationTest.java | 5 ++++- .../org/springframework/data/gemfire/basic-cache.xml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/springframework/data/gemfire/CacheIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/CacheIntegrationTest.java index f49e6043..8dc32547 100644 --- a/src/test/java/org/springframework/data/gemfire/CacheIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/CacheIntegrationTest.java @@ -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 diff --git a/src/test/resources/org/springframework/data/gemfire/basic-cache.xml b/src/test/resources/org/springframework/data/gemfire/basic-cache.xml index fd11c38d..1d80753d 100644 --- a/src/test/resources/org/springframework/data/gemfire/basic-cache.xml +++ b/src/test/resources/org/springframework/data/gemfire/basic-cache.xml @@ -26,6 +26,7 @@ + cache-with-props warning