java.lang.Object
com.github.sbt.junit.jupiter.internal.event.Dispatcher
All Implemented Interfaces:
JupiterTestListener, org.junit.platform.launcher.TestExecutionListener

public class Dispatcher extends Object implements JupiterTestListener
Dispatches test events to SBT.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Dispatcher(Configuration configuration, sbt.testing.EventHandler eventHandler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    executionFailed(String className, Throwable throwable)
    Called when the execution of a test task failed.
    void
    executionFiltered(org.junit.platform.engine.TestDescriptor descriptor, String reason)
    Called when a test has been filtered.
    void
    executionFinished(org.junit.platform.launcher.TestIdentifier identifier, org.junit.platform.engine.TestExecutionResult result)
     
    void
    executionSkipped(org.junit.platform.launcher.TestIdentifier identifier, String reason)
     
    void
    executionStarted(org.junit.platform.launcher.TestIdentifier identifier)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.junit.platform.launcher.TestExecutionListener

    dynamicTestRegistered, fileEntryPublished, reportingEntryPublished, testPlanExecutionFinished, testPlanExecutionStarted
  • Constructor Details

    • Dispatcher

      public Dispatcher(Configuration configuration, sbt.testing.EventHandler eventHandler)
  • Method Details

    • executionSkipped

      public void executionSkipped(org.junit.platform.launcher.TestIdentifier identifier, String reason)
      Specified by:
      executionSkipped in interface org.junit.platform.launcher.TestExecutionListener
    • executionStarted

      public void executionStarted(org.junit.platform.launcher.TestIdentifier identifier)
      Specified by:
      executionStarted in interface org.junit.platform.launcher.TestExecutionListener
    • executionFailed

      public void executionFailed(String className, Throwable throwable)
      Description copied from interface: JupiterTestListener
      Called when the execution of a test task failed.
      Specified by:
      executionFailed in interface JupiterTestListener
      Parameters:
      className - The class-name as reported by TaskDef.fullyQualifiedName().
      throwable - The throwable which caused test execution to fail.
    • executionFiltered

      public void executionFiltered(org.junit.platform.engine.TestDescriptor descriptor, String reason)
      Description copied from interface: JupiterTestListener
      Called when a test has been filtered.
      Specified by:
      executionFiltered in interface JupiterTestListener
      Parameters:
      descriptor - The descriptor of the filtered test.
      reason - A string which describes why this test was filtered.
    • executionFinished

      public void executionFinished(org.junit.platform.launcher.TestIdentifier identifier, org.junit.platform.engine.TestExecutionResult result)
      Specified by:
      executionFinished in interface org.junit.platform.launcher.TestExecutionListener