Class TestSet
- java.lang.Object
-
- org.apache.maven.surefire.junitcore.TestSet
-
public class TestSet extends java.lang.Object* Represents the test-state of a testset that is run.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallScheduledprivate java.util.concurrent.atomic.AtomicIntegernumberOfCompletedChildrenprivate java.util.concurrent.atomic.AtomicIntegernumberOfTestsprivate java.util.concurrent.atomic.AtomicBooleanplayedprivate static java.lang.InheritableThreadLocal<TestSet>TEST_SETprivate java.lang.StringtestClassNameprivate java.util.Collection<TestMethod>testMethods
-
Constructor Summary
Constructors Constructor Description TestSet(java.lang.String testClassName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddTestMethod(TestMethod testMethod)voidattachToThread()private TestSetReportEntrycreateReportEntry(java.lang.Integer elapsed, java.util.Map<java.lang.String,java.lang.String> systemProps)private TestSetReportEntrycreateReportEntryCompleted(int elapsed)private TestSetReportEntrycreateReportEntryStarted()TestMethodcreateThreadAttachedTestMethod(ReportEntry description)static TestSetgetThreadTestSet()voidincrementFinishedTests(RunListener reporterManager, boolean reportImmediately)voidincrementTestMethodCount()private booleanisAllTestsDone()voidreplay(RunListener target)voidsetAllScheduled(RunListener reporterManager)
-
-
-
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
-
-
Method Detail
-
replay
public void replay(RunListener target)
-
createThreadAttachedTestMethod
public TestMethod createThreadAttachedTestMethod(ReportEntry description)
-
createReportEntryStarted
private TestSetReportEntry createReportEntryStarted()
-
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()
-
-