Package | Description |
---|---|
junit.framework |
Provides JUnit v3.x core classes.
|
org.junit.experimental.categories | |
org.junit.experimental.max | |
org.junit.internal | |
org.junit.internal.builders | |
org.junit.internal.requests |
Provides implementations of
Request . |
org.junit.internal.runners |
Provides implementations of
Runner |
org.junit.internal.runners.model | |
org.junit.rules | |
org.junit.runner |
Provides classes used to describe, collect, run and analyze multiple tests.
|
org.junit.runner.manipulation | |
org.junit.runner.notification |
Provides information about a test run.
|
org.junit.runners |
Provides standard
Runner implementations. |
Modifier and Type | Field and Description |
---|---|
private Description |
JUnit4TestCaseFacade.fDescription |
Modifier and Type | Method and Description |
---|---|
Description |
JUnit4TestAdapter.getDescription() |
Description |
JUnit4TestCaseFacade.getDescription() |
private Description |
JUnit4TestAdapter.removeIgnored(Description description) |
Modifier and Type | Method and Description |
---|---|
Test |
JUnit4TestAdapterCache.asTest(Description description) |
java.util.List<Test> |
JUnit4TestAdapterCache.asTestList(Description description) |
(package private) Test |
JUnit4TestAdapterCache.createTest(Description description) |
private boolean |
JUnit4TestAdapter.isIgnored(Description description) |
private Description |
JUnit4TestAdapter.removeIgnored(Description description) |
Constructor and Description |
---|
JUnit4TestCaseFacade(Description description) |
Modifier and Type | Method and Description |
---|---|
private static Description |
Categories.CategoryFilter.parentDescription(Description description) |
Modifier and Type | Method and Description |
---|---|
private static java.util.Set<java.lang.Class<?>> |
Categories.CategoryFilter.categories(Description description) |
private static java.lang.Class<?>[] |
Categories.CategoryFilter.directCategories(Description description) |
private boolean |
Categories.CategoryFilter.hasCorrectCategoryAnnotation(Description description) |
private static Description |
Categories.CategoryFilter.parentDescription(Description description) |
boolean |
Categories.CategoryFilter.shouldRun(Description description) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Description,java.lang.Long> |
MaxHistory.RememberingListener.starts |
Modifier and Type | Method and Description |
---|---|
private java.util.List<Description> |
MaxCore.findLeaves(Request request) |
java.util.List<Description> |
MaxCore.sortedLeavesForTest(Request request) |
java.util.Comparator<Description> |
MaxHistory.testComparator() |
Modifier and Type | Method and Description |
---|---|
private Runner |
MaxCore.buildRunner(Description each) |
int |
MaxHistory.TestComparator.compare(Description o1,
Description o2) |
private void |
MaxCore.findLeaves(Description parent,
Description description,
java.util.List<Description> results) |
private java.lang.Long |
MaxHistory.TestComparator.getFailure(Description key) |
(package private) java.lang.Long |
MaxHistory.getFailureTimestamp(Description key) |
private java.lang.Class<?> |
MaxCore.getMalformedTestClass(Description each) |
(package private) java.lang.Long |
MaxHistory.getTestDuration(Description key) |
(package private) boolean |
MaxHistory.isNewTest(Description key) |
(package private) void |
MaxHistory.putTestDuration(Description description,
long duration) |
(package private) void |
MaxHistory.putTestFailureTimestamp(Description key,
long end) |
void |
MaxHistory.RememberingListener.testFinished(Description description) |
void |
MaxHistory.RememberingListener.testStarted(Description description) |
Modifier and Type | Method and Description |
---|---|
private Request |
MaxCore.constructLeafRequest(java.util.List<Description> leaves) |
private void |
MaxCore.findLeaves(Description parent,
Description description,
java.util.List<Description> results) |
Modifier and Type | Method and Description |
---|---|
void |
TextListener.testIgnored(Description description) |
void |
TextListener.testStarted(Description description) |
Modifier and Type | Method and Description |
---|---|
Description |
IgnoredClassRunner.getDescription() |
Modifier and Type | Field and Description |
---|---|
private java.util.Comparator<Description> |
SortingRequest.comparator |
Constructor and Description |
---|
SortingRequest(Request request,
java.util.Comparator<Description> comparator) |
Modifier and Type | Field and Description |
---|---|
private Description |
MethodRoadie.description
Deprecated.
|
private Description |
ClassRoadie.description
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private Description |
JUnit38ClassRunner.OldTestClassAdaptingListener.asDescription(Test test) |
private Description |
ErrorReportingRunner.describeCause() |
Description |
ErrorReportingRunner.getDescription() |
Description |
JUnit4ClassRunner.getDescription()
Deprecated.
|
Description |
JUnit38ClassRunner.getDescription() |
private static Description |
JUnit38ClassRunner.makeDescription(Test test) |
protected Description |
JUnit4ClassRunner.methodDescription(java.lang.reflect.Method method)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private void |
JUnit4ClassRunner.testAborted(RunNotifier notifier,
Description description,
java.lang.Throwable e)
Deprecated.
|
Constructor and Description |
---|
ClassRoadie(RunNotifier notifier,
TestClass testClass,
Description description,
java.lang.Runnable runnable)
Deprecated.
|
MethodRoadie(java.lang.Object test,
TestMethod method,
RunNotifier notifier,
Description description)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private Description |
EachTestNotifier.description |
Constructor and Description |
---|
EachTestNotifier(RunNotifier notifier,
Description description) |
Modifier and Type | Method and Description |
---|---|
Statement |
RuleChain.apply(Statement base,
Description description)
Modifies the method-running
Statement to implement this
test-running rule. |
Statement |
Stopwatch.apply(Statement base,
Description description) |
Statement |
Verifier.apply(Statement base,
Description description) |
Statement |
ExternalResource.apply(Statement base,
Description description) |
Statement |
TestWatcher.apply(Statement base,
Description description) |
Statement |
ExpectedException.apply(Statement base,
Description description) |
Statement |
Timeout.apply(Statement base,
Description description) |
Statement |
DisableOnDebug.apply(Statement base,
Description description) |
Statement |
TestRule.apply(Statement base,
Description description)
Modifies the method-running
Statement to implement this
test-running rule. |
private static Statement |
RunRules.applyAll(Statement result,
java.lang.Iterable<TestRule> rules,
Description description) |
protected void |
Stopwatch.failed(long nanos,
java.lang.Throwable e,
Description description)
Invoked when a test fails
|
protected void |
Stopwatch.InternalWatcher.failed(java.lang.Throwable e,
Description description) |
protected void |
TestWatcher.failed(java.lang.Throwable e,
Description description)
Invoked when a test fails
|
private void |
TestWatcher.failedQuietly(java.lang.Throwable e,
Description description,
java.util.List<java.lang.Throwable> errors) |
protected void |
Stopwatch.InternalWatcher.finished(Description description) |
protected void |
TestWatcher.finished(Description description)
Invoked when a test method finishes (whether passing or failing)
|
protected void |
Stopwatch.finished(long nanos,
Description description)
Invoked when a test method finishes (whether passing or failing)
|
private void |
TestWatcher.finishedQuietly(Description description,
java.util.List<java.lang.Throwable> errors) |
protected void |
Stopwatch.InternalWatcher.skipped(AssumptionViolatedException e,
Description description) |
protected void |
TestWatcher.skipped(AssumptionViolatedException e,
Description description)
Invoked when a test is skipped due to a failed assumption.
|
protected void |
TestWatcher.skipped(AssumptionViolatedException e,
Description description)
Deprecated.
|
protected void |
Stopwatch.skipped(long nanos,
AssumptionViolatedException e,
Description description)
Invoked when a test is skipped due to a failed assumption.
|
private void |
TestWatcher.skippedQuietly(AssumptionViolatedException e,
Description description,
java.util.List<java.lang.Throwable> errors) |
protected void |
Stopwatch.InternalWatcher.starting(Description description) |
protected void |
TestWatcher.starting(Description description)
Invoked when a test is about to start
|
protected void |
TestName.starting(Description d) |
private void |
TestWatcher.startingQuietly(Description description,
java.util.List<java.lang.Throwable> errors) |
protected void |
Stopwatch.InternalWatcher.succeeded(Description description) |
protected void |
TestWatcher.succeeded(Description description)
Invoked when a test succeeds
|
protected void |
Stopwatch.succeeded(long nanos,
Description description)
Invoked when a test succeeds
|
private void |
TestWatcher.succeededQuietly(Description description,
java.util.List<java.lang.Throwable> errors) |
Constructor and Description |
---|
RunRules(Statement base,
java.lang.Iterable<TestRule> rules,
Description description) |
Modifier and Type | Field and Description |
---|---|
static Description |
Description.EMPTY
Describes a Runner which runs no tests
|
static Description |
Description.TEST_MECHANISM
Describes a step in the test-running mechanism that goes so wrong no
other description can be used (for example, an exception thrown from a Runner's
constructor
|
private Description |
FilterFactoryParams.topLevelDescription |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Description> |
Description.fChildren |
Modifier and Type | Method and Description |
---|---|
Description |
Description.childlessCopy() |
static Description |
Description.createSuiteDescription(java.lang.Class<?> testClass)
Create a
Description named after testClass |
static Description |
Description.createSuiteDescription(java.lang.Class<?> testClass,
java.lang.annotation.Annotation... annotations)
Create a
Description named after testClass |
static Description |
Description.createSuiteDescription(java.lang.String name,
java.lang.annotation.Annotation... annotations)
Create a
Description named name . |
static Description |
Description.createSuiteDescription(java.lang.String name,
java.io.Serializable uniqueId,
java.lang.annotation.Annotation... annotations)
Create a
Description named name . |
static Description |
Description.createTestDescription(java.lang.Class<?> clazz,
java.lang.String name)
Create a
Description of a single test named name in the class clazz . |
static Description |
Description.createTestDescription(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.annotation.Annotation... annotations)
Create a
Description of a single test named name in the class clazz . |
static Description |
Description.createTestDescription(java.lang.String className,
java.lang.String name,
java.lang.annotation.Annotation... annotations)
Create a
Description of a single test named name in the 'class' named
className . |
static Description |
Description.createTestDescription(java.lang.String className,
java.lang.String name,
java.io.Serializable uniqueId)
Create a
Description of a single test named name in the class clazz . |
Description |
Describable.getDescription() |
abstract Description |
Runner.getDescription() |
Description |
FilterFactoryParams.getTopLevelDescription() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Description> |
Description.getChildren()
Gets the copy of the children of this
Description . |
Modifier and Type | Method and Description |
---|---|
void |
Description.addChild(Description description)
Add
Description as a child of the receiver. |
Request |
Request.filterWith(Description desiredDescription)
Returns a Request that only runs tests whose
Description
matches the given description. |
void |
Result.Listener.testFinished(Description description) |
void |
Result.Listener.testIgnored(Description description) |
void |
Result.Listener.testRunStarted(Description description) |
Modifier and Type | Method and Description |
---|---|
Request |
Request.sortWith(java.util.Comparator<Description> comparator)
Returns a Request whose Tests can be run in a certain order, defined by
comparator |
Constructor and Description |
---|
FilterFactoryParams(Description topLevelDescription,
java.lang.String args) |
Modifier and Type | Field and Description |
---|---|
private Description |
Ordering.Context.description |
Modifier and Type | Field and Description |
---|---|
private java.util.Comparator<Description> |
Sorter.comparator |
private static java.util.Comparator<Description> |
Alphanumeric.COMPARATOR |
Modifier and Type | Method and Description |
---|---|
Description |
Ordering.Context.getTarget()
Gets the description for the top-level target being ordered.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Description> |
Orderer.order(java.util.Collection<Description> descriptions)
Orders the descriptions.
|
protected abstract java.util.List<Description> |
Ordering.orderItems(java.util.Collection<Description> descriptions)
Implemented by sub-classes to order the descriptions.
|
protected java.util.List<Description> |
Sorter.orderItems(java.util.Collection<Description> descriptions)
Implemented by sub-classes to order the descriptions.
|
Modifier and Type | Method and Description |
---|---|
int |
Sorter.compare(Description o1,
Description o2) |
static Ordering |
Ordering.definedBy(java.lang.Class<? extends Ordering.Factory> factoryClass,
Description annotatedTestClass)
Creates an
Ordering from the given factory class. |
static Ordering |
Ordering.definedBy(Ordering.Factory factory,
Description annotatedTestClass)
Creates an
Ordering from the given factory. |
static Filter |
Filter.matchMethodDescription(Description desiredDescription)
Returns a
Filter that only runs the single method described by
desiredDescription |
abstract boolean |
Filter.shouldRun(Description description) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Description> |
Orderer.order(java.util.Collection<Description> descriptions)
Orders the descriptions.
|
protected abstract java.util.List<Description> |
Ordering.orderItems(java.util.Collection<Description> descriptions)
Implemented by sub-classes to order the descriptions.
|
protected java.util.List<Description> |
Sorter.orderItems(java.util.Collection<Description> descriptions)
Implemented by sub-classes to order the descriptions.
|
Constructor and Description |
---|
Context(Description description) |
Constructor and Description |
---|
Sorter(java.util.Comparator<Description> comparator)
Creates a
Sorter that uses comparator
to sort tests |
Modifier and Type | Field and Description |
---|---|
private Description |
Failure.fDescription |
Modifier and Type | Method and Description |
---|---|
Description |
Failure.getDescription() |
Modifier and Type | Method and Description |
---|---|
void |
RunNotifier.fireTestFinished(Description description)
Invoke to tell listeners that an atomic test finished.
|
void |
RunNotifier.fireTestIgnored(Description description)
Invoke to tell listeners that an atomic test was ignored.
|
void |
RunNotifier.fireTestRunStarted(Description description)
Do not invoke.
|
void |
RunNotifier.fireTestStarted(Description description)
Invoke to tell listeners that an atomic test is about to start.
|
void |
RunNotifier.fireTestSuiteFinished(Description description)
Invoke to tell listeners that a test suite is about to finish.
|
void |
RunNotifier.fireTestSuiteStarted(Description description)
Invoke to tell listeners that a test suite is about to start.
|
void |
RunListener.testFinished(Description description)
Called when an atomic test has finished, whether the test succeeds or fails.
|
void |
SynchronizedRunListener.testFinished(Description description) |
void |
RunListener.testIgnored(Description description)
Called when a test will not be run, generally because a test method is annotated
with
Ignore . |
void |
SynchronizedRunListener.testIgnored(Description description) |
void |
RunListener.testRunStarted(Description description)
Called before any tests have been run.
|
void |
SynchronizedRunListener.testRunStarted(Description description) |
void |
RunListener.testStarted(Description description)
Called when an atomic test is about to be started.
|
void |
SynchronizedRunListener.testStarted(Description description) |
void |
RunListener.testSuiteFinished(Description description)
Called when a test suite has finished, whether the test suite succeeds or fails.
|
void |
SynchronizedRunListener.testSuiteFinished(Description description)
Called when a test suite has finished, whether the test suite succeeds or fails.
|
void |
RunListener.testSuiteStarted(Description description)
Called when a test suite is about to be started.
|
void |
SynchronizedRunListener.testSuiteStarted(Description description)
Called when a test suite is about to be started.
|
Constructor and Description |
---|
Failure(Description description,
java.lang.Throwable thrownException)
Constructs a
Failure with the given description and exception. |
Modifier and Type | Field and Description |
---|---|
private Description |
Parameterized.AssumptionViolationRunner.description |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<FrameworkMethod,Description> |
BlockJUnit4ClassRunner.methodDescriptions |
Modifier and Type | Method and Description |
---|---|
protected Description |
BlockJUnit4ClassRunner.describeChild(FrameworkMethod method) |
protected Description |
Suite.describeChild(Runner child) |
protected abstract Description |
ParentRunner.describeChild(T child)
Returns a
Description for child , which can be assumed to
be an element of the list returned by ParentRunner.getChildren() |
Description |
ParentRunner.getDescription() |
Description |
Parameterized.AssumptionViolationRunner.getDescription() |
Modifier and Type | Method and Description |
---|---|
Statement |
RuleContainer.apply(FrameworkMethod method,
Description description,
java.lang.Object target,
Statement statement)
Applies all the rules ordered accordingly to the specified
statement . |
protected void |
ParentRunner.runLeaf(Statement statement,
Description description,
RunNotifier notifier)
Runs a
Statement that represents a leaf (aka atomic) test. |