public class ScanningSuite
extends org.junit.runners.Suite
Suite
that allows specifying patterns of names classes to include/exclude. Supports merging patterns
specified in superclasses as well, to simplify writing focused test harnesses.Modifier and Type | Class and Description |
---|---|
static interface |
ScanningSuite.Excludes |
static interface |
ScanningSuite.Filter |
static interface |
ScanningSuite.Includes |
static interface |
ScanningSuite.IncludeWithAnnotation |
static interface |
ScanningSuite.MustIncludes |
static class |
ScanningSuite.Ordering |
static interface |
ScanningSuite.TestOrdering |
Constructor and Description |
---|
ScanningSuite(Class<?> annotatedClass,
org.junit.runners.model.RunnerBuilder builder)
Called reflectively on classes annotated with
@RunWith(Suite.class) |
Modifier and Type | Method and Description |
---|---|
static Class<?>[] |
findMatchingTestClasses(ClassResolver classResolver,
Class<?> annotatedClass)
Gets all matching annotations from the test class being run and its superclasses, and finds all matching classes
on the classpath.
|
describeChild, emptySuite, getChildren, runChild
childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
public ScanningSuite(Class<?> annotatedClass, org.junit.runners.model.RunnerBuilder builder) throws org.junit.runners.model.InitializationError
@RunWith(Suite.class)
annotatedClass
- the root classbuilder
- builds runners for classes in the suiteorg.junit.runners.model.InitializationError
public static Class<?>[] findMatchingTestClasses(ClassResolver classResolver, Class<?> annotatedClass)
annotatedClass
- the test classCopyright © 2003–2017 Atlassian. All rights reserved.