public class BytePrimitiveStatement extends NumericalPrimitiveStatement<Byte>
BytePrimitiveStatement class.
AbstractStatement.Executervalueassertions, comment, logger, retval, tc| Constructor and Description |
|---|
BytePrimitiveStatement(TestCase tc)
Constructor for BytePrimitiveStatement.
|
BytePrimitiveStatement(TestCase tc,
Byte value)
Constructor for BytePrimitiveStatement.
|
BytePrimitiveStatement(TestCase tc,
Type type)
Constructor for BytePrimitiveStatement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decrement()
Decrease value by smallest possible increment
|
void |
delta()
Add a random delta to the value
|
void |
increment()
Increase value by smallest possible increment
|
void |
increment(long delta)
Change value by delta
|
boolean |
isPositive()
Is the value >= 0?
|
void |
negate()
negate
|
void |
randomize()
Set to a random value
|
void |
setMid(Byte min,
Byte max)
Needed for binary search
|
void |
zero()
Reset value to default value 0
|
incrementchangeClassLoader, copy, equals, execute, 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, references, removeAssertion, removeAssertions, setAssertions, setRetvalpublic BytePrimitiveStatement(TestCase tc, Byte value)
Constructor for BytePrimitiveStatement.
public BytePrimitiveStatement(TestCase tc)
Constructor for BytePrimitiveStatement.
tc - a TestCase object.public void zero()
zero in class PrimitiveStatement<Byte>public void delta()
delta in class PrimitiveStatement<Byte>public void increment(long delta)
increment in class NumericalPrimitiveStatement<Byte>delta - a long.public void randomize()
randomize in class PrimitiveStatement<Byte>public void increment()
increment in class NumericalPrimitiveStatement<Byte>public void decrement()
decrement in class NumericalPrimitiveStatement<Byte>public void setMid(Byte min, Byte max)
setMid in class NumericalPrimitiveStatement<Byte>min - a T object.max - a T object.public boolean isPositive()
isPositive in class NumericalPrimitiveStatement<Byte>public void negate()
negate
negate in class AbstractStatementCopyright © 2010–2017 EvoSuite. All rights reserved.