public class StringPrimitiveStatement extends PrimitiveStatement<String>
StringPrimitiveStatement class.
AbstractStatement.Executervalueassertions, comment, logger, retval, tc| Constructor and Description |
|---|
StringPrimitiveStatement(TestCase tc)
Constructor for StringPrimitiveStatement.
|
StringPrimitiveStatement(TestCase tc,
String value)
Constructor for StringPrimitiveStatement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delta()
Add a random delta to the value
|
Throwable |
execute(Scope scope,
PrintStream out)
This method executes the statement under the given scope.
|
void |
increment()
increment
|
void |
randomize()
Set to a random value
|
void |
zero()
Reset value to default value 0
|
changeClassLoader, copy, equals, getAccessibleObject, getPrimitiveStatement, getPrimitiveStatement, getRandomStatement, getUniqueVariableReferences, getValue, getVariableReferences, hashCode, hasMoreThanOneValue, isAssignmentStatement, mutate, replace, same, setValue, toStringaddAssertion, addComment, clone, clone, copyAssertions, exceptionHandler, getAssertionCode, getAssertionReferences, getAssertions, getCode, getCode, getComment, getDeclaredExceptions, getExceptionClass, getNumParameters, getPosition, getReturnClass, getReturnType, getReturnValue, getTestCase, hasAssertions, isAccessible, isDeclaredException, isReflectionStatement, isValid, negate, references, removeAssertion, removeAssertions, setAssertions, setRetvalpublic StringPrimitiveStatement(TestCase tc, String value)
Constructor for StringPrimitiveStatement.
public void zero()
zero in class PrimitiveStatement<String>public void delta()
delta in class PrimitiveStatement<String>public void increment()
increment
public void randomize()
randomize in class PrimitiveStatement<String>public Throwable execute(Scope scope, PrintStream out) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException, InstantiationException
PrimitiveStatementexecute in interface Statementexecute in class PrimitiveStatement<String>scope - 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.