Package com.consol.citrus.report
Class TestListeners
- java.lang.Object
-
- com.consol.citrus.report.TestListeners
-
- All Implemented Interfaces:
TestListenerAware
public class TestListeners extends Object implements TestListenerAware
Class that spreads test events to all available test listeners injected by Spring's IoC container.- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description TestListeners()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTestListener(TestListener listener)Adds a new test listener.List<TestListener>getTestListeners()Obtains the testListeners.voidonTestFailure(TestCase test, Throwable cause)voidonTestFinish(TestCase test)voidonTestSkipped(TestCase test)voidonTestStart(TestCase test)voidonTestSuccess(TestCase test)
-
-
-
Method Detail
-
onTestFinish
public void onTestFinish(TestCase test)
-
onTestSkipped
public void onTestSkipped(TestCase test)
-
onTestStart
public void onTestStart(TestCase test)
-
onTestSuccess
public void onTestSuccess(TestCase test)
-
addTestListener
public void addTestListener(TestListener listener)
Description copied from interface:TestListenerAwareAdds a new test listener.- Specified by:
addTestListenerin interfaceTestListenerAware
-
getTestListeners
public List<TestListener> getTestListeners()
Obtains the testListeners.- Returns:
-
-