public class ConstraintHelper extends Object
| Constructor and Description |
|---|
ConstraintHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countNumberOfMethodCalls(TestCase test,
Class<?> klass,
String methodName)
This ignores the input parameters
|
static int |
countNumberOfNewInstances(TestCase test,
Class<?> klass) |
static String[] |
getClassAndMethod(String s,
Class<?> c) |
static Constraints |
getConstraints(Statement st) |
static List<String[]> |
getExcludedMethods(TestCase tc)
Retrieve all blacklisted methods in the test.
|
static int |
getLastPositionOfBounded(VariableReference vr,
TestCase tc) |
static int |
getLastPositionOfMethodCall(TestCase test,
String className,
String methodName,
int lastPosition) |
static boolean |
isNull(VariableReference vr,
TestCase tc) |
public static int countNumberOfNewInstances(TestCase test, Class<?> klass) throws IllegalArgumentException
IllegalArgumentExceptionpublic static int countNumberOfMethodCalls(TestCase test, Class<?> klass, String methodName) throws IllegalArgumentException
test - klass - methodName - IllegalArgumentExceptionpublic static int getLastPositionOfMethodCall(TestCase test, String className, String methodName, int lastPosition)
test - className - methodName - public static String[] getClassAndMethod(String s, Class<?> c)
s - c - public static List<String[]> getExcludedMethods(TestCase tc) throws IllegalArgumentException
tc - IllegalArgumentExceptionpublic static Constraints getConstraints(Statement st)
public static boolean isNull(VariableReference vr, TestCase tc)
public static int getLastPositionOfBounded(VariableReference vr, TestCase tc)
vr - tc - Copyright © 2010–2017 EvoSuite. All rights reserved.