Package org.jboss.arquillian.test.spi
Class TestResult
java.lang.Object
org.jboss.arquillian.test.spi.TestResult
- All Implemented Interfaces:
Serializable
A test result which may be serialized for communicate between client and
server
- Author:
- Pete Muir, Aslak Knutsen
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.TestResult(TestResult.Status status) Deprecated.TestResult(TestResult.Status status, String description) Deprecated.TestResult(TestResult.Status status, Throwable throwable) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescription(String description) static TestResultstatic TestResultflatten(Collection<TestResult> results) longgetEnd()Get the end time.longgetStart()Get the start time.Get the status of this testIf the test failed, the exception that was thrown.static TestResultpassed()static TestResultvoidsetDescription(String description) Deprecated.setEnd(long end) Set the end time of the test.setStart(long start) Set the start time of the test.setStatus(TestResult.Status status) Deprecated.setThrowable(Throwable throwable) static TestResultskipped()static TestResultstatic TestResulttoString()
-
Constructor Details
-
TestResult
Deprecated. -
TestResult
Deprecated.Create a empty result.
Start time is set to Current Milliseconds. -
TestResult
Deprecated.Create a new TestResult.
Start time is set to Current Milliseconds.- Parameters:
status- The result status.
-
TestResult
Deprecated.Create a new TestResult.
Start time is set to Current Milliseconds.- Parameters:
status- The result status.throwable- thrown exception if any
-
-
Method Details
-
passed
-
passed
-
skipped
-
skipped
-
skipped
-
failed
-
flatten
-
getStatus
Get the status of this test -
setStatus
Deprecated. -
getDescription
-
setDescription
Deprecated. -
addDescription
-
getThrowable
If the test failed, the exception that was thrown. It does not need to be the root cause. -
setThrowable
-
getStart
public long getStart()Get the start time.- Returns:
- Start time in milliseconds
-
setStart
Set the start time of the test.- Parameters:
start- Start time in milliseconds
-
getEnd
public long getEnd()Get the end time.- Returns:
- End time in milliseconds
-
setEnd
Set the end time of the test.- Parameters:
end- time in milliseconds
-
getExceptionProxy
-
toString
-