| Constructor and Description |
|---|
ActionSequence() |
ActionSequence(String name) |
| Modifier and Type | Method and Description |
|---|---|
ActionSequence |
add(String actionId) |
static boolean |
addAction(String actionId)
Add actionId to default sequence.
|
static boolean |
addAction(String sequenceName,
String actionId)
Add actionId to specified sequence.
|
void |
assertDataContainsAll(Class<?>... expected)
Assert that this sequence contains simple class names of all of the
expected classes. |
void |
assertDataContainsAll(Collection<String> expected)
Assert that this sequence contains all of the
expected strings. |
void |
assertDataContainsAll(String... expected)
Assert that this sequence contains all of the
expected strings. |
void |
assertDataEquals(Class<?>... expected)
Assert that strings stored in this sequence equal (in order!)
|
void |
assertDataEquals(List<String> expected)
Assert that strings stored in this sequence equal (in order!)
|
void |
assertDataEquals(String... expected)
Assert that strings stored in this sequence equal (in order!)
|
static void |
assertSequenceDataContainsAll(Class<?>... expected)
Assert that the default sequence contains simple class names of all of the
expected classes. |
static void |
assertSequenceDataContainsAll(Collection<String> expected)
Assert that this sequence contains all of the
expected strings. |
static void |
assertSequenceDataContainsAll(String... expected)
Assert that this sequence contains all of the
expected strings. |
static void |
assertSequenceDataEquals(Class<?>... expected)
Assert that strings stored in the default sequence equal (in order!)
|
static void |
assertSequenceDataEquals(List<String> expected)
Assert that strings stored in this sequence equal (in order!)
|
static void |
assertSequenceDataEquals(String... expected)
Assert that strings stored in this sequence equal (in order!)
|
boolean |
beginsWith(String... actions) |
static ActionSequence |
buildFromCsvData(String csv) |
boolean |
containsAll(String... actions) |
String |
dataToCsv() |
boolean |
endsWith(String... actions) |
List<String> |
getData() |
String |
getName() |
static ActionSequence |
getSequence() |
static ActionSequence |
getSequence(String sequenceName) |
static List<String> |
getSequenceData() |
static List<String> |
getSequenceData(String sequenceName) |
static int |
getSequenceSize() |
static int |
getSequenceSize(String sequenceName) |
static void |
reset()
Remove all sequences.
|
String |
toString() |
public ActionSequence()
public ActionSequence(String name)
name - public ActionSequence add(String actionId)
actionId - public String getName()
public boolean containsAll(String... actions)
actions - true if sequence data contain all of the specified actions, false otherwisepublic boolean beginsWith(String... actions)
actions - true if sequence data begins with the specified actions, false otherwisepublic boolean endsWith(String... actions)
actions - true if sequence data ends with the specified actions, false otherwisepublic String dataToCsv()
public void assertDataEquals(List<String> expected)
expected strings.expected - public void assertDataEquals(String... expected)
expected strings.expected - public void assertDataEquals(Class<?>... expected)
expected classes.expected - public void assertDataContainsAll(Collection<String> expected)
expected strings. Note that this only verifies that the
expected strings are a SUBSET of the actual strings stored in this sequence.expected - public void assertDataContainsAll(String... expected)
expected strings. Note that this only verifies that the
expected strings are a SUBSET of the actual strings stored in this sequence.expected - public void assertDataContainsAll(Class<?>... expected)
expected classes. Note that this only
verifies that the expected classes are a SUBSET of the actual classes stored in this sequence.expected - public static void reset()
public static boolean addAction(String sequenceName, String actionId)
sequence - actionId - true if a new sequence was added, false otherwisepublic static boolean addAction(String actionId)
actionId - true if a new sequence was added, false otherwisepublic static ActionSequence getSequence()
null if no such sequence existspublic static ActionSequence getSequence(String sequenceName)
name - null if no such sequence existspublic static List<String> getSequenceData()
null if no such sequence existspublic static List<String> getSequenceData(String sequenceName)
sequenceName - null if no such sequence existspublic static int getSequenceSize()
public static int getSequenceSize(String sequenceName)
sequence - public static ActionSequence buildFromCsvData(String csv)
csv - public static void assertSequenceDataEquals(List<String> expected)
expected strings.expected - IllegalStateException - if there is no default sequencepublic static void assertSequenceDataEquals(String... expected)
expected strings.expected - IllegalStateException - if there is no default sequencepublic static void assertSequenceDataEquals(Class<?>... expected)
expected.expected - IllegalStateException - if there is no default sequencepublic static void assertSequenceDataContainsAll(Collection<String> expected)
expected strings. Note that this only verifies that the
expected strings are a SUBSET of the actual strings stored in this sequence.expected - IllegalStateException - if there is no default sequencepublic static void assertSequenceDataContainsAll(String... expected)
expected strings. Note that this only verifies that the
expected strings are a SUBSET of the actual strings stored in this sequence.expected - IllegalStateException - if there is no default sequencepublic static void assertSequenceDataContainsAll(Class<?>... expected)
expected classes. Note that this only
verifies that the expected classes are a SUBSET of the actual classes stored in this sequence.expected - IllegalStateException - if there is no default sequenceCopyright © 2008–2016 CDI TCK. All rights reserved.