Move ClusterAwareConfiguration.ClusterAwareCondition.reset() to @AfterClass tear down method.

This commit is contained in:
John Blum
2019-09-12 16:57:48 -07:00
parent 9374bf4803
commit c3f19df920
2 changed files with 9 additions and 6 deletions

View File

@@ -28,6 +28,7 @@ import org.apache.geode.cache.client.ClientCache;
import org.apache.geode.cache.client.ClientRegionShortcut;
import org.apache.geode.cache.server.CacheServer;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -85,12 +86,14 @@ public class ClusterAvailableConfigurationIntegrationTests extends ForkingClient
@BeforeClass
public static void runGemFireServer() throws IOException {
ClusterAwareConfiguration.ClusterAwareCondition.reset();
startGemFireServer(GeodeServerApplication.class);
}
@AfterClass
public static void tearDown() {
ClusterAwareConfiguration.ClusterAwareCondition.reset();
}
@Autowired
private ClientCache clientCache;

View File

@@ -24,8 +24,8 @@ import org.apache.geode.cache.GemFireCache;
import org.apache.geode.cache.Region;
import org.apache.geode.cache.client.ClientRegionShortcut;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -71,8 +71,8 @@ public class ClusterNotAvailableConfigurationIntegrationTests extends Integratio
private static final String LOG_LEVEL = "error";
@BeforeClass
public static void setup() {
@AfterClass
public static void tearDown() {
ClusterAwareConfiguration.ClusterAwareCondition.reset();
}