Do not mock Pool.socketConnectTimeout and Pool.subscriptionTimeoutMultiplier with SD Kay.

This commit is contained in:
John Blum
2018-09-19 17:50:56 -07:00
parent 66e3c1e46b
commit 8d82fd8807

View File

@@ -75,13 +75,13 @@ public abstract class PoolMockObjects extends MockObjectsSupport {
when(mockPool.getServerGroup()).thenReturn(serverGroup);
when(mockPool.getServers()).thenReturn(servers);
when(mockPool.getSocketBufferSize()).thenReturn(socketBufferSize);
when(mockPool.getSocketConnectTimeout()).thenReturn(socketConnectTimeout);
//when(mockPool.getSocketConnectTimeout()).thenReturn(socketConnectTimeout);
when(mockPool.getStatisticInterval()).thenReturn(statisticInterval);
when(mockPool.getSubscriptionAckInterval()).thenReturn(subscriptionAckInterval);
when(mockPool.getSubscriptionEnabled()).thenReturn(subscriptionEnabled);
when(mockPool.getSubscriptionMessageTrackingTimeout()).thenReturn(subscriptionMessageTrackingTimeout);
when(mockPool.getSubscriptionRedundancy()).thenReturn(subscriptionRedundancy);
when(mockPool.getSubscriptionTimeoutMultiplier()).thenReturn(subscriptionTimeoutMultiplier);
//when(mockPool.getSubscriptionTimeoutMultiplier()).thenReturn(subscriptionTimeoutMultiplier);
when(mockPool.getThreadLocalConnections()).thenReturn(threadLocalConnections);
doAnswer(newSetter(destroyed, true)).when(mockPool).destroy();