public abstract class AbstractTestCase extends java.lang.Object implements ITestCase
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BASE_DIR_ROOT |
protected AutoConf |
config |
HaltOnErrorRule |
haltOnErrorRule |
KeepLogRule |
keepLogRule |
static int |
MAX_RUN_TIME_MIN |
MockRequestResponseRule |
mockRequestResponseRule |
TagsRule |
tagsRule |
org.junit.rules.Timeout |
testGlobalTimeout |
org.junit.rules.TestName |
testName |
org.junit.rules.TemporaryFolder |
tmpFolder |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTestCase(java.lang.String aApplication) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanComponents(boolean bForce) |
AutoConf |
getConfig() |
protected AutoConf.Application |
getConfigForApp(java.lang.String appName) |
protected java.lang.String |
getCurrentApplication() |
protected AutoConf.Application |
getCurrentApplicationConfig() |
java.lang.String |
getResourcePath() |
java.lang.String |
getSandBoxDir() |
java.lang.String |
getTestGroup() |
java.lang.String |
getTestName() |
void |
init() |
protected abstract void |
initComponents() |
protected void |
initConfiguration() |
protected void |
initTestEnvironment() |
boolean |
isRunning() |
protected void |
onAllComponents(java.util.function.Consumer<ITestComponent> fFunction) |
protected void |
onAllComponents(java.util.function.Consumer<ITestComponent> fFunction,
java.util.function.Function<ITestComponent,java.lang.Integer> orderFunc) |
protected void |
prepareComponentsForExecution() |
protected void |
recordStartupTime(ITestComponent comp,
long l) |
protected void |
reportTestExecutionInfo() |
protected void |
startComponents() |
protected void |
stopComponents() |
void |
tearDown() |
protected void |
tearDownComponents() |
protected void |
tearDownComponentsSpecific() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTestComponentspublic static int MAX_RUN_TIME_MIN
public static final java.lang.String BASE_DIR_ROOT
public org.junit.rules.TemporaryFolder tmpFolder
public org.junit.rules.Timeout testGlobalTimeout
public org.junit.rules.TestName testName
public MockRequestResponseRule mockRequestResponseRule
public HaltOnErrorRule haltOnErrorRule
public KeepLogRule keepLogRule
public TagsRule tagsRule
protected AutoConf config
public final void init()
protected void initConfiguration()
protected void initTestEnvironment()
protected java.lang.String getCurrentApplication()
protected AutoConf.Application getCurrentApplicationConfig()
protected void prepareComponentsForExecution()
protected abstract void initComponents()
public AutoConf getConfig()
public java.lang.String getTestName()
getTestName in interface ITestCasepublic java.lang.String getTestGroup()
getTestGroup in interface ITestCasepublic java.lang.String getSandBoxDir()
getSandBoxDir in interface ITestCaseprotected void tearDownComponents()
protected void reportTestExecutionInfo()
protected void tearDownComponentsSpecific()
protected void stopComponents()
protected void startComponents()
protected void recordStartupTime(ITestComponent comp, long l)
protected void cleanComponents(boolean bForce)
protected void onAllComponents(java.util.function.Consumer<ITestComponent> fFunction)
protected void onAllComponents(java.util.function.Consumer<ITestComponent> fFunction, java.util.function.Function<ITestComponent,java.lang.Integer> orderFunc)
public java.lang.String getResourcePath()
protected AutoConf.Application getConfigForApp(java.lang.String appName)