org.jwalk
Enum Strategy
java.lang.Object
java.lang.Enum<Strategy>
org.jwalk.Strategy
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Strategy>
public enum Strategy
- extends java.lang.Enum<Strategy>
Strategy enumerates the protocol, algebra and state-based test strategies.
The PROTOCOL strategy denotes an exhaustive, breadth-first exploration of the
test class's method protocols, to a bounded depth. The ALGEBRA strategy
denotes a more selective exploration of the test class's unique algebraic
constructions, to a bounded depth. The STATES strategy denotes a state-based
exploration of the test class's high-level states and transitions, to a
bounded depth.
- Version:
- 1.0
- Author:
- Anthony Simons
Method Summary |
static Strategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
PROTOCOL
public static final Strategy PROTOCOL
ALGEBRA
public static final Strategy ALGEBRA
STATES
public static final Strategy STATES
values
public static Strategy[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Strategy c : Strategy.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Strategy valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null