public abstract class SpringApplicationContextIntegrationTestsSupport extends IntegrationTestsSupport
SpringApplicationContextIntegrationTestsSupport class is an extension of IntegrationTestsSupport
for writing Integration Tests involving a Spring ApplicationContext.
This class contains functionality common to all Integration Tests involving a Spring ApplicationContext
and can be extended to create, acquire a reference and close the ApplicationContext
on test class completion, properly.ApplicationContext,
ConfigurableApplicationContext,
AnnotationConfigApplicationContext,
IntegrationTestsSupportIntegrationTestsSupport.ConditionDEBUG_GEMFIRE_QUERIES, DEFAULT_DEBUG_GEMFIRE_QUERIES, DEFAULT_WAIT_DURATION, DEFAULT_WAIT_INTERVAL, DIRECTORY_DELETE_ON_EXIT_PROPERTY, GEMFIRE_LOG_FILE, GEMFIRE_LOG_FILE_PROPERTY, GEMFIRE_LOG_LEVEL, GEMFIRE_LOG_LEVEL_PROPERTY, GEMFIRE_QUERY_VERBOSE_PROPERTY, SYSTEM_PROPERTIES_LOG_FILE, TEST_GEMFIRE_LOG_LEVEL| Constructor and Description |
|---|
SpringApplicationContextIntegrationTestsSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeApplicationContext() |
protected <T extends org.springframework.context.ConfigurableApplicationContext> |
getApplicationContext() |
protected <T> T |
getBean(java.lang.Class<T> requiredType) |
protected <T> T |
getBean(java.lang.String beanName,
java.lang.Class<T> requiredType) |
protected org.springframework.context.ConfigurableApplicationContext |
newApplicationContext(java.lang.Class<?>... annotatedClasses) |
protected org.springframework.context.ConfigurableApplicationContext |
processBeforeRefresh(org.springframework.context.ConfigurableApplicationContext applicationContext) |
protected <T extends org.springframework.context.ConfigurableApplicationContext> |
setApplicationContext(T applicationContext) |
asApplicationName, asDirectoryName, clearAllBeanFactoryLocators, clearAllJavaGemFireGeodeAndSpringDotPrefixedSystemProperties, closeAnyGemFireCacheInstanceBeforeTestExecution, closeAnySocketConfigurationBeforeTestExecution, closeAnySslConfigurationBeforeTestExecution, closeGemFireCacheWaitOnCloseEvent, closeGemFireCacheWaitOnCloseEvent, configureQueryDebugging, createDirectory, createDirectory, destroyAllGemFireMockObjects, getClassNameAsPath, getClassNameAsPath, getContextXmlFileLocation, getPackageNameAsPath, getPackageNameAsPath, getServerContextXmlFileLocation, isDeleteDirectoryOnExit, isQueryDebuggingEnabled, logFile, logFile, logLevel, logLevel, logSystemProperties, stopAnyGemFireLocatorBeforeTestExecution, stopGemFireLocatorWaitOnStopEvent, stopGemFireLocatorWaitOnStopEvent, unregisterAllDataSerializers, usingDeleteDirectoryOnExit, waitOn, waitOn, waitOn, withQueryDebuggingpublic SpringApplicationContextIntegrationTestsSupport()
public void closeApplicationContext()
protected org.springframework.context.ConfigurableApplicationContext newApplicationContext(java.lang.Class<?>... annotatedClasses)
protected org.springframework.context.ConfigurableApplicationContext processBeforeRefresh(org.springframework.context.ConfigurableApplicationContext applicationContext)
protected <T extends org.springframework.context.ConfigurableApplicationContext> T setApplicationContext(T applicationContext)
protected <T extends org.springframework.context.ConfigurableApplicationContext> T getApplicationContext()
protected <T> T getBean(java.lang.Class<T> requiredType)
protected <T> T getBean(java.lang.String beanName,
java.lang.Class<T> requiredType)