public final class TestClassUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<Class<? extends junit.framework.TestCase>> |
getAllFuncTests() |
static List<Class<? extends junit.framework.TestCase>> |
getJUnit3TestClasses(String packageName) |
static List<Class<? extends junit.framework.TestCase>> |
getJUnit3TestClasses(String packageName,
boolean recursive) |
static List<Class<?>> |
getJUnit4TestClasses(String packageName,
boolean recursive) |
static List<Class<?>> |
getJUnit5TestClasses(String packageName,
boolean recursive) |
static List<Class<?>> |
getTestClasses(String packageName,
boolean recursive)
Get all test classes, including JUnit4 POJOs.
|
static List<Method> |
getTestMethods(Class<? extends junit.framework.TestCase> testClass) |
static boolean |
isJunit4TestClas(Class<?> klazz) |
static boolean |
isJunit5TestClass(Class<?> klazz) |
public static List<Class<?>> getTestClasses(String packageName, boolean recursive)
packageName
- package namerecursive
- recursive searchpublic static List<Class<? extends junit.framework.TestCase>> getJUnit3TestClasses(String packageName, boolean recursive)
public static List<Class<?>> getJUnit4TestClasses(String packageName, boolean recursive)
public static List<Class<?>> getJUnit5TestClasses(String packageName, boolean recursive)
public static List<Class<? extends junit.framework.TestCase>> getJUnit3TestClasses(String packageName)
public static List<Method> getTestMethods(Class<? extends junit.framework.TestCase> testClass)
public static boolean isJunit5TestClass(Class<?> klazz)
public static boolean isJunit4TestClas(Class<?> klazz)
Copyright © 2002-2024 Atlassian. All Rights Reserved.