public class UniformRandomMethodSelection extends java.lang.Object implements TypedOperationSelector
Modifier and Type | Field and Description |
---|---|
private java.util.List<TypedOperation> |
operations
The list of methods under test.
|
Constructor and Description |
---|
UniformRandomMethodSelection(java.util.List<TypedOperation> operations)
Create a selector that selects uniformly at random from the given operations.
|
Modifier and Type | Method and Description |
---|---|
void |
newRegressionTestHook(Sequence sequence)
Does nothing.
|
TypedOperation |
selectOperation()
Selects an operation with uniform random probability.
|
private final java.util.List<TypedOperation> operations
public UniformRandomMethodSelection(java.util.List<TypedOperation> operations)
operations
- methods under testpublic TypedOperation selectOperation()
selectOperation
in interface TypedOperationSelector
public void newRegressionTestHook(Sequence sequence)
newRegressionTestHook
in interface TypedOperationSelector
sequence
- newly-created sequence that was classified as a regression test