public final class TestResult extends Object
Modifier and Type | Method and Description |
---|---|
static TestResult |
failed(String name,
Throwable cause)
Create new test result for failed execution.
|
static TestResult |
failed(String name,
Throwable cause,
Map<String,Object> parameters)
Create new test result with parameters for failed execution.
|
Throwable |
getCause()
Getter for the failure cause.
|
String |
getFailureCause()
Provide failure cause message for test results.
|
Map<String,Object> |
getParameters()
Gets the parameters.
|
String |
getResult()
Getter for test result.
|
String |
getTestName()
Getter for the test name.
|
boolean |
isFailed()
Checks failed result state.
|
boolean |
isSkipped()
Checks skipped result state.
|
boolean |
isSuccess()
Checks successful result state.
|
void |
setCause(Throwable cause)
Setter for the failure cause.
|
void |
setParameters(Map<String,Object> parameters)
Sets the parameters.
|
void |
setResult(com.consol.citrus.TestResult.RESULT result)
Setter for the test result.
|
void |
setTestName(String testName)
Setter for the test name.
|
static TestResult |
skipped(String name)
Create new test result for skipped test.
|
static TestResult |
skipped(String name,
Map<String,Object> parameters)
Create new test result with parameters for skipped test.
|
static TestResult |
success(String name)
Create new test result for successful execution.
|
static TestResult |
success(String name,
Map<String,Object> parameters)
Create new test result with parameters for successful execution.
|
String |
toString() |
public static TestResult success(String name)
name
- public static TestResult success(String name, Map<String,Object> parameters)
name
- parameters
- public static TestResult skipped(String name)
name
- public static TestResult skipped(String name, Map<String,Object> parameters)
name
- parameters
- public static TestResult failed(String name, Throwable cause)
name
- cause
- public static TestResult failed(String name, Throwable cause, Map<String,Object> parameters)
name
- cause
- parameters
- public String getFailureCause()
public boolean isSuccess()
public boolean isFailed()
public boolean isSkipped()
public void setCause(Throwable cause)
cause
- the cause to setpublic Throwable getCause()
public String getTestName()
public void setTestName(String testName)
testName
- the testName to setpublic String getResult()
public void setResult(com.consol.citrus.TestResult.RESULT result)
result
- the result to setpublic void setParameters(Map<String,Object> parameters)
parameters
- the parameters to setCopyright © 2008–2017 ConSol Software GmbH. All rights reserved.