Fixed test issues in SubRegionNamespaceTest class involving Region fullPath property assertions.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user