Guard against null access on ClientCache.getCurrentServers() by initializing the 'DEFAULT' Pool.
This commit is contained in:
@@ -2867,7 +2867,7 @@ public abstract class GemFireMockObjectsSupport extends MockObjectsSupport {
|
||||
}).when(clientCacheFactorySpy).setPoolThreadLocalConnections(anyBoolean());
|
||||
|
||||
when(mockClientCache.getCurrentServers()).thenAnswer(invocation ->
|
||||
Collections.unmodifiableSet(new HashSet<>(defaultPool.get().getServers())));
|
||||
Collections.unmodifiableSet(new HashSet<>(mockClientCache.getDefaultPool().getServers())));
|
||||
|
||||
when(mockClientCache.getDefaultPool()).thenAnswer(invocation -> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user