Class LoggingReporter

  • All Implemented Interfaces:
    com.consol.citrus.report.MessageListener, com.consol.citrus.report.TestActionListener, com.consol.citrus.report.TestListener, com.consol.citrus.report.TestReporter, com.consol.citrus.report.TestSuiteListener
    Direct Known Subclasses:
    OutputStreamReporter

    public class LoggingReporter
    extends AbstractTestReporter
    implements com.consol.citrus.report.MessageListener, com.consol.citrus.report.TestSuiteListener, com.consol.citrus.report.TestListener, com.consol.citrus.report.TestActionListener
    Simple logging reporter printing test start and ending to the console/logger.
    Author:
    Christoph Deppisch
    • Constructor Detail

      • LoggingReporter

        public LoggingReporter()
    • Method Detail

      • generate

        public void generate​(com.consol.citrus.report.TestResults testResults)
        Description copied from class: AbstractTestReporter
        Subclasses must implement this method and generate the test report for given test results.
        Specified by:
        generate in class AbstractTestReporter
      • onTestFailure

        public void onTestFailure​(com.consol.citrus.TestCase test,
                                  Throwable cause)
        Specified by:
        onTestFailure in interface com.consol.citrus.report.TestListener
      • onTestSkipped

        public void onTestSkipped​(com.consol.citrus.TestCase test)
        Specified by:
        onTestSkipped in interface com.consol.citrus.report.TestListener
      • onTestStart

        public void onTestStart​(com.consol.citrus.TestCase test)
        Specified by:
        onTestStart in interface com.consol.citrus.report.TestListener
      • onTestFinish

        public void onTestFinish​(com.consol.citrus.TestCase test)
        Specified by:
        onTestFinish in interface com.consol.citrus.report.TestListener
      • onTestSuccess

        public void onTestSuccess​(com.consol.citrus.TestCase test)
        Specified by:
        onTestSuccess in interface com.consol.citrus.report.TestListener
      • onFinish

        public void onFinish()
        Specified by:
        onFinish in interface com.consol.citrus.report.TestSuiteListener
      • onStart

        public void onStart()
        Specified by:
        onStart in interface com.consol.citrus.report.TestSuiteListener
      • onFinishFailure

        public void onFinishFailure​(Throwable cause)
        Specified by:
        onFinishFailure in interface com.consol.citrus.report.TestSuiteListener
      • onFinishSuccess

        public void onFinishSuccess()
        Specified by:
        onFinishSuccess in interface com.consol.citrus.report.TestSuiteListener
      • onStartFailure

        public void onStartFailure​(Throwable cause)
        Specified by:
        onStartFailure in interface com.consol.citrus.report.TestSuiteListener
      • onStartSuccess

        public void onStartSuccess()
        Specified by:
        onStartSuccess in interface com.consol.citrus.report.TestSuiteListener
      • onTestActionStart

        public void onTestActionStart​(com.consol.citrus.TestCase testCase,
                                      com.consol.citrus.TestAction testAction)
        Specified by:
        onTestActionStart in interface com.consol.citrus.report.TestActionListener
      • onTestActionFinish

        public void onTestActionFinish​(com.consol.citrus.TestCase testCase,
                                       com.consol.citrus.TestAction testAction)
        Specified by:
        onTestActionFinish in interface com.consol.citrus.report.TestActionListener
      • onTestActionSkipped

        public void onTestActionSkipped​(com.consol.citrus.TestCase testCase,
                                        com.consol.citrus.TestAction testAction)
        Specified by:
        onTestActionSkipped in interface com.consol.citrus.report.TestActionListener
      • onInboundMessage

        public void onInboundMessage​(com.consol.citrus.message.Message message,
                                     com.consol.citrus.context.TestContext context)
        Specified by:
        onInboundMessage in interface com.consol.citrus.report.MessageListener
      • onOutboundMessage

        public void onOutboundMessage​(com.consol.citrus.message.Message message,
                                      com.consol.citrus.context.TestContext context)
        Specified by:
        onOutboundMessage in interface com.consol.citrus.report.MessageListener
      • info

        protected void info​(String line)
        Write info level output.
        Parameters:
        line -
      • error

        protected void error​(String line,
                             Throwable cause)
        Write error level output.
        Parameters:
        line -
        cause -
      • debug

        protected void debug​(String line)
        Write debug level output.
        Parameters:
        line -
      • isDebugEnabled

        protected boolean isDebugEnabled()
        Is debug level enabled.
        Returns: