| Package | Description |
|---|---|
| junit.framework |
Provides JUnit v3.x core classes.
|
| org.junit.experimental.categories | |
| org.junit.experimental.max | |
| 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 | Method and Description |
|---|---|
Description |
JUnit4TestCaseFacade.getDescription() |
Description |
JUnit4TestAdapter.getDescription() |
| Modifier and Type | Method and Description |
|---|---|
Test |
JUnit4TestAdapterCache.asTest(Description description) |
List<Test> |
JUnit4TestAdapterCache.asTestList(Description description) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Categories.CategoryFilter.shouldRun(Description description) |
| Modifier and Type | Method and Description |
|---|---|
List<Description> |
MaxCore.sortedLeavesForTest(Request request) |
Comparator<Description> |
MaxHistory.testComparator() |
| Modifier and Type | Method and Description |
|---|---|
Statement |
Verifier.apply(Statement base,
Description description) |
Statement |
Timeout.apply(Statement base,
Description description) |
Statement |
TestWatcher.apply(Statement base,
Description description) |
Statement |
TestRule.apply(Statement base,
Description description)
Modifies the method-running
Statement to implement this
test-running rule. |
Statement |
Stopwatch.apply(Statement base,
Description description) |
Statement |
RuleChain.apply(Statement base,
Description description)
Modifies the method-running
Statement to implement this
test-running rule. |
Statement |
ExternalResource.apply(Statement base,
Description description) |
Statement |
ExpectedException.apply(Statement base,
Description description) |
Statement |
DisableOnDebug.apply(Statement base,
Description description) |
protected void |
Stopwatch.failed(long nanos,
Throwable e,
Description description)
Invoked when a test fails
|
protected void |
TestWatcher.failed(Throwable e,
Description description)
Invoked when a test fails
|
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)
|
protected void |
TestWatcher.skipped(AssumptionViolatedException e,
Description description)
Invoked when a test is skipped due to a failed assumption.
|
protected void |
TestWatcher.skipped(org.junit.internal.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.
|
protected void |
TestWatcher.starting(Description description)
Invoked when a test is about to start
|
protected void |
TestName.starting(Description d) |
protected void |
TestWatcher.succeeded(Description description)
Invoked when a test succeeds
|
protected void |
Stopwatch.succeeded(long nanos,
Description description)
Invoked when a test succeeds
|
| Constructor and Description |
|---|
RunRules(Statement base,
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
|
| Modifier and Type | Method and Description |
|---|---|
Description |
Description.childlessCopy() |
static Description |
Description.createSuiteDescription(Class<?> testClass)
Create a
Description named after testClass |
static Description |
Description.createSuiteDescription(Class<?> testClass,
Annotation... annotations)
Create a
Description named after testClass |
static Description |
Description.createSuiteDescription(String name,
Annotation... annotations)
Create a
Description named name. |
static Description |
Description.createSuiteDescription(String name,
Serializable uniqueId,
Annotation... annotations)
Create a
Description named name. |
static Description |
Description.createTestDescription(Class<?> clazz,
String name)
Create a
Description of a single test named name in the class clazz. |
static Description |
Description.createTestDescription(Class<?> clazz,
String name,
Annotation... annotations)
Create a
Description of a single test named name in the class clazz. |
static Description |
Description.createTestDescription(String className,
String name,
Annotation... annotations)
Create a
Description of a single test named name in the 'class' named
className. |
static Description |
Description.createTestDescription(String className,
String name,
Serializable uniqueId)
Create a
Description of a single test named name in the class clazz. |
abstract Description |
Runner.getDescription() |
Description |
Describable.getDescription() |
Description |
FilterFactoryParams.getTopLevelDescription() |
| Modifier and Type | Method and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
Request |
Request.sortWith(Comparator<Description> comparator)
Returns a Request whose Tests can be run in a certain order, defined by
comparator |
| Constructor and Description |
|---|
FilterFactoryParams(Description topLevelDescription,
String args) |
| 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 |
|---|---|
List<Description> |
Orderer.order(Collection<Description> descriptions)
Orders the descriptions.
|
protected List<Description> |
Sorter.orderItems(Collection<Description> descriptions)
Implemented by sub-classes to order the descriptions.
|
protected abstract List<Description> |
Ordering.orderItems(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(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 |
|---|---|
List<Description> |
Orderer.order(Collection<Description> descriptions)
Orders the descriptions.
|
protected List<Description> |
Sorter.orderItems(Collection<Description> descriptions)
Implemented by sub-classes to order the descriptions.
|
protected abstract List<Description> |
Ordering.orderItems(Collection<Description> descriptions)
Implemented by sub-classes to order the descriptions.
|
| Constructor and Description |
|---|
Sorter(Comparator<Description> comparator)
Creates a
Sorter that uses comparator
to sort tests |
| 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 |
RunListener.testIgnored(Description description)
Called when a test will not be run, generally because a test method is annotated
with
Ignore. |
void |
RunListener.testRunStarted(Description description)
Called before any tests have been run.
|
void |
RunListener.testStarted(Description description)
Called when an atomic test is about to be started.
|
void |
RunListener.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.
|
| Constructor and Description |
|---|
Failure(Description description,
Throwable thrownException)
Constructs a
Failure with the given description and exception. |
| 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() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ParentRunner.runLeaf(Statement statement,
Description description,
RunNotifier notifier)
Runs a
Statement that represents a leaf (aka atomic) test. |
Copyright © 2002–2020 JUnit. All rights reserved.