public abstract class AbstractTest extends java.lang.Object implements Test
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
description |
protected java.lang.String |
failureMessage |
protected boolean |
hasRun |
protected java.lang.String |
name |
protected OutputController |
output |
protected boolean |
success |
protected TestResult |
testResult |
Constructor and Description |
---|
AbstractTest(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected TestResult |
createTestResult(java.util.Date lastSuccess) |
java.lang.String |
getDescription() |
java.lang.String |
getFailureMessage() |
java.lang.String |
getName() |
TestResult |
getTestResult() |
protected void |
postRun() |
protected void |
preRun() |
boolean |
run() |
protected abstract boolean |
runTest() |
void |
setDescription(java.lang.String string) |
void |
setFailureMessage(java.lang.String failureMessage) |
void |
setName(java.lang.String string) |
void |
setOutputController(OutputController output) |
void |
setTestResult(TestResult tr) |
boolean |
success() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUniqueId
protected java.lang.String name
protected java.lang.String description
protected boolean success
protected boolean hasRun
protected java.lang.String failureMessage
protected TestResult testResult
protected OutputController output
public void setOutputController(OutputController output)
setOutputController
in interface Test
protected abstract boolean runTest()
protected void preRun()
protected void postRun()
protected TestResult createTestResult(java.util.Date lastSuccess)
public java.lang.String getFailureMessage()
getFailureMessage
in interface Test
public void setFailureMessage(java.lang.String failureMessage)
public java.lang.String getDescription()
getDescription
in interface Test
public void setDescription(java.lang.String string)
public void setName(java.lang.String string)
public TestResult getTestResult()
getTestResult
in interface Test
public void setTestResult(TestResult tr)
setTestResult
in interface Test