Class TestExecutionStatus
- java.lang.Object
-
- de.ikor.sip.foundation.testkit.workflow.TestExecutionStatus
-
public class TestExecutionStatus extends Object
Report for a test case
-
-
Constructor Summary
Constructors Constructor Description TestExecutionStatus(String testName)
Creates a new instance of TestReport
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MockReport
getMockReport(String mockId)
TestExecutionStatus
setExpectedAdapterResponse(org.apache.camel.Exchange expectedAdapterResponse)
Sets response which is expected to be returned by adapter during test.void
setWorkflowException(Exception workflowException)
Sets exception that was thrown by sip test kit, probably during test setup or validation phase.
-
-
-
Constructor Detail
-
TestExecutionStatus
public TestExecutionStatus(String testName)
Creates a new instance of TestReport- Parameters:
testName
- Unique name of a test
-
-
Method Detail
-
setExpectedAdapterResponse
public TestExecutionStatus setExpectedAdapterResponse(org.apache.camel.Exchange expectedAdapterResponse)
Sets response which is expected to be returned by adapter during test. Even though it belongs to enclosingSIPAdapterExecutionReport
class, setter is also provided here to support chain pattern.- Parameters:
expectedAdapterResponse
-Exchange
that is the result of a test run- Returns:
- Updated test execution status
-
setWorkflowException
public void setWorkflowException(Exception workflowException)
Sets exception that was thrown by sip test kit, probably during test setup or validation phase. Implicitly it will set workflowExceptionMessage- Parameters:
workflowException
- exception thrown by SIP test kit
-
getMockReport
public MockReport getMockReport(String mockId)
-
-