Class TestSet


  • public class TestSet
    extends java.lang.Object
    * Represents the test-state of a testset that is run.
    • Field Detail

      • TEST_SET

        private static final java.lang.InheritableThreadLocal<TestSet> TEST_SET
      • testClassName

        private final java.lang.String testClassName
      • testMethods

        private final java.util.Collection<TestMethod> testMethods
      • played

        private final java.util.concurrent.atomic.AtomicBoolean played
      • numberOfCompletedChildren

        private final java.util.concurrent.atomic.AtomicInteger numberOfCompletedChildren
      • numberOfTests

        private final java.util.concurrent.atomic.AtomicInteger numberOfTests
      • allScheduled

        private volatile boolean allScheduled
    • Constructor Detail

      • TestSet

        public TestSet​(java.lang.String testClassName)
    • Method Detail

      • createThreadAttachedTestMethod

        public TestMethod createThreadAttachedTestMethod​(ReportEntry description)
      • createReportEntryCompleted

        private TestSetReportEntry createReportEntryCompleted​(int elapsed)
      • createReportEntry

        private TestSetReportEntry createReportEntry​(java.lang.Integer elapsed,
                                                     java.util.Map<java.lang.String,​java.lang.String> systemProps)
      • incrementTestMethodCount

        public void incrementTestMethodCount()
      • addTestMethod

        private void addTestMethod​(TestMethod testMethod)
      • incrementFinishedTests

        public void incrementFinishedTests​(RunListener reporterManager,
                                           boolean reportImmediately)
      • setAllScheduled

        public void setAllScheduled​(RunListener reporterManager)
      • isAllTestsDone

        private boolean isAllTestsDone()
      • attachToThread

        public void attachToThread()
      • getThreadTestSet

        public static TestSet getThreadTestSet()