From 1ed3ad429511cb1242e8e65f3818c6bb0ffc39b0 Mon Sep 17 00:00:00 2001 From: John Blum Date: Mon, 7 Jul 2014 13:31:43 -0700 Subject: [PATCH] Fixed test issues in SubRegionNamespaceTest class involving Region fullPath property assertions. --- .../springframework/data/gemfire/test/MockRegionFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java b/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java index 0a6f4fc8..8e908db4 100644 --- a/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java +++ b/src/test/java/org/springframework/data/gemfire/test/MockRegionFactory.java @@ -459,7 +459,9 @@ public class MockRegionFactory { } }); - when(region.getFullPath()).thenReturn(Region.SEPARATOR + name); + String fullPath = (name.startsWith(Region.SEPARATOR) ? name : Region.SEPARATOR + name); + + when(region.getFullPath()).thenReturn(fullPath); when(region.getName()).thenReturn(name); when(region.getRegionService()).thenReturn(mockRegionService);