Add @AfterClass, static method to clear all GemfireBeanFactoryLocator references.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user