Package | Description |
---|---|
org.junit.experimental.categories | |
org.junit.experimental.theories | |
org.junit.experimental.theories.internal | |
org.junit.internal.runners.statements | |
org.junit.rules | |
org.junit.runners |
Provides standard
Runner implementations. |
org.junit.runners.model | |
org.junit.runners.parameterized | |
org.junit.validator |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Exception> |
CategoryValidator.validateAnnotatedMethod(FrameworkMethod method)
Adds to
errors a throwable for each problem detected. |
Modifier and Type | Field and Description |
---|---|
private FrameworkMethod |
Theories.TheoryAnchor.testMethod |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<FrameworkMethod> |
Theories.computeTestMethods() |
Modifier and Type | Method and Description |
---|---|
Statement |
Theories.methodBlock(FrameworkMethod method) |
private Statement |
Theories.TheoryAnchor.methodCompletesWithParameters(FrameworkMethod method,
Assignments complete,
java.lang.Object freshInstance) |
Constructor and Description |
---|
TheoryAnchor(FrameworkMethod testMethod,
TestClass testClass) |
Modifier and Type | Field and Description |
---|---|
private FrameworkMethod |
AllMembersSupplier.MethodParameterValue.method |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<FrameworkMethod> |
AllMembersSupplier.getDataPointsMethods(ParameterSignature sig) |
protected java.util.Collection<FrameworkMethod> |
SpecificDataPointsSupplier.getDataPointsMethods(ParameterSignature sig) |
protected java.util.Collection<FrameworkMethod> |
AllMembersSupplier.getSingleDataPointMethods(ParameterSignature sig) |
protected java.util.Collection<FrameworkMethod> |
SpecificDataPointsSupplier.getSingleDataPointMethods(ParameterSignature sig) |
Constructor and Description |
---|
MethodParameterValue(FrameworkMethod dataPointMethod) |
Modifier and Type | Field and Description |
---|---|
private FrameworkMethod |
InvokeMethod.testMethod |
Modifier and Type | Field and Description |
---|---|
private java.util.List<FrameworkMethod> |
RunAfters.afters |
private java.util.List<FrameworkMethod> |
RunBefores.befores |
Modifier and Type | Method and Description |
---|---|
protected void |
RunAfters.invokeMethod(FrameworkMethod method) |
protected void |
RunBefores.invokeMethod(FrameworkMethod method) |
Constructor and Description |
---|
InvokeMethod(FrameworkMethod testMethod,
java.lang.Object target) |
Constructor and Description |
---|
RunAfters(Statement next,
java.util.List<FrameworkMethod> afters,
java.lang.Object target) |
RunBefores(Statement next,
java.util.List<FrameworkMethod> befores,
java.lang.Object target) |
Modifier and Type | Method and Description |
---|---|
Statement |
TestWatchman.apply(Statement base,
FrameworkMethod method,
java.lang.Object target)
Deprecated.
|
Statement |
MethodRule.apply(Statement base,
FrameworkMethod method,
java.lang.Object target)
Modifies the method-running
Statement to implement an additional
test-running rule. |
void |
TestWatchman.failed(java.lang.Throwable e,
FrameworkMethod method)
Deprecated.
Invoked when a test method fails
|
void |
TestWatchman.finished(FrameworkMethod method)
Deprecated.
Invoked when a test method finishes (whether passing or failing)
|
void |
TestWatchman.starting(FrameworkMethod method)
Deprecated.
Invoked when a test method is about to start
|
void |
TestWatchman.succeeded(FrameworkMethod method)
Deprecated.
Invoked when a test method succeeds
|
Modifier and Type | Field and Description |
---|---|
private FrameworkMethod |
Parameterized.RunnersFactory.parametersMethod |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<FrameworkMethod,Description> |
BlockJUnit4ClassRunner.methodDescriptions |
Modifier and Type | Method and Description |
---|---|
private static FrameworkMethod |
Parameterized.RunnersFactory.getParametersMethod(TestClass testClass) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<FrameworkMethod> |
BlockJUnit4ClassRunner.computeTestMethods()
Returns the methods that run tests.
|
protected java.util.List<FrameworkMethod> |
BlockJUnit4ClassRunner.getChildren() |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<java.lang.Object> |
Parameterized.RunnersFactory.allParameters(TestClass testClass,
FrameworkMethod parametersMethod) |
Statement |
RuleContainer.apply(FrameworkMethod method,
Description description,
java.lang.Object target,
Statement statement)
Applies all the rules ordered accordingly to the specified
statement . |
protected java.lang.Object |
BlockJUnit4ClassRunner.createTest(FrameworkMethod method)
Returns a new fixture to run a particular test
method against. |
protected Description |
BlockJUnit4ClassRunner.describeChild(FrameworkMethod method) |
protected boolean |
BlockJUnit4ClassRunner.isIgnored(FrameworkMethod child)
Evaluates whether
FrameworkMethod s are ignored based on the
Ignore annotation. |
protected Statement |
BlockJUnit4ClassRunner.methodBlock(FrameworkMethod method)
Returns a Statement that, when executed, either returns normally if
method passes, or throws an exception if method fails. |
protected Statement |
BlockJUnit4ClassRunner.methodInvoker(FrameworkMethod method,
java.lang.Object test)
|
private static java.lang.Exception |
Parameterized.RunnersFactory.parametersMethodReturnedWrongType(TestClass testClass,
FrameworkMethod parametersMethod) |
protected Statement |
BlockJUnit4ClassRunner.possiblyExpectingExceptions(FrameworkMethod method,
java.lang.Object test,
Statement next)
Returns a
Statement : if method 's @Test annotation
has the Test.expected() attribute, return normally only if next
throws an exception of the correct type, and throw an exception
otherwise. |
protected void |
BlockJUnit4ClassRunner.runChild(FrameworkMethod method,
RunNotifier notifier) |
protected java.lang.String |
BlockJUnit4ClassRunner.testName(FrameworkMethod method)
Returns the name that describes
method for Description s. |
protected Statement |
BlockJUnit4ClassRunner.withAfters(FrameworkMethod method,
java.lang.Object target,
Statement statement)
Returns a
Statement : run all non-overridden @After
methods on this class and superclasses before running next ; all
After methods are always executed: exceptions thrown by previous steps
are combined, if necessary, with exceptions from After methods into a
MultipleFailureException . |
protected Statement |
BlockJUnit4ClassRunner.withBefores(FrameworkMethod method,
java.lang.Object target,
Statement statement)
Returns a
Statement : run all non-overridden @Before
methods on this class and superclasses before running next ; if
any throws an Exception, stop execution and pass the exception on. |
protected Statement |
BlockJUnit4ClassRunner.withPotentialTimeout(FrameworkMethod method,
java.lang.Object test,
Statement next)
Deprecated.
|
private Statement |
BlockJUnit4ClassRunner.withRules(FrameworkMethod method,
java.lang.Object target,
Statement statement) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.List<FrameworkMethod>> |
TestClass.methodsForAnnotations |
Modifier and Type | Method and Description |
---|---|
java.util.List<FrameworkMethod> |
TestClass.getAnnotatedMethods()
Returns, efficiently, all the non-overridden methods in this class and
its superclasses that are annotated}.
|
java.util.List<FrameworkMethod> |
TestClass.getAnnotatedMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Returns, efficiently, all the non-overridden methods in this class and
its superclasses that are annotated with
annotationClass . |
Modifier and Type | Method and Description |
---|---|
int |
TestClass.MethodComparator.compare(FrameworkMethod left,
FrameworkMethod right) |
boolean |
FrameworkMethod.isShadowedBy(FrameworkMethod other) |
Modifier and Type | Method and Description |
---|---|
protected void |
TestClass.scanAnnotatedMembers(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.List<FrameworkMethod>> methodsForAnnotations,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.List<FrameworkField>> fieldsForAnnotations) |
Modifier and Type | Method and Description |
---|---|
protected void |
BlockJUnit4ClassRunnerWithParameters.RunBeforeParams.invokeMethod(FrameworkMethod method) |
protected void |
BlockJUnit4ClassRunnerWithParameters.RunAfterParams.invokeMethod(FrameworkMethod method) |
protected java.lang.String |
BlockJUnit4ClassRunnerWithParameters.testName(FrameworkMethod method) |
Constructor and Description |
---|
RunAfterParams(Statement next,
java.util.List<FrameworkMethod> afters) |
RunBeforeParams(Statement next,
java.util.List<FrameworkMethod> befores) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Iterable<FrameworkMethod> |
AnnotationsValidator.MethodValidator.getAnnotatablesForTestClass(TestClass testClass) |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.List<java.lang.Exception> |
AnnotationsValidator.MethodValidator.validateAnnotatable(AnnotationValidator validator,
FrameworkMethod method) |
java.util.List<java.lang.Exception> |
AnnotationValidator.validateAnnotatedMethod(FrameworkMethod method)
Validates annotation on the given method.
|