net.sf.qualitytest.blueprint.strategy.creation
Class IncrementValueCreationStrategy<T extends Number>
java.lang.Object
net.sf.qualitytest.blueprint.strategy.creation.IncrementValueCreationStrategy<T>
- All Implemented Interfaces:
- CreationStrategy<T>
public class IncrementValueCreationStrategy<T extends Number>
- extends Object
- implements CreationStrategy<T>
Strategy to create values and increment each new value by 1. This is useful to create tests which are not random but
use not the same value for each type every time.
- Author:
- Dominik Seichter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncrementValueCreationStrategy
public IncrementValueCreationStrategy(@Nonnull
T initialValue)
IncrementValueCreationStrategy
public IncrementValueCreationStrategy(@Nonnull
T initialValue,
long offset)
createValue
public T createValue(Class<?> expectedClazz,
BlueprintConfiguration config,
BlueprintSession session)
- Description copied from interface:
CreationStrategy
- Create a new value which can be assigned to an attribute.
- Specified by:
createValue
in interface CreationStrategy<T extends Number>
- Parameters:
expectedClazz
- which is requested.config
- a BlueprintConfiguration
session
- A BlueprintSession
* @return a new value
Copyright © 2012-2013. All Rights Reserved.