Package jp.vmi.junit.result
Class TestResult<T extends ITestTarget>
java.lang.Object
jp.vmi.junit.result.TestResult<T>
- Type Parameters:
T- test target type.
- Direct Known Subclasses:
TestCaseResult,TestSuiteResult
public abstract class TestResult<T extends ITestTarget> extends Object
Test result interface. (for TestResult map in JUnitResult)
-
Field Summary
Fields Modifier and Type Field Description protected TtestTarget -
Constructor Summary
Constructors Constructor Description TestResult() -
Method Summary
Modifier and Type Method Description StringgetBaseName()Get test file base name.StringgetName()Get test name.StringgetTime()Get duration time of test execution.StringgetTimestamp()Get timestamp.voidsetTestTarget(T testTarget)Set test target.
-
Field Details
-
testTarget
-
-
Constructor Details
-
TestResult
public TestResult()
-
-
Method Details
-
setTestTarget
Set test target.- Parameters:
testTarget- test target.
-
getBaseName
Get test file base name.- Returns:
- test file base name.
-
getName
Get test name.- Returns:
- test name.
-
getTimestamp
Get timestamp.- Returns:
- start timestamp.
-
getTime
Get duration time of test execution.- Returns:
- time
-