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
RunnerProvides 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
Subclasses with type arguments of type Description in junit.frameworkMethods in junit.framework that return DescriptionModifier and TypeMethodDescriptionJUnit4TestAdapter.getDescription()JUnit4TestCaseFacade.getDescription()Methods in junit.framework with parameters of type DescriptionModifier and TypeMethodDescriptionJUnit4TestAdapterCache.asTest(Description description) JUnit4TestAdapterCache.asTestList(Description description) -
Uses of Description in org.junit.experimental.categories
Methods in org.junit.experimental.categories with parameters of type DescriptionModifier and TypeMethodDescriptionbooleanCategories.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 DescriptionModifier and TypeMethodDescriptionMaxCore.sortedLeavesForTest(Request request) MaxHistory.testComparator() -
Uses of Description in org.junit.internal
Methods in org.junit.internal with parameters of type DescriptionModifier and TypeMethodDescriptionvoidTextListener.testIgnored(Description description) voidTextListener.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
Constructor 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
Methods in org.junit.internal.runners that return DescriptionModifier and TypeMethodDescriptionErrorReportingRunner.getDescription()JUnit38ClassRunner.getDescription()JUnit4ClassRunner.getDescription()Deprecated.protected DescriptionJUnit4ClassRunner.methodDescription(Method method) 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
Constructors 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-runningStatementto implement this test-running rule.final StatementStopwatch.apply(Statement base, Description description) TestRule.apply(Statement base, Description description) Modifies the method-runningStatementto implement this test-running rule.TestWatcher.apply(Statement base, Description description) Timeout.apply(Statement base, Description description) Verifier.apply(Statement base, Description description) protected voidStopwatch.failed(long nanos, Throwable e, Description description) Invoked when a test failsprotected voidTestWatcher.failed(Throwable e, Description description) Invoked when a test failsprotected voidStopwatch.finished(long nanos, Description description) Invoked when a test method finishes (whether passing or failing)protected voidTestWatcher.finished(Description description) Invoked when a test method finishes (whether passing or failing)protected voidStopwatch.skipped(long nanos, AssumptionViolatedException e, Description description) Invoked when a test is skipped due to a failed assumption.protected voidTestWatcher.skipped(AssumptionViolatedException e, Description description) Invoked when a test is skipped due to a failed assumption.protected voidTestWatcher.skipped(AssumptionViolatedException e, Description description) Deprecated.protected voidTestName.starting(Description d) protected voidTestWatcher.starting(Description description) Invoked when a test is about to startprotected voidStopwatch.succeeded(long nanos, Description description) Invoked when a test succeedsprotected voidTestWatcher.succeeded(Description description) Invoked when a test succeedsConstructors 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 DescriptionDescription.EMPTYDescribes a Runner which runs no testsstatic final DescriptionDescription.TEST_MECHANISMDescribes 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 DescriptionModifier and TypeMethodDescriptionDescription.childlessCopy()static DescriptionDescription.createSuiteDescription(Class<?> testClass) Create aDescriptionnamed aftertestClassstatic DescriptionDescription.createSuiteDescription(Class<?> testClass, Annotation... annotations) Create aDescriptionnamed aftertestClassstatic DescriptionDescription.createSuiteDescription(String name, Serializable uniqueId, Annotation... annotations) Create aDescriptionnamedname.static DescriptionDescription.createSuiteDescription(String name, Annotation... annotations) Create aDescriptionnamedname.static DescriptionDescription.createTestDescription(Class<?> clazz, String name) Create aDescriptionof a single test namednamein the classclazz.static DescriptionDescription.createTestDescription(Class<?> clazz, String name, Annotation... annotations) Create aDescriptionof a single test namednamein the classclazz.static DescriptionDescription.createTestDescription(String className, String name, Serializable uniqueId) Create aDescriptionof a single test namednamein the classclazz.static DescriptionDescription.createTestDescription(String className, String name, Annotation... annotations) Create aDescriptionof a single test namednamein the 'class' namedclassName.Describable.getDescription()abstract DescriptionRunner.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 TypeMethodDescriptionvoidDescription.addChild(Description description) AddDescriptionas a child of the receiver.Request.filterWith(Description desiredDescription) Returns a Request that only runs tests whoseDescriptionmatches the given 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 bycomparatorConstructors in org.junit.runner with parameters of type Description -
Uses of Description in org.junit.runner.manipulation
Classes in org.junit.runner.manipulation that implement interfaces with type arguments of type DescriptionMethods 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 TypeMethodDescriptionintSorter.compare(Description o1, Description o2) static OrderingOrdering.definedBy(Class<? extends Ordering.Factory> factoryClass, Description annotatedTestClass) Creates anOrderingfrom the given factory class.static OrderingOrdering.definedBy(Ordering.Factory factory, Description annotatedTestClass) Creates anOrderingfrom the given factory.static FilterFilter.matchMethodDescription(Description desiredDescription) Returns aFilterthat only runs the single method described bydesiredDescriptionabstract booleanFilter.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.Constructor parameters in org.junit.runner.manipulation with type arguments of type DescriptionModifierConstructorDescriptionSorter(Comparator<Description> comparator) Creates aSorterthat usescomparatorto sort tests -
Uses of Description in org.junit.runner.notification
Methods in org.junit.runner.notification that return DescriptionMethods in org.junit.runner.notification with parameters of type DescriptionModifier and TypeMethodDescriptionvoidRunNotifier.fireTestFinished(Description description) Invoke to tell listeners that an atomic test finished.voidRunNotifier.fireTestIgnored(Description description) Invoke to tell listeners that an atomic test was ignored.voidRunNotifier.fireTestRunStarted(Description description) Do not invoke.voidRunNotifier.fireTestStarted(Description description) Invoke to tell listeners that an atomic test is about to start.voidRunNotifier.fireTestSuiteFinished(Description description) Invoke to tell listeners that a test suite is about to finish.voidRunNotifier.fireTestSuiteStarted(Description description) Invoke to tell listeners that a test suite is about to start.voidRunListener.testFinished(Description description) Called when an atomic test has finished, whether the test succeeds or fails.voidRunListener.testIgnored(Description description) Called when a test will not be run, generally because a test method is annotated withIgnore.voidRunListener.testRunStarted(Description description) Called before any tests have been run.voidRunListener.testStarted(Description description) Called when an atomic test is about to be started.voidRunListener.testSuiteFinished(Description description) Called when a test suite has finished, whether the test suite succeeds or fails.voidRunListener.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 aFailurewith the given description and exception. -
Uses of Description in org.junit.runners
Methods in org.junit.runners that return DescriptionModifier and TypeMethodDescriptionprotected DescriptionBlockJUnit4ClassRunner.describeChild(FrameworkMethod method) protected abstract DescriptionParentRunner.describeChild(T child) Returns aDescriptionforchild, which can be assumed to be an element of the list returned byParentRunner.getChildren()protected DescriptionSuite.describeChild(Runner child) ParentRunner.getDescription()Methods in org.junit.runners with parameters of type DescriptionModifier and TypeMethodDescriptionprotected final voidParentRunner.runLeaf(Statement statement, Description description, RunNotifier notifier) Runs aStatementthat represents a leaf (aka atomic) test.
TestWatcher.skipped(AssumptionViolatedException, Description)