public class EnumPrimitiveStatement<T extends Enum<T>> extends PrimitiveStatement<T>
EnumPrimitiveStatement class.
AbstractStatement.Executervalueassertions, comment, logger, retval, tc| Constructor and Description |
|---|
EnumPrimitiveStatement(TestCase tc,
Class<T> clazz)
Constructor for EnumPrimitiveStatement.
|
EnumPrimitiveStatement(TestCase tc,
T value)
Constructor for EnumPrimitiveStatement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeClassLoader(ClassLoader loader)
Class instances are bound to a class loader - if we want to reexecute a
test on a different classloader we need to be able to change the class of
the reflection object
|
void |
delta()
Add a random delta to the value
|
Class<T> |
getEnumClass()
Getter for the field
enumClass. |
List<T> |
getEnumValues()
getEnumValues
|
boolean |
hasMoreThanOneValue() |
void |
randomize()
Set to a random value
|
void |
zero()
Reset value to default value 0
|
copy, equals, execute, getAccessibleObject, getPrimitiveStatement, getPrimitiveStatement, getRandomStatement, getUniqueVariableReferences, getValue, getVariableReferences, hashCode, 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 EnumPrimitiveStatement(TestCase tc, Class<T> clazz)
Constructor for EnumPrimitiveStatement.
public Class<T> getEnumClass()
Getter for the field enumClass.
Class object.public void delta()
delta in class PrimitiveStatement<T extends Enum<T>>public boolean hasMoreThanOneValue()
hasMoreThanOneValue in class PrimitiveStatement<T extends Enum<T>>public void zero()
zero in class PrimitiveStatement<T extends Enum<T>>public void randomize()
randomize in class PrimitiveStatement<T extends Enum<T>>public void changeClassLoader(ClassLoader loader)
changeClassLoader in interface StatementchangeClassLoader in class PrimitiveStatement<T extends Enum<T>>loader - a ClassLoader object.Copyright © 2010–2017 EvoSuite. All rights reserved.