minor test improvements
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
<bean id="named-cache" class="org.springframework.data.gemfire.CacheFactoryBean" p:name="named-cache">
|
||||
<property name="properties">
|
||||
<props>
|
||||
<!-- cache-with-props is not being picked up or used. -->
|
||||
<prop key="name">cache-with-props</prop>
|
||||
<prop key="log-level">warning</prop>
|
||||
</props>
|
||||
|
||||
Reference in New Issue
Block a user