public class JUnitEntryPoints
extends java.lang.Object
Entrypoint)s of JUnit test methods. JUnit test
methods are those invoked by the JUnit framework reflectively The entry points can be used to
specify entry points of a call graph.| Constructor and Description |
|---|
JUnitEntryPoints() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<IMethod> |
getSetUpTearDownMethods(IClass testClass)
Get the "setUp" and "tearDown" methods in the given class
|
static boolean |
isJUnitMethod(IMethod m)
Check if the given method is a JUnit test method, assuming that it is declared in a JUnit test
class.
|
static boolean |
isJUnitTestCase(IClass klass)
Check if the given class is a JUnit test class.
|
static java.lang.Iterable<Entrypoint> |
make(IClassHierarchy cha)
Construct JUnit entrypoints for all the JUnit test methods in the given scope.
|
static java.lang.Iterable<Entrypoint> |
makeOne(IClassHierarchy cha,
java.lang.String targetPackageName,
java.lang.String targetSimpleClassName,
java.lang.String targetMethodName)
Construct JUnit entrypoints for the specified test method in a scope.
|
public static java.lang.Iterable<Entrypoint> make(IClassHierarchy cha)
java.lang.IllegalArgumentException - if cha is nullpublic static java.lang.Iterable<Entrypoint> makeOne(IClassHierarchy cha, java.lang.String targetPackageName, java.lang.String targetSimpleClassName, java.lang.String targetMethodName)
java.lang.IllegalArgumentException - if cha is nullpublic static boolean isJUnitTestCase(IClass klass)
java.lang.IllegalArgumentException - if klass is nullpublic static boolean isJUnitMethod(IMethod m)
java.lang.IllegalArgumentException - if m is null