Destroy all GemFire Mock Objects after each test case.
This commit is contained in:
@@ -26,6 +26,7 @@ import org.apache.geode.cache.client.ClientCacheFactory;
|
||||
import org.apache.geode.distributed.internal.DistributionConfig;
|
||||
import org.apache.geode.internal.cache.GemFireCacheImpl;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.data.gemfire.tests.mock.GemFireMockObjectsSupport;
|
||||
@@ -46,6 +47,11 @@ import org.springframework.data.gemfire.tests.mock.GemFireMockObjectsSupport;
|
||||
*/
|
||||
public class CacheAndClientCacheFactorySpiesConfiguresMockCacheNameUnitTests {
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
GemFireMockObjectsSupport.destroy();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void cacheFactorySpyConfiguresMockCacheName() {
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ import org.apache.geode.cache.client.ClientCacheFactory;
|
||||
import org.apache.geode.cache.client.Pool;
|
||||
import org.apache.geode.cache.client.PoolManager;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.data.gemfire.tests.mock.GemFireMockObjectsSupport;
|
||||
@@ -40,6 +41,11 @@ import org.springframework.data.gemfire.tests.mock.GemFireMockObjectsSupport;
|
||||
*/
|
||||
public class ClientCacheFactorySpyEagerlyInitializesDefaultPoolUnitTests {
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
GemFireMockObjectsSupport.destroy();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void clientCacheFactorySpyEagerlyInitializesDefaultPool() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user