Add lenient MockSettings for mock RegionAttributes.

This commit is contained in:
John Blum
2018-09-19 17:06:05 -07:00
parent c77ee37c70
commit 66e3c1e46b

View File

@@ -129,7 +129,7 @@ public abstract class CacheMockObjects {
when(mockRegion.getFullPath()).thenReturn(RegionUtils.toRegionPath(name));
RegionAttributes<K, V> mockRegionAttributes = mock(RegionAttributes.class,
String.format("%sRegionAttributes", name));
withSettings().name(String.format("%sRegionAttributes", name)).lenient());
when(mockRegionAttributes.getDataPolicy()).thenReturn(dataPolicy);
when(mockRegion.getAttributes()).thenReturn(mockRegionAttributes);