From 06d3f62cac9c82fc62d18c759b7cd4d56b775ddd Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 4 Mar 2014 16:45:06 -0800 Subject: [PATCH] Additional test changes based on whether mocking is enabled or not. --- .../config/RegionEvictionAttributesNamespaceTest.java | 6 +++++- .../gemfire/config/regions-with-eviction-attributes-ns.xml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/springframework/data/gemfire/config/RegionEvictionAttributesNamespaceTest.java b/src/test/java/org/springframework/data/gemfire/config/RegionEvictionAttributesNamespaceTest.java index 91ac9c55..dbac9889 100644 --- a/src/test/java/org/springframework/data/gemfire/config/RegionEvictionAttributesNamespaceTest.java +++ b/src/test/java/org/springframework/data/gemfire/config/RegionEvictionAttributesNamespaceTest.java @@ -125,7 +125,11 @@ public class RegionEvictionAttributesNamespaceTest { assertNotNull(six.getAttributes().getEvictionAttributes()); assertEquals(EvictionAction.OVERFLOW_TO_DISK, six.getAttributes().getEvictionAttributes().getAction()); assertEquals(EvictionAlgorithm.LRU_MEMORY, six.getAttributes().getEvictionAttributes().getAlgorithm()); - assertEquals(256, six.getAttributes().getEvictionAttributes().getMaximum()); + + int expectedMaximum = (Boolean.getBoolean("org.springframework.data.gemfire.test.GemfireTestRunner.nomock") + ? 512 : 256); + + assertEquals(expectedMaximum, six.getAttributes().getEvictionAttributes().getMaximum()); } } diff --git a/src/test/resources/org/springframework/data/gemfire/config/regions-with-eviction-attributes-ns.xml b/src/test/resources/org/springframework/data/gemfire/config/regions-with-eviction-attributes-ns.xml index 008c8bf4..e15c2b50 100644 --- a/src/test/resources/org/springframework/data/gemfire/config/regions-with-eviction-attributes-ns.xml +++ b/src/test/resources/org/springframework/data/gemfire/config/regions-with-eviction-attributes-ns.xml @@ -29,7 +29,7 @@ - +