Class UnifiedJUnit4Listener

java.lang.Object
org.junit.runner.notification.RunListener
io.github.mov2day.unifiedtest.reporting.UnifiedJUnit4Listener

public class UnifiedJUnit4Listener extends org.junit.runner.notification.RunListener
JUnit 4 test listener that integrates with UnifiedTest reporting. Captures JUnit4 test execution events and forwards them to the UnifiedTest collector and reporter.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener

    org.junit.runner.notification.RunListener.ThreadSafe
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new listener with the specified collector and reporter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    testAssumptionFailure(org.junit.runner.notification.Failure failure)
     
    void
    testFailure(org.junit.runner.notification.Failure failure)
     
    void
    testFinished(org.junit.runner.Description description)
     
    void
    testIgnored(org.junit.runner.Description description)
     
    void
    testRunFinished(org.junit.runner.Result result)
     
    void
    testStarted(org.junit.runner.Description description)
     

    Methods inherited from class org.junit.runner.notification.RunListener

    testRunStarted, testSuiteFinished, testSuiteStarted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UnifiedJUnit4Listener

      public UnifiedJUnit4Listener(UnifiedTestResultCollector collector, ConsoleReporter reporter)
      Creates a new listener with the specified collector and reporter.
      Parameters:
      collector - the test result collector
      reporter - the console reporter
  • Method Details

    • testStarted

      public void testStarted(org.junit.runner.Description description)
      Overrides:
      testStarted in class org.junit.runner.notification.RunListener
    • testFailure

      public void testFailure(org.junit.runner.notification.Failure failure)
      Overrides:
      testFailure in class org.junit.runner.notification.RunListener
    • testIgnored

      public void testIgnored(org.junit.runner.Description description)
      Overrides:
      testIgnored in class org.junit.runner.notification.RunListener
    • testAssumptionFailure

      public void testAssumptionFailure(org.junit.runner.notification.Failure failure)
      Overrides:
      testAssumptionFailure in class org.junit.runner.notification.RunListener
    • testFinished

      public void testFinished(org.junit.runner.Description description)
      Overrides:
      testFinished in class org.junit.runner.notification.RunListener
    • testRunFinished

      public void testRunFinished(org.junit.runner.Result result)
      Overrides:
      testRunFinished in class org.junit.runner.notification.RunListener