net.sf.qualitytest.blueprint.strategy.creation
Class RandomIntValueCreationStrategy

java.lang.Object
  extended by net.sf.qualitytest.blueprint.strategy.creation.ValueCreationStrategy<Integer>
      extended by net.sf.qualitytest.blueprint.strategy.creation.RandomIntValueCreationStrategy
All Implemented Interfaces:
CreationStrategy<Integer>

public class RandomIntValueCreationStrategy
extends ValueCreationStrategy<Integer>

Strategy to create a random integer value.

Author:
Dominik Seichter

Constructor Summary
RandomIntValueCreationStrategy()
           
 
Method Summary
 Integer createValue(Class<?> expectedClass)
          Create a new value which can be assigned to an attribute.
 
Methods inherited from class net.sf.qualitytest.blueprint.strategy.creation.ValueCreationStrategy
createValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomIntValueCreationStrategy

public RandomIntValueCreationStrategy()
Method Detail

createValue

public Integer createValue(Class<?> expectedClass)
Description copied from class: ValueCreationStrategy
Create a new value which can be assigned to an attribute.

Specified by:
createValue in class ValueCreationStrategy<Integer>
Parameters:
expectedClass - which is requested.
Returns:
a new value


Copyright © 2012-2013. All Rights Reserved.