Remove explicit test suite setup method invoking the closeGemFireCacheWaitOnCloseEvent() method.
The GemFireCache instance is now implicitly and properly cleaned up by extending the o.s.d.g.tests.integration.IntegrationTestsSupport class, which provides the test suite setup method invoking closeGemFireCacheWaitOnCloseEvent() method before tests execution begins.
This commit is contained in:
@@ -26,7 +26,6 @@ import org.apache.geode.cache.Region;
|
||||
import org.apache.geode.cache.client.ClientCache;
|
||||
import org.apache.geode.cache.client.ClientRegionShortcut;
|
||||
import org.apache.geode.internal.cache.GemFireCacheImpl;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -62,11 +61,6 @@ public class SpringBootApacheGeodeClientCacheApplicationIntegrationTests extends
|
||||
@Autowired
|
||||
private ClientCache clientCache;
|
||||
|
||||
@BeforeClass
|
||||
public static void setup() {
|
||||
closeGemFireCacheWaitOnCloseEvent();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void clientCacheAndClientRegionAreAvailable() {
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ import org.apache.geode.cache.GemFireCache;
|
||||
import org.apache.geode.cache.Region;
|
||||
import org.apache.geode.cache.client.ClientCache;
|
||||
import org.apache.geode.internal.cache.GemFireCacheImpl;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -64,11 +63,6 @@ public class SpringBootApacheGeodePeerCacheApplicationIntegrationTests extends I
|
||||
@Autowired
|
||||
private GemFireCache peerCache;
|
||||
|
||||
@BeforeClass
|
||||
public static void setup() {
|
||||
closeGemFireCacheWaitOnCloseEvent();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void peerCacheWithPeerLocalRegionAreAvailable() {
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ import javax.annotation.Resource;
|
||||
|
||||
import org.apache.geode.cache.Region;
|
||||
import org.apache.geode.cache.client.ClientRegionShortcut;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.FixMethodOrder;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -67,11 +66,6 @@ public class AutoConfiguredCachingIntegrationTests extends IntegrationTestsSuppo
|
||||
@Resource(name = "CachedBooks")
|
||||
private Region<String, Book> cachedBooks;
|
||||
|
||||
@BeforeClass
|
||||
public static void setup() {
|
||||
closeGemFireCacheWaitOnCloseEvent();
|
||||
}
|
||||
|
||||
private void assertBook(Book book, String title) {
|
||||
|
||||
assertThat(book).isNotNull();
|
||||
|
||||
@@ -26,7 +26,6 @@ import java.util.Optional;
|
||||
import org.apache.geode.cache.GemFireCache;
|
||||
import org.apache.geode.cache.execute.FunctionService;
|
||||
import org.apache.shiro.util.Assert;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.FixMethodOrder;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -71,11 +70,6 @@ public class AutoConfiguredFunctionExecutionsIntegrationTests extends Integratio
|
||||
@Autowired
|
||||
private Calculator calculator;
|
||||
|
||||
@BeforeClass
|
||||
public static void setup() {
|
||||
closeGemFireCacheWaitOnCloseEvent();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void cacheClientIsInGroupTest() {
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ import javax.annotation.Resource;
|
||||
|
||||
import org.apache.geode.cache.Region;
|
||||
import org.apache.geode.cache.client.ClientRegionShortcut;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.FixMethodOrder;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -65,11 +64,6 @@ public class AutoConfiguredRepositoriesIntegrationTests extends IntegrationTests
|
||||
@Resource(name = "Customers")
|
||||
private Region<Long, Customer> customers;
|
||||
|
||||
@BeforeClass
|
||||
public static void setup() {
|
||||
closeGemFireCacheWaitOnCloseEvent();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void customerServiceWasConfiguredCorrectly() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user