Adapt to API changes in STDG 0.0.26.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user