Disable the registration of the Mock Pool created by the Mock PoolFactory with the PoolManager.

This commit is contained in:
John Blum
2019-05-24 08:52:22 -07:00
parent 692455d2df
commit 0ff45d4fd6
2 changed files with 3 additions and 1 deletions

View File

@@ -1687,7 +1687,7 @@ public abstract class GemFireMockObjectsSupport extends MockObjectsSupport {
when(mockPool.getSubscriptionRedundancy()).thenReturn(subscriptionRedundancy.get());
when(mockPool.getThreadLocalConnections()).thenReturn(threadLocalConnections.get());
register(mockPool);
//register(mockPool);
return mockPool;
});

View File

@@ -19,6 +19,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -71,6 +72,7 @@ public class MockClientCacheDefaultPoolRegisteredWithPoolManagerUnitTests {
@Test
@DirtiesContext
@Ignore("Apache Geode/Pivotal GemFire does not support Mock Pools")
public void defaultPoolRegisteredWithPoolManager() {
Pool geodeDefaultPool = PoolManager.find("DEFAULT");