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 | Method and Description |
---|---|
Description |
JUnit4TestAdapter.getDescription() |
Description |
JUnit4TestCaseFacade.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 |
---|---|
void |
TextListener.testIgnored(Description description) |
void |
TextListener.testStarted(Description description) |
Modifier and Type | Method and Description |
---|---|
Description |
IgnoredClassRunner.getDescription() |
Constructor and Description |
---|
SortingRequest(Request request,
Comparator<Description> comparator) |
Modifier and Type | Method and Description |
---|---|
Description |
ErrorReportingRunner.getDescription() |
Description |
JUnit38ClassRunner.getDescription() |
Description |
JUnit4ClassRunner.getDescription()
Deprecated.
|
protected Description |
JUnit4ClassRunner.methodDescription(Method method)
Deprecated.
|
Constructor and Description |
---|
ClassRoadie(RunNotifier notifier,
TestClass testClass,
Description description,
Runnable runnable)
Deprecated.
|
MethodRoadie(Object test,
TestMethod method,
RunNotifier notifier,
Description description)
Deprecated.
|
Constructor and Description |
---|
EachTestNotifier(RunNotifier notifier,
Description description) |
Modifier and Type | Method and Description |
---|---|
Statement |
DisableOnDebug.apply(Statement base,
Description description) |
Statement |
ExpectedException.apply(Statement base,
Description description) |
Statement |
ExternalResource.apply(Statement base,
Description 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 |
TestRule.apply(Statement base,
Description description)
Modifies the method-running
Statement to implement this
test-running rule. |
Statement |
TestWatcher.apply(Statement base,
Description description) |
Statement |
Timeout.apply(Statement base,
Description description) |
Statement |
Verifier.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(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 |
TestName.starting(Description d) |
protected void |
TestWatcher.starting(Description description)
Invoked when a test is about to start
|
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(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 . |
Description |
Describable.getDescription() |
abstract Description |
Runner.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 contains tests whose
Description
equals desiredDescription |
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 |
---|---|
int |
Sorter.compare(Description o1,
Description o2) |
static Filter |
Filter.matchMethodDescription(Description desiredDescription)
Returns a
Filter that only runs the single method described by
desiredDescription |
abstract boolean |
Filter.shouldRun(Description description) |
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 |
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.
|
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–2024 JUnit. All rights reserved.