Adapt to API changes in STDG 0.0.26.

This commit is contained in:
John Blum
2021-09-29 10:51:32 -07:00
parent e64ce8d50a
commit 44344e8424

View File

@@ -40,7 +40,6 @@ import org.apache.geode.cache.query.Index;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.data.gemfire.tests.integration.ForkingClientServerIntegrationTestsSupport;
@@ -94,9 +93,6 @@ public abstract class AbstractGemFireIntegrationTests extends ForkingClientServe
protected static final String GEMFIRE_LOG_LEVEL =
System.getProperty("spring.session.data.gemfire.log.level", DEFAULT_GEMFIRE_LOG_LEVEL);
@Autowired(required = false)
private ApplicationContext applicationContext;
@Autowired(required = false)
protected GemFireCache gemfireCache;
@@ -275,11 +271,6 @@ public abstract class AbstractGemFireIntegrationTests extends ForkingClientServe
return processControl;
}
@Nullable @SuppressWarnings("unchecked")
protected <T extends ApplicationContext> T getApplicationContext() {
return (T) this.applicationContext;
}
@Nullable @SuppressWarnings("unchecked")
protected <T extends GemFireCache> T getGemFireCache() {
return (T) this.gemfireCache;
@@ -368,7 +359,7 @@ public abstract class AbstractGemFireIntegrationTests extends ForkingClientServe
return session;
}
@SuppressWarnings("unchecked")
@SuppressWarnings({ "rawtypes", "unchecked" })
protected <T extends Session> T createSession(String principalName) {
GemFireOperationsSessionRepository.GemFireSession session = createSession();