|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CombineStrategy
This is the API-interface that must be implemented by any
combine-strategy class.
The combine-strategy class should also have a default constructor or it
cannot be instanciated by the framework's built-in funtionality, which is
available through the class AnnotationAwareCallbackRecordsFactory
, which assumes the annotation
@CombineConfig
has been used to specify the combine-strategy class.
Instead of having the strategy-classes explicitly implement this interface
strategy-developers are encouraged to subclass
AbstractCombineStrategy
. This abstract class offers some common
functionality and can also keep your test-classes up-to-date with any future
modifications to this interface.
AbstractCombineStrategy
Method Summary | |
---|---|
Collection |
combine(ValuesCollection vc)
Implementations of this method will create a collection of callback- records based on the configuration of this CombineStrategy instance. |
void |
setMaxCount(int maxCount)
Specifies the maximum number of combinations that the method combine(ValuesCollection) is allowed to return. |
void |
setRandomSeed(long randomSeed)
Some CombineStrategy implementations does to some extent pick callback-record parameters randomly. |
Method Detail |
---|
void setMaxCount(int maxCount)
combine(ValuesCollection)
is allowed to return. The default
value is implementation dependent.
void setRandomSeed(long randomSeed)
Collection combine(ValuesCollection vc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |