Rename clearSpringSystemProperties() to clearAllSpringPrefixedSystemProperties().

Annotate clearAllSpringPrefixedSystemProperties() to execute BeforeClass (i.e. pre-test execution).
This commit is contained in:
John Blum
2018-05-29 08:58:09 -07:00
parent 1dfdbada7c
commit 363a146952

View File

@@ -24,7 +24,6 @@ import java.util.stream.Collectors;
import org.apache.geode.cache.CacheClosedException;
import org.apache.geode.cache.GemFireCache;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.springframework.data.gemfire.GemfireUtils;
@@ -53,8 +52,8 @@ public abstract class IntegrationTestsSupport {
closeGemFireCacheWaitOnCloseEvent();
}
@AfterClass
public static void clearSpringSystemProperties() {
@BeforeClass
public static void clearAllSpringPrefixedSystemProperties() {
List<String> springSystemProperties = System.getProperties().stringPropertyNames().stream()
.filter(it -> it.toLowerCase().startsWith("spring"))