public final class TestScanning extends Object
Modifier and Type | Method and Description |
---|---|
static Set<Class<?>> |
getPackageClasses(String prefix) |
static Set<Method> |
getRunnableTestMethods(Class<?> c) |
static boolean |
isRunnableTestClass(Class<?> c) |
static boolean |
isTestMethod(Method m) |
public static Set<Class<?>> getPackageClasses(String prefix)
prefix
- The package prefix.prefix
and are runnable according to
isRunnableTestClass(Class)
.
That is, a prefix of x.y
will find classes
x.y.z.A
, x.y.q.B
, and so on.public static Set<Method> getRunnableTestMethods(Class<?> c)
c
- The class.isTestMethod(Method)
.public static boolean isRunnableTestClass(Class<?> c)
c
- The class.true
iff the given class is public
, not
abstract
, and has at least one test method.isTestMethod(Method)
public static boolean isTestMethod(Method m)
m
- The method.true
iff the given method is not static
and is annotated with Test
.Copyright © 2017 <code@io7m.com> http://io7m.com