public class PrivateFieldStatement extends MethodStatement
AbstractStatement.Executercallee, methodannotations, parameterAnnotations, parametersassertions, comment, logger, retval, tc| Constructor and Description |
|---|
PrivateFieldStatement(TestCase tc,
Class<?> klass,
String fieldName,
VariableReference callee,
VariableReference param) |
| Modifier and Type | Method and Description |
|---|---|
Statement |
copy(TestCase newTestCase,
int offset)
copy
|
Throwable |
execute(Scope scope,
PrintStream out)
This method executes the statement under the given scope.
|
String |
getOwnerClassName() |
boolean |
isReflectionStatement() |
boolean |
isStaticField() |
boolean |
mutate(TestCase test,
TestFactory factory)
Go through parameters of method call and apply local search
|
changeClassLoader, equals, getAccessibleObject, getCallee, getDeclaredExceptions, getDeclaringClassName, getDescriptor, getMethod, getMethodName, getNumParameters, getUniqueVariableReferences, getVariableReferences, hashCode, isAccessible, isAssignmentStatement, isDeclaredException, isStatic, isValid, replace, same, setCallee, setMethod, toStringgetConstraints, getNumParametersOfType, getParameterReferences, isBounded, mutateParameter, replaceParameterReferenceaddAssertion, addComment, clone, clone, copyAssertions, exceptionHandler, getAssertionCode, getAssertionReferences, getAssertions, getCode, getCode, getComment, getExceptionClass, getPosition, getReturnClass, getReturnType, getReturnValue, getTestCase, hasAssertions, negate, references, removeAssertion, removeAssertions, setAssertions, setRetvalpublic PrivateFieldStatement(TestCase tc, Class<?> klass, String fieldName, VariableReference callee, VariableReference param) throws NoSuchFieldException, IllegalArgumentException, ConstructionFailedException
public boolean isStaticField()
public String getOwnerClassName()
public Statement copy(TestCase newTestCase, int offset)
MethodStatementcopy
copy in interface Statementcopy in class MethodStatementnewTestCase - the testcase in which this statement will be insertedoffset - a int.Statement object.public boolean mutate(TestCase test, TestFactory factory)
MethodStatementmutate in interface Statementmutate in class MethodStatementtest - a TestCase object.factory - a TestFactory object.public boolean isReflectionStatement()
isReflectionStatement in interface StatementisReflectionStatement in class AbstractStatementpublic Throwable execute(Scope scope, PrintStream out) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException, InstantiationException
MethodStatementexecute in interface Statementexecute in class MethodStatementscope - the scope under which the statement is executedout - a PrintStream object.InvocationTargetException - if any.IllegalArgumentException - if any.IllegalAccessException - if any.InstantiationException - if any.Copyright © 2010–2017 EvoSuite. All rights reserved.