@Beta public enum Scenario extends Enum<Scenario>
| Enum Constant and Description |
|---|
SkipCharacterInBetween
Simulates removal of a single character.
|
SkipFirstCharacters
Simulates deletion from the first to the last character.
|
SkipLastCharacters
Simulates typing from the first to the last character.
|
SkipNodesInBetween
Simulates removal of nodes.
|
SkipThreeCharactersInBetween
Skips three characters of the input document.
|
SkipTokensInBetween
Simulates removal of a complete token.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
processInput(String input,
DeltaScenarioProcessor tester)
Create permutations of the input document and pass that to the given tester.
|
void |
processInput(String input,
ScenarioProcessor tester)
Create permutations of the input document and pass that to the given tester.
|
static Scenario |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scenario[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scenario SkipLastCharacters
public static final Scenario SkipFirstCharacters
public static final Scenario SkipCharacterInBetween
public static final Scenario SkipTokensInBetween
public static final Scenario SkipNodesInBetween
public static final Scenario SkipThreeCharactersInBetween
x = in var x = 3), or where the name has three chars (foo, bar).public static Scenario[] values()
for (Scenario c : Scenario.values()) System.out.println(c);
public static Scenario valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void processInput(String input, ScenarioProcessor tester) throws Exception
Exceptionpublic abstract void processInput(String input, DeltaScenarioProcessor tester) throws Exception
ExceptionCopyright © 2016. All Rights Reserved.