Fixed test issues in SubRegionNamespaceTest class involving Region fullPath property assertions.

This commit is contained in:
John Blum
2014-07-07 13:31:43 -07:00
parent 8a8d0d89ff
commit 1ed3ad4295

View File

@@ -459,7 +459,9 @@ public class MockRegionFactory<K,V> {
}
});
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);