Package org.citrusframework.yaks.hooks
Class TestFailureHook
- java.lang.Object
-
- org.citrusframework.yaks.hooks.TestFailureHook
-
public class TestFailureHook extends java.lang.ObjectFailure hook makes sure that the Citrus test state is set to FAILED when the Cucumber scenario is failed. This is because the error might not be within the Citrus test actions but in some general Cucumber step (e.g. when connection to JMS message broker failed). This would then lead to a false positive Citrus test report because the error was not part of the Citrus test. This hook makes sure to always set an exception on the test context in order to correctly reflect the scenario failed state.- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description TestFailureHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckTestFailure(io.cucumber.java.Scenario scenario)
-