From f356c0f3cc6819ba3014adf83abf51174dd37028 Mon Sep 17 00:00:00 2001 From: John Blum Date: Sat, 6 Oct 2018 16:34:40 -0700 Subject: [PATCH] Extend o.s.d.g.tests.integration.IntegrationTestsSupport to clean up mock objects and allocated GemFire/Geode resources. --- .../NoAutoConfigurationOfSessionCachingIntegrationTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/session/NoAutoConfigurationOfSessionCachingIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/session/NoAutoConfigurationOfSessionCachingIntegrationTests.java index cccea995..14f53e40 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/session/NoAutoConfigurationOfSessionCachingIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/session/NoAutoConfigurationOfSessionCachingIntegrationTests.java @@ -24,6 +24,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.ApplicationContext; +import org.springframework.data.gemfire.tests.integration.IntegrationTestsSupport; import org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects; import org.springframework.geode.boot.autoconfigure.ContinuousQueryAutoConfiguration; import org.springframework.geode.boot.autoconfigure.SpringSessionAutoConfiguration; @@ -41,6 +42,7 @@ import org.springframework.web.context.WebApplicationContext; * @see org.springframework.boot.autoconfigure.SpringBootApplication * @see org.springframework.boot.test.context.SpringBootTest * @see org.springframework.context.ApplicationContext + * @see org.springframework.data.gemfire.tests.integration.IntegrationTestsSupport * @see org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects * @see org.springframework.geode.boot.autoconfigure.SpringSessionAutoConfiguration * @see org.springframework.session.SessionRepository @@ -51,7 +53,7 @@ import org.springframework.web.context.WebApplicationContext; @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE) @SuppressWarnings("unused") -public class NoAutoConfigurationOfSessionCachingIntegrationTests { +public class NoAutoConfigurationOfSessionCachingIntegrationTests extends IntegrationTestsSupport { @Autowired private ApplicationContext applicationContext;