Destroy all GemFire Mock Objects after each test case.

This commit is contained in:
John Blum
2019-09-09 19:00:28 -07:00
parent e38fdeb32f
commit 4aa64fa637
2 changed files with 12 additions and 0 deletions

View File

@@ -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() {

View File

@@ -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() {