Class TestExecutionStatus
java.lang.Object
de.ikor.sip.foundation.testkit.workflow.TestExecutionStatus
Report for a test case
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMockReport
(String mockId) 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 Details
-
TestExecutionStatus
Creates a new instance of TestReport- Parameters:
testName
- Unique name of a test
-
-
Method Details
-
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
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
-