Uses of Class
org.junit.runner.Description
-
Packages that use Description 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 standardRunner
implementations. -
-
Uses of Description in junit.framework
Methods in junit.framework that return Description Modifier and Type Method Description Description
JUnit4TestAdapter. getDescription()
Description
JUnit4TestCaseFacade. getDescription()
Methods in junit.framework with parameters of type Description Modifier and Type Method Description Test
JUnit4TestAdapterCache. asTest(Description description)
java.util.List<Test>
JUnit4TestAdapterCache. asTestList(Description description)
-
Uses of Description in org.junit.experimental.categories
Methods in org.junit.experimental.categories with parameters of type Description Modifier and Type Method Description boolean
Categories.CategoryFilter. shouldRun(Description description)
-
Uses of Description in org.junit.experimental.max
Methods in org.junit.experimental.max that return types with arguments of type Description Modifier and Type Method Description java.util.List<Description>
MaxCore. sortedLeavesForTest(Request request)
java.util.Comparator<Description>
MaxHistory. testComparator()
-
Uses of Description in org.junit.rules
Methods in org.junit.rules with parameters of type Description Modifier and Type Method 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-runningStatement
to implement this test-running rule.Statement
Stopwatch. apply(Statement base, Description description)
Statement
TestRule. apply(Statement base, Description description)
Modifies the method-runningStatement
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, java.lang.Throwable e, Description description)
Invoked when a test failsprotected void
TestWatcher. failed(java.lang.Throwable e, Description description)
Invoked when a test failsprotected void
Stopwatch. finished(long nanos, Description description)
Invoked when a test method finishes (whether passing or failing)protected void
TestWatcher. finished(Description description)
Invoked when a test method finishes (whether passing or failing)protected void
Stopwatch. skipped(long nanos, AssumptionViolatedException e, Description description)
Invoked when a test is skipped due to a failed assumption.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
TestName. starting(Description d)
protected void
TestWatcher. starting(Description description)
Invoked when a test is about to startprotected void
Stopwatch. succeeded(long nanos, Description description)
Invoked when a test succeedsprotected void
TestWatcher. succeeded(Description description)
Invoked when a test succeedsConstructors in org.junit.rules with parameters of type Description Constructor Description RunRules(Statement base, java.lang.Iterable<TestRule> rules, Description description)
-
Uses of Description in org.junit.runner
Fields in org.junit.runner declared as Description Modifier and Type Field Description static Description
Description. EMPTY
Describes a Runner which runs no testsstatic 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 constructorMethods in org.junit.runner that return Description Modifier and Type Method Description Description
Description. childlessCopy()
static Description
Description. createSuiteDescription(java.lang.Class<?> testClass)
Create aDescription
named aftertestClass
static Description
Description. createSuiteDescription(java.lang.Class<?> testClass, java.lang.annotation.Annotation... annotations)
Create aDescription
named aftertestClass
static Description
Description. createSuiteDescription(java.lang.String name, java.io.Serializable uniqueId, java.lang.annotation.Annotation... annotations)
Create aDescription
namedname
.static Description
Description. createSuiteDescription(java.lang.String name, java.lang.annotation.Annotation... annotations)
Create aDescription
namedname
.static Description
Description. createTestDescription(java.lang.Class<?> clazz, java.lang.String name)
Create aDescription
of a single test namedname
in the classclazz
.static Description
Description. createTestDescription(java.lang.Class<?> clazz, java.lang.String name, java.lang.annotation.Annotation... annotations)
Create aDescription
of a single test namedname
in the classclazz
.static Description
Description. createTestDescription(java.lang.String className, java.lang.String name, java.io.Serializable uniqueId)
Create aDescription
of a single test namedname
in the classclazz
.static Description
Description. createTestDescription(java.lang.String className, java.lang.String name, java.lang.annotation.Annotation... annotations)
Create aDescription
of a single test namedname
in the 'class' namedclassName
.Description
Describable. getDescription()
abstract Description
Runner. getDescription()
Description
FilterFactoryParams. getTopLevelDescription()
Methods in org.junit.runner that return types with arguments of type Description Modifier and Type Method Description java.util.ArrayList<Description>
Description. getChildren()
Gets the copy of the children of thisDescription
.Methods in org.junit.runner with parameters of type Description Modifier and Type Method Description void
Description. addChild(Description description)
AddDescription
as a child of the receiver.Request
Request. filterWith(Description desiredDescription)
Returns a Request that only runs tests whoseDescription
matches the given description.Method parameters in org.junit.runner with type arguments of type Description Modifier and Type Method Description Request
Request. sortWith(java.util.Comparator<Description> comparator)
Returns a Request whose Tests can be run in a certain order, defined bycomparator
Constructors in org.junit.runner with parameters of type Description Constructor Description FilterFactoryParams(Description topLevelDescription, java.lang.String args)
-
Uses of Description in org.junit.runner.manipulation
Methods in org.junit.runner.manipulation that return Description Modifier and Type Method Description Description
Ordering.Context. getTarget()
Gets the description for the top-level target being ordered.Methods in org.junit.runner.manipulation that return types with arguments of type Description Modifier and Type Method 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.Methods in org.junit.runner.manipulation with parameters of type Description Modifier and Type Method Description int
Sorter. compare(Description o1, Description o2)
static Ordering
Ordering. definedBy(java.lang.Class<? extends Ordering.Factory> factoryClass, Description annotatedTestClass)
Creates anOrdering
from the given factory class.static Ordering
Ordering. definedBy(Ordering.Factory factory, Description annotatedTestClass)
Creates anOrdering
from the given factory.static Filter
Filter. matchMethodDescription(Description desiredDescription)
Returns aFilter
that only runs the single method described bydesiredDescription
abstract boolean
Filter. shouldRun(Description description)
Method parameters in org.junit.runner.manipulation with type arguments of type Description Modifier and Type Method 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 parameters in org.junit.runner.manipulation with type arguments of type Description Constructor Description Sorter(java.util.Comparator<Description> comparator)
Creates aSorter
that usescomparator
to sort tests -
Uses of Description in org.junit.runner.notification
Methods in org.junit.runner.notification that return Description Modifier and Type Method Description Description
Failure. getDescription()
Methods in org.junit.runner.notification with parameters of type Description Modifier and Type Method 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 withIgnore
.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.Constructors in org.junit.runner.notification with parameters of type Description Constructor Description Failure(Description description, java.lang.Throwable thrownException)
Constructs aFailure
with the given description and exception. -
Uses of Description in org.junit.runners
Methods in org.junit.runners that return Description Modifier and Type Method Description protected Description
BlockJUnit4ClassRunner. describeChild(FrameworkMethod method)
protected abstract Description
ParentRunner. describeChild(T child)
Returns aDescription
forchild
, which can be assumed to be an element of the list returned byParentRunner.getChildren()
protected Description
Suite. describeChild(Runner child)
Description
ParentRunner. getDescription()
Methods in org.junit.runners with parameters of type Description Modifier and Type Method Description protected void
ParentRunner. runLeaf(Statement statement, Description description, RunNotifier notifier)
Runs aStatement
that represents a leaf (aka atomic) test.
-