Add @AfterClass, static method to clear all GemfireBeanFactoryLocator references.

This commit is contained in:
John Blum
2018-12-03 17:38:38 -08:00
parent 499317f4ab
commit e39631dc16

View File

@@ -40,6 +40,7 @@ import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.springframework.data.gemfire.GemfireUtils;
import org.springframework.data.gemfire.support.GemfireBeanFactoryLocator;
import org.springframework.data.gemfire.tests.mock.GemFireMockObjectsSupport;
import org.springframework.data.gemfire.tests.util.FileUtils;
import org.springframework.data.gemfire.util.CollectionUtils;
@@ -118,6 +119,11 @@ public abstract class IntegrationTestsSupport {
}
}
@AfterClass
public static void clearAllBeanFactoryLocators() {
GemfireBeanFactoryLocator.clear();
}
@AfterClass
public static void destroyAllGemFireMockObjects() {
GemFireMockObjectsSupport.destroy();