public abstract class IntegrationTestsSupport
extends java.lang.Object
IntegrationTestsSupport class is an abstract base class supporting integration tests
with either Apache Geode or Pivotal GemFire in a Spring context.File,
LocalDateTime,
TimeUnit,
AtomicBoolean,
Predicate,
DataSerializer,
GemFireCache,
Locator,
GemFireMockObjectsSupport| Modifier and Type | Class and Description |
|---|---|
protected static interface |
IntegrationTestsSupport.Condition |
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEBUG_GEMFIRE_QUERIES |
protected static boolean |
DEFAULT_DEBUG_GEMFIRE_QUERIES |
protected static long |
DEFAULT_WAIT_DURATION |
protected static long |
DEFAULT_WAIT_INTERVAL |
protected static java.lang.String |
DIRECTORY_DELETE_ON_EXIT_PROPERTY |
protected static java.lang.String |
GEMFIRE_LOG_FILE |
protected static java.lang.String |
GEMFIRE_LOG_FILE_PROPERTY |
protected static java.lang.String |
GEMFIRE_LOG_LEVEL |
protected static java.lang.String |
GEMFIRE_LOG_LEVEL_PROPERTY |
protected static java.lang.String |
GEMFIRE_QUERY_VERBOSE_PROPERTY |
protected static java.lang.String |
SYSTEM_PROPERTIES_LOG_FILE |
protected static java.lang.String |
TEST_GEMFIRE_LOG_LEVEL |
| Constructor and Description |
|---|
IntegrationTestsSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
asApplicationName(java.lang.Class<?> type) |
protected static java.lang.String |
asDirectoryName(java.lang.Class<?> type) |
static void |
clearAllBeanFactoryLocators() |
static void |
clearAllJavaGemFireGeodeAndSpringDotPrefixedSystemProperties() |
static void |
closeAnyGemFireCacheInstanceBeforeTestExecution() |
static void |
closeAnySocketConfigurationBeforeTestExecution() |
static void |
closeAnySslConfigurationBeforeTestExecution() |
static void |
closeGemFireCacheWaitOnCloseEvent() |
static void |
closeGemFireCacheWaitOnCloseEvent(long duration) |
void |
configureQueryDebugging() |
protected static java.io.File |
createDirectory(java.io.File directory) |
protected static java.io.File |
createDirectory(java.lang.String pathname) |
static void |
destroyAllGemFireMockObjects() |
protected static java.lang.String |
getClassNameAsPath(java.lang.Class type) |
protected static java.lang.String |
getClassNameAsPath(java.lang.Object obj) |
protected static java.lang.String |
getContextXmlFileLocation(java.lang.Class type) |
protected static java.lang.String |
getPackageNameAsPath(java.lang.Class type) |
protected static java.lang.String |
getPackageNameAsPath(java.lang.Object obj) |
protected static java.lang.String |
getServerContextXmlFileLocation(java.lang.Class type) |
protected static boolean |
isDeleteDirectoryOnExit() |
protected boolean |
isQueryDebuggingEnabled() |
protected static java.lang.String |
logFile() |
protected static java.lang.String |
logFile(java.lang.String defaultLogFilePathname) |
protected static java.lang.String |
logLevel() |
protected static java.lang.String |
logLevel(java.lang.String defaultLogLevel) |
protected static void |
logSystemProperties() |
static void |
stopAnyGemFireLocatorBeforeTestExecution() |
static void |
stopGemFireLocatorWaitOnStopEvent() |
static void |
stopGemFireLocatorWaitOnStopEvent(long duration) |
static void |
unregisterAllDataSerializers() |
protected void |
usingDeleteDirectoryOnExit(boolean delete) |
protected static boolean |
waitOn(IntegrationTestsSupport.Condition condition) |
protected static boolean |
waitOn(IntegrationTestsSupport.Condition condition,
long duration) |
protected static boolean |
waitOn(IntegrationTestsSupport.Condition condition,
long duration,
long interval) |
protected boolean |
withQueryDebugging() |
protected static final boolean DEFAULT_DEBUG_GEMFIRE_QUERIES
protected static final boolean DEBUG_GEMFIRE_QUERIES
protected static final long DEFAULT_WAIT_DURATION
protected static final long DEFAULT_WAIT_INTERVAL
protected static final java.lang.String DIRECTORY_DELETE_ON_EXIT_PROPERTY
protected static final java.lang.String GEMFIRE_LOG_FILE
protected static final java.lang.String GEMFIRE_LOG_FILE_PROPERTY
protected static final java.lang.String GEMFIRE_LOG_LEVEL
protected static final java.lang.String GEMFIRE_LOG_LEVEL_PROPERTY
protected static final java.lang.String GEMFIRE_QUERY_VERBOSE_PROPERTY
protected static final java.lang.String SYSTEM_PROPERTIES_LOG_FILE
protected static final java.lang.String TEST_GEMFIRE_LOG_LEVEL
public static void closeAnyGemFireCacheInstanceBeforeTestExecution()
public static void closeAnySocketConfigurationBeforeTestExecution()
public static void closeAnySslConfigurationBeforeTestExecution()
public static void stopAnyGemFireLocatorBeforeTestExecution()
public void configureQueryDebugging()
public static void clearAllBeanFactoryLocators()
public static void clearAllJavaGemFireGeodeAndSpringDotPrefixedSystemProperties()
public static void destroyAllGemFireMockObjects()
public static void unregisterAllDataSerializers()
public static void closeGemFireCacheWaitOnCloseEvent()
public static void closeGemFireCacheWaitOnCloseEvent(long duration)
public static void stopGemFireLocatorWaitOnStopEvent()
public static void stopGemFireLocatorWaitOnStopEvent(long duration)
protected static java.lang.String asApplicationName(java.lang.Class<?> type)
protected static java.lang.String asDirectoryName(java.lang.Class<?> type)
protected static java.io.File createDirectory(java.lang.String pathname)
protected static java.io.File createDirectory(java.io.File directory)
protected static boolean isDeleteDirectoryOnExit()
protected boolean isQueryDebuggingEnabled()
protected static java.lang.String getClassNameAsPath(java.lang.Class type)
protected static java.lang.String getClassNameAsPath(java.lang.Object obj)
protected static java.lang.String getPackageNameAsPath(java.lang.Class type)
protected static java.lang.String getPackageNameAsPath(java.lang.Object obj)
protected static java.lang.String getContextXmlFileLocation(java.lang.Class type)
protected static java.lang.String getServerContextXmlFileLocation(java.lang.Class type)
protected static java.lang.String logFile()
protected static java.lang.String logFile(java.lang.String defaultLogFilePathname)
protected static java.lang.String logLevel()
protected static java.lang.String logLevel(java.lang.String defaultLogLevel)
protected static void logSystemProperties()
throws java.io.IOException
java.io.IOExceptionprotected static boolean waitOn(IntegrationTestsSupport.Condition condition)
protected static boolean waitOn(IntegrationTestsSupport.Condition condition, long duration)
protected static boolean waitOn(IntegrationTestsSupport.Condition condition, long duration, long interval)
protected void usingDeleteDirectoryOnExit(boolean delete)
protected boolean withQueryDebugging()