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 boolean
allScheduled
private java.util.concurrent.atomic.AtomicInteger
numberOfCompletedChildren
private java.util.concurrent.atomic.AtomicInteger
numberOfTests
private java.util.concurrent.atomic.AtomicBoolean
played
private static java.lang.InheritableThreadLocal<TestSet>
TEST_SET
private java.lang.String
testClassName
private 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 void
addTestMethod(TestMethod testMethod)
void
attachToThread()
private TestSetReportEntry
createReportEntry(java.lang.Integer elapsed, java.util.Map<java.lang.String,java.lang.String> systemProps)
private TestSetReportEntry
createReportEntryCompleted(int elapsed)
private TestSetReportEntry
createReportEntryStarted()
TestMethod
createThreadAttachedTestMethod(ReportEntry description)
static TestSet
getThreadTestSet()
void
incrementFinishedTests(RunListener reporterManager, boolean reportImmediately)
void
incrementTestMethodCount()
private boolean
isAllTestsDone()
void
replay(RunListener target)
void
setAllScheduled(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()
-
-