public class TestResultImpl extends Object implements TestResult
| Constructor and Description |
|---|
TestResultImpl(String name,
long beginTime,
long durationTime,
Failure failure) |
TestResultImpl(String name,
long beginTime,
long durationTime,
Throwable failure) |
| Modifier and Type | Method and Description |
|---|---|
long |
beginTime()
The time at which the test began in millis.
|
long |
durationTime()
How long the test lasted in millis.
|
boolean |
failed()
Did it fail?
|
Failure |
failure()
An exception describing failure, null if the test succeeded.
|
String |
name()
The test description, may be null if none was provided.
|
boolean |
succeeded()
Did it succeed?
|
public TestResultImpl(String name, long beginTime, long durationTime, Failure failure)
public String name()
TestResultname in interface TestResultpublic long beginTime()
TestResultbeginTime in interface TestResultpublic long durationTime()
TestResultdurationTime in interface TestResultpublic Failure failure()
TestResultfailure in interface TestResultpublic boolean succeeded()
TestResultsucceeded in interface TestResultpublic boolean failed()
TestResultfailed in interface TestResultCopyright © 2020. All rights reserved.