Class NonConcurrentRunListener

  • All Implemented Interfaces:
    TestOutputReceiver<OutputReportEntry>, RunModeSetter

    @Deprecated
    class NonConcurrentRunListener
    extends JUnit4RunListener
    Deprecated.
    A class to be used when there is no JUnit parallelism (methods or/and class). This allows to workaround JUnit limitation a la Junit4 provider. Specifically, we can redirect properly the output even if we don't have class demarcation in JUnit. It works when if there is a JVM instance per test run, i.e. with reuseForks=false and forkCount greater than one.
    • Field Detail

      • currentTestSetDescription

        private org.junit.runner.Description currentTestSetDescription
        Deprecated.
      • lastFinishedDescription

        private org.junit.runner.Description lastFinishedDescription
        Deprecated.
    • Method Detail

      • createReportEntryForTestSet

        private TestSetReportEntry createReportEntryForTestSet​(org.junit.runner.Description description,
                                                               java.util.Map<java.lang.String,​java.lang.String> systemProps)
        Deprecated.
      • createTestSetReportEntryStarted

        private TestSetReportEntry createTestSetReportEntryStarted​(org.junit.runner.Description description)
        Deprecated.
      • createTestSetReportEntryFinished

        private TestSetReportEntry createTestSetReportEntryFinished​(org.junit.runner.Description description)
        Deprecated.
      • testStarted

        public void testStarted​(org.junit.runner.Description description)
                         throws java.lang.Exception
        Deprecated.
        Description copied from class: JUnit4RunListener
        Called when a specific test has started.
        Overrides:
        testStarted in class JUnit4RunListener
        Throws:
        java.lang.Exception
        See Also:
        RunListener.testStarted(org.junit.runner.Description)
      • finishLastTestSetIfNecessary

        private void finishLastTestSetIfNecessary​(org.junit.runner.Description description)
        Deprecated.
      • describesNewTestSet

        private boolean describesNewTestSet​(org.junit.runner.Description description)
        Deprecated.
      • testFinished

        public void testFinished​(org.junit.runner.Description description)
                          throws java.lang.Exception
        Deprecated.
        Description copied from class: JUnit4RunListener
        Called after a specific test has finished.
        Overrides:
        testFinished in class JUnit4RunListener
        Throws:
        java.lang.Exception
        See Also:
        RunListener.testFinished(org.junit.runner.Description)
      • testIgnored

        public void testIgnored​(org.junit.runner.Description description)
                         throws java.lang.Exception
        Deprecated.
        Description copied from class: JUnit4RunListener
        Called when a specific test has been skipped (for whatever reason).
        Overrides:
        testIgnored in class JUnit4RunListener
        Throws:
        java.lang.Exception
        See Also:
        RunListener.testIgnored(org.junit.runner.Description)
      • testFailure

        public void testFailure​(org.junit.runner.notification.Failure failure)
                         throws java.lang.Exception
        Deprecated.
        Description copied from class: JUnit4RunListener
        Called when a specific test has failed.
        Overrides:
        testFailure in class JUnit4RunListener
        Throws:
        java.lang.Exception
        See Also:
        RunListener.testFailure(org.junit.runner.notification.Failure)
      • testRunStarted

        public void testRunStarted​(org.junit.runner.Description description)
                            throws java.lang.Exception
        Deprecated.
        Overrides:
        testRunStarted in class org.junit.runner.notification.RunListener
        Throws:
        java.lang.Exception
      • testRunFinished

        public void testRunFinished​(org.junit.runner.Result result)
                             throws java.lang.Exception
        Deprecated.
        Overrides:
        testRunFinished in class org.junit.runner.notification.RunListener
        Throws:
        java.lang.Exception