Uses of Class
org.junit.runner.Description
Packages that use Description
Package
Description
Provides JUnit v3.x core classes.
Provides implementations of
Request
.Provides implementations of
Runner
Provides classes used to describe, collect, run and analyze multiple tests.
Provides information about a test run.
Provides standard
Runner
implementations.-
Uses of Description in junit.framework
Fields in junit.framework declared as DescriptionMethods in junit.framework that return DescriptionModifier and TypeMethodDescriptionJUnit4TestAdapter.getDescription()
JUnit4TestCaseFacade.getDescription()
private Description
JUnit4TestAdapter.removeIgnored
(Description description) Methods in junit.framework with parameters of type DescriptionModifier and TypeMethodDescriptionJUnit4TestAdapterCache.asTest
(Description description) JUnit4TestAdapterCache.asTestList
(Description description) (package private) Test
JUnit4TestAdapterCache.createTest
(Description description) private boolean
JUnit4TestAdapter.isIgnored
(Description description) private Description
JUnit4TestAdapter.removeIgnored
(Description description) Constructors in junit.framework with parameters of type Description -
Uses of Description in org.junit.experimental.categories
Methods in org.junit.experimental.categories that return DescriptionModifier and TypeMethodDescriptionprivate static Description
Categories.CategoryFilter.parentDescription
(Description description) Methods in org.junit.experimental.categories with parameters of type DescriptionModifier and TypeMethodDescriptionCategories.CategoryFilter.categories
(Description description) private static 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) -
Uses of Description in org.junit.experimental.max
Fields in org.junit.experimental.max with type parameters of type DescriptionModifier and TypeFieldDescriptionprivate Map<Description,
Long> MaxHistory.RememberingListener.starts
Methods in org.junit.experimental.max that return types with arguments of type DescriptionModifier and TypeMethodDescriptionprivate List<Description>
MaxCore.findLeaves
(Request request) MaxCore.sortedLeavesForTest
(Request request) MaxHistory.testComparator()
Methods in org.junit.experimental.max with parameters of type DescriptionModifier and TypeMethodDescriptionprivate Runner
MaxCore.buildRunner
(Description each) int
MaxHistory.TestComparator.compare
(Description o1, Description o2) private void
MaxCore.findLeaves
(Description parent, Description description, List<Description> results) private Long
MaxHistory.TestComparator.getFailure
(Description key) (package private) Long
MaxHistory.getFailureTimestamp
(Description key) private Class<?>
MaxCore.getMalformedTestClass
(Description each) (package private) 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) Method parameters in org.junit.experimental.max with type arguments of type DescriptionModifier and TypeMethodDescriptionprivate Request
MaxCore.constructLeafRequest
(List<Description> leaves) private void
MaxCore.findLeaves
(Description parent, Description description, List<Description> results) -
Uses of Description in org.junit.internal
Methods in org.junit.internal with parameters of type DescriptionModifier and TypeMethodDescriptionvoid
TextListener.testIgnored
(Description description) void
TextListener.testStarted
(Description description) -
Uses of Description in org.junit.internal.builders
Methods in org.junit.internal.builders that return Description -
Uses of Description in org.junit.internal.requests
Fields in org.junit.internal.requests with type parameters of type DescriptionConstructor parameters in org.junit.internal.requests with type arguments of type DescriptionModifierConstructorDescriptionSortingRequest
(Request request, Comparator<Description> comparator) -
Uses of Description in org.junit.internal.runners
Fields in org.junit.internal.runners declared as DescriptionModifier and TypeFieldDescriptionprivate Description
ClassRoadie.description
Deprecated.private final Description
MethodRoadie.description
Deprecated.Methods in org.junit.internal.runners that return DescriptionModifier and TypeMethodDescriptionprivate Description
JUnit38ClassRunner.OldTestClassAdaptingListener.asDescription
(Test test) private Description
ErrorReportingRunner.describeCause()
ErrorReportingRunner.getDescription()
JUnit38ClassRunner.getDescription()
JUnit4ClassRunner.getDescription()
Deprecated.private static Description
JUnit38ClassRunner.makeDescription
(Test test) protected Description
JUnit4ClassRunner.methodDescription
(Method method) Deprecated.Methods in org.junit.internal.runners with parameters of type DescriptionModifier and TypeMethodDescriptionprivate void
JUnit4ClassRunner.testAborted
(RunNotifier notifier, Description description, Throwable e) Deprecated.Constructors in org.junit.internal.runners with parameters of type DescriptionModifierConstructorDescriptionClassRoadie
(RunNotifier notifier, TestClass testClass, Description description, Runnable runnable) Deprecated.MethodRoadie
(Object test, TestMethod method, RunNotifier notifier, Description description) Deprecated. -
Uses of Description in org.junit.internal.runners.model
Fields in org.junit.internal.runners.model declared as DescriptionConstructors in org.junit.internal.runners.model with parameters of type Description -
Uses of Description in org.junit.rules
Methods in org.junit.rules with parameters of type DescriptionModifier and TypeMethodDescriptionDisableOnDebug.apply
(Statement base, Description description) ExpectedException.apply
(Statement base, Description description) ExternalResource.apply
(Statement base, Description description) RuleChain.apply
(Statement base, Description description) Modifies the method-runningStatement
to implement this test-running rule.final Statement
Stopwatch.apply
(Statement base, Description description) TestRule.apply
(Statement base, Description description) Modifies the method-runningStatement
to implement this test-running rule.TestWatcher.apply
(Statement base, Description description) Timeout.apply
(Statement base, Description description) Verifier.apply
(Statement base, Description description) private static Statement
RunRules.applyAll
(Statement result, Iterable<TestRule> rules, Description description) protected void
Stopwatch.failed
(long nanos, Throwable e, Description description) Invoked when a test failsprotected void
Stopwatch.InternalWatcher.failed
(Throwable e, Description description) protected void
TestWatcher.failed
(Throwable e, Description description) Invoked when a test failsprivate void
TestWatcher.failedQuietly
(Throwable e, Description description, List<Throwable> errors) protected void
Stopwatch.finished
(long nanos, Description description) Invoked when a test method finishes (whether passing or failing)protected void
Stopwatch.InternalWatcher.finished
(Description description) protected void
TestWatcher.finished
(Description description) Invoked when a test method finishes (whether passing or failing)private void
TestWatcher.finishedQuietly
(Description description, List<Throwable> errors) protected void
Stopwatch.InternalWatcher.skipped
(AssumptionViolatedException e, Description description) 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
(AssumptionViolatedException e, Description description) Deprecated.private void
TestWatcher.skippedQuietly
(AssumptionViolatedException e, Description description, List<Throwable> errors) protected void
Stopwatch.InternalWatcher.starting
(Description description) protected void
TestName.starting
(Description d) protected void
TestWatcher.starting
(Description description) Invoked when a test is about to startprivate void
TestWatcher.startingQuietly
(Description description, List<Throwable> errors) protected void
Stopwatch.InternalWatcher.succeeded
(Description description) protected void
Stopwatch.succeeded
(long nanos, Description description) Invoked when a test succeedsprotected void
TestWatcher.succeeded
(Description description) Invoked when a test succeedsprivate void
TestWatcher.succeededQuietly
(Description description, List<Throwable> errors) Constructors in org.junit.rules with parameters of type DescriptionModifierConstructorDescriptionRunRules
(Statement base, Iterable<TestRule> rules, Description description) -
Uses of Description in org.junit.runner
Fields in org.junit.runner declared as DescriptionModifier and TypeFieldDescriptionstatic final Description
Description.EMPTY
Describes a Runner which runs no testsstatic final 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 constructorprivate final Description
FilterFactoryParams.topLevelDescription
Fields in org.junit.runner with type parameters of type DescriptionMethods in org.junit.runner that return DescriptionModifier and TypeMethodDescriptionDescription.childlessCopy()
static Description
Description.createSuiteDescription
(Class<?> testClass) Create aDescription
named aftertestClass
static Description
Description.createSuiteDescription
(Class<?> testClass, Annotation... annotations) Create aDescription
named aftertestClass
static Description
Description.createSuiteDescription
(String name, Serializable uniqueId, Annotation... annotations) Create aDescription
namedname
.static Description
Description.createSuiteDescription
(String name, Annotation... annotations) Create aDescription
namedname
.static Description
Description.createTestDescription
(Class<?> clazz, String name) Create aDescription
of a single test namedname
in the classclazz
.static Description
Description.createTestDescription
(Class<?> clazz, String name, Annotation... annotations) Create aDescription
of a single test namedname
in the classclazz
.static Description
Description.createTestDescription
(String className, String name, Serializable uniqueId) Create aDescription
of a single test namedname
in the classclazz
.static Description
Description.createTestDescription
(String className, String name, Annotation... annotations) Create aDescription
of a single test namedname
in the 'class' namedclassName
.Describable.getDescription()
abstract Description
Runner.getDescription()
FilterFactoryParams.getTopLevelDescription()
Methods in org.junit.runner that return types with arguments of type DescriptionModifier and TypeMethodDescriptionDescription.getChildren()
Gets the copy of the children of thisDescription
.Methods in org.junit.runner with parameters of type DescriptionModifier and TypeMethodDescriptionvoid
Description.addChild
(Description description) AddDescription
as a child of the receiver.Request.filterWith
(Description desiredDescription) Returns a Request that only runs tests whoseDescription
matches the given description.void
Result.Listener.testFinished
(Description description) void
Result.Listener.testIgnored
(Description description) void
Result.Listener.testRunStarted
(Description description) Method parameters in org.junit.runner with type arguments of type DescriptionModifier and TypeMethodDescriptionRequest.sortWith
(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 -
Uses of Description in org.junit.runner.manipulation
Fields in org.junit.runner.manipulation declared as DescriptionFields in org.junit.runner.manipulation with type parameters of type DescriptionModifier and TypeFieldDescriptionprivate final Comparator<Description>
Sorter.comparator
private static final Comparator<Description>
Alphanumeric.COMPARATOR
Methods in org.junit.runner.manipulation that return DescriptionModifier and TypeMethodDescriptionOrdering.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 DescriptionModifier and TypeMethodDescriptionOrderer.order
(Collection<Description> descriptions) Orders the descriptions.protected abstract List<Description>
Ordering.orderItems
(Collection<Description> descriptions) Implemented by sub-classes to order the descriptions.protected final List<Description>
Sorter.orderItems
(Collection<Description> descriptions) Implemented by sub-classes to order the descriptions.Methods in org.junit.runner.manipulation with parameters of type DescriptionModifier and TypeMethodDescriptionint
Sorter.compare
(Description o1, Description o2) static Ordering
Ordering.definedBy
(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 DescriptionModifier and TypeMethodDescriptionOrderer.order
(Collection<Description> descriptions) Orders the descriptions.protected abstract List<Description>
Ordering.orderItems
(Collection<Description> descriptions) Implemented by sub-classes to order the descriptions.protected final List<Description>
Sorter.orderItems
(Collection<Description> descriptions) Implemented by sub-classes to order the descriptions.Constructors in org.junit.runner.manipulation with parameters of type DescriptionConstructor parameters in org.junit.runner.manipulation with type arguments of type DescriptionModifierConstructorDescriptionSorter
(Comparator<Description> comparator) Creates aSorter
that usescomparator
to sort tests -
Uses of Description in org.junit.runner.notification
Fields in org.junit.runner.notification declared as DescriptionMethods in org.junit.runner.notification that return DescriptionMethods in org.junit.runner.notification with parameters of type DescriptionModifier and TypeMethodDescriptionvoid
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 withIgnore
.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.Constructors in org.junit.runner.notification with parameters of type DescriptionModifierConstructorDescriptionFailure
(Description description, Throwable thrownException) Constructs aFailure
with the given description and exception. -
Uses of Description in org.junit.runners
Fields in org.junit.runners declared as DescriptionModifier and TypeFieldDescriptionprivate final Description
Parameterized.AssumptionViolationRunner.description
Fields in org.junit.runners with type parameters of type DescriptionModifier and TypeFieldDescriptionprivate final ConcurrentMap<FrameworkMethod,
Description> BlockJUnit4ClassRunner.methodDescriptions
Methods in org.junit.runners that return DescriptionModifier and TypeMethodDescriptionprotected 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) Parameterized.AssumptionViolationRunner.getDescription()
ParentRunner.getDescription()
Methods in org.junit.runners with parameters of type DescriptionModifier and TypeMethodDescriptionRuleContainer.apply
(FrameworkMethod method, Description description, Object target, Statement statement) Applies all the rules ordered accordingly to the specifiedstatement
.protected final void
ParentRunner.runLeaf
(Statement statement, Description description, RunNotifier notifier) Runs aStatement
that represents a leaf (aka atomic) test.
TestWatcher.skipped(AssumptionViolatedException, Description)