public class TestableTest
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
assertionFailed(java.lang.String assertion,
long duration,
java.lang.Exception e)
Indicates that an assertion failed.
|
void |
assertionFailed(java.lang.String assertion,
long duration,
java.lang.String errorMessage)
Indicates that an assertion failed.
|
void |
assertionPassed(java.lang.String assertion,
long duration)
Indicates that an assertion passed and the duration that it took.
|
void |
finish()
Indicates that this test is done running.
|
void |
finishFailedStep(java.lang.Exception e)
Indicates that the test step previously started with startStep(name) finished with an exception.
|
void |
finishFailedStep(java.lang.String errorMsg)
Indicates that the test step previously started with startStep(name) finished with a failure.
|
void |
finishSuccessfulStep()
Indicates that the test step previously started with startStep(name) finished successfully.
|
void |
runStep(java.lang.String name,
java.lang.Runnable step)
Runs your code and reports back as a test step into the test result.
|
void |
startStep(java.lang.String name)
Indicate to Testable that you are starting a test step.
|
public void runStep(java.lang.String name,
java.lang.Runnable step)
name - Test step namestep - Code to runpublic void startStep(java.lang.String name)
name - Name of the test steppublic void finishSuccessfulStep()
public void finishFailedStep(java.lang.Exception e)
e - The exception that occurred while running the test step.public void finishFailedStep(java.lang.String errorMsg)
errorMsg - The error messagepublic void assertionPassed(java.lang.String assertion,
long duration)
assertion - The assertion descriptionduration - The duration it took to run assertion related code, can be 0.public void assertionFailed(java.lang.String assertion,
long duration,
java.lang.Exception e)
assertion - The assertion descriptionduration - The duration it took to run assertion related code, can be 0.e - The exception that occurredpublic void assertionFailed(java.lang.String assertion,
long duration,
java.lang.String errorMessage)
assertion - The assertion descriptionduration - The duration it took to run assertion related code, can be 0.errorMessage - The error that occurredpublic void finish()