public class TestClusterUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
TestClusterUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkIfCanUse(String className)
Check if we can use the given class directly in a JUnit test
|
static Set<Field> |
getAccessibleFields(Class<?> clazz)
Get the set of fields defined in this class and its superclasses
|
static Class<?> |
getClass(String className) |
static Set<Constructor<?>> |
getConstructors(Class<?> clazz)
Get the set of constructors defined in this class and its superclasses
|
static Set<Field> |
getFields(Class<?> clazz)
Get the set of fields defined in this class and its superclasses
|
static Method |
getMethod(Class<?> clazz,
String methodName,
String desc) |
static Set<Method> |
getMethods(Class<?> clazz)
Get the set of methods defined in this class and its superclasses
|
static int |
getPackageDistance(String className1,
String className2)
Calculate package distance between two classnames
|
static boolean |
hasStaticGenerator(Class<?> clazz) |
static boolean |
isAnonymousClass(String className) |
static boolean |
isEvoSuiteClass(Class<?> c) |
static boolean |
isTest(String className)
Deprecated.
use
org.evosuite.junit.CoverageAnalysis.isTest(Class<?> cls) |
static void |
makeAccessible(Constructor<?> constructor) |
static void |
makeAccessible(Field field) |
static void |
makeAccessible(Method method) |
@Deprecated public static boolean isTest(String className)
org.evosuite.junit.CoverageAnalysis.isTest(Class<?> cls)className - public static boolean isAnonymousClass(String className)
public static void makeAccessible(Field field)
public static void makeAccessible(Method method)
public static void makeAccessible(Constructor<?> constructor)
public static boolean isEvoSuiteClass(Class<?> c)
public static int getPackageDistance(String className1, String className2)
className1 - className2 - public static boolean checkIfCanUse(String className)
className - a String object.public static Set<Constructor<?>> getConstructors(Class<?> clazz)
clazz - public static Set<Field> getFields(Class<?> clazz)
clazz - public static boolean hasStaticGenerator(Class<?> clazz)
public static Set<Field> getAccessibleFields(Class<?> clazz)
clazz - public static Set<Method> getMethods(Class<?> clazz)
clazz - Copyright © 2010–2017 EvoSuite. All rights reserved.