Class JUnitPlatformRunnerListener

  • All Implemented Interfaces:
    org.junit.platform.launcher.TestExecutionListener

    class JUnitPlatformRunnerListener
    extends java.lang.Object
    implements org.junit.platform.launcher.TestExecutionListener
    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dynamicTestRegistered​(org.junit.platform.launcher.TestIdentifier testIdentifier)  
      void executionFinished​(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)  
      void executionSkipped​(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.String reason)  
      void executionStarted​(org.junit.platform.launcher.TestIdentifier testIdentifier)  
      void fileEntryPublished​(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.FileEntry file)  
      private org.junit.runner.Description findJUnit4Description​(org.junit.platform.launcher.TestIdentifier testIdentifier)  
      private void fireTestIgnored​(org.junit.platform.launcher.TestIdentifier testIdentifier)  
      void reportingEntryPublished​(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry)  
      private org.junit.runner.notification.Failure toFailure​(org.junit.platform.engine.TestExecutionResult testExecutionResult, org.junit.runner.Description description)  
      • 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

        testPlanExecutionFinished, testPlanExecutionStarted
    • Field Detail

      • notifier

        private final org.junit.runner.notification.RunNotifier notifier
    • Constructor Detail

      • JUnitPlatformRunnerListener

        JUnitPlatformRunnerListener​(JUnitPlatformTestTree testTree,
                                    org.junit.runner.notification.RunNotifier notifier)
    • Method Detail

      • dynamicTestRegistered

        public void dynamicTestRegistered​(org.junit.platform.launcher.TestIdentifier testIdentifier)
        Specified by:
        dynamicTestRegistered in interface org.junit.platform.launcher.TestExecutionListener
      • executionSkipped

        public void executionSkipped​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                     java.lang.String reason)
        Specified by:
        executionSkipped in interface org.junit.platform.launcher.TestExecutionListener
      • fireTestIgnored

        private void fireTestIgnored​(org.junit.platform.launcher.TestIdentifier testIdentifier)
      • executionStarted

        public void executionStarted​(org.junit.platform.launcher.TestIdentifier testIdentifier)
        Specified by:
        executionStarted in interface org.junit.platform.launcher.TestExecutionListener
      • executionFinished

        public void executionFinished​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                      org.junit.platform.engine.TestExecutionResult testExecutionResult)
        Specified by:
        executionFinished in interface org.junit.platform.launcher.TestExecutionListener
      • reportingEntryPublished

        public void reportingEntryPublished​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                            org.junit.platform.engine.reporting.ReportEntry entry)
        Specified by:
        reportingEntryPublished in interface org.junit.platform.launcher.TestExecutionListener
      • fileEntryPublished

        public void fileEntryPublished​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                       org.junit.platform.engine.reporting.FileEntry file)
        Specified by:
        fileEntryPublished in interface org.junit.platform.launcher.TestExecutionListener
      • toFailure

        private org.junit.runner.notification.Failure toFailure​(org.junit.platform.engine.TestExecutionResult testExecutionResult,
                                                                org.junit.runner.Description description)
      • findJUnit4Description

        private org.junit.runner.Description findJUnit4Description​(org.junit.platform.launcher.TestIdentifier testIdentifier)