Package org.jbehave.core.configuration
Class Keywords
java.lang.Object
org.jbehave.core.configuration.Keywords
- Direct Known Subclasses:
LocalizedKeywords
Provides the keywords which allow parsers to find steps in stories and match
those steps with candidates through the annotations. It provides the starting
words (Given, When, Then And, "!--") using in parsing, as well as providing
keywords used in reporting.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionafter()
and()
asA()
before()
dryRun()
duration()
failed()
given()
boolean
boolean
isIgnorableStep
(String stepAsString) iWantTo()
meta()
no()
outcome()
pending()
priority()
scenario()
scope()
soThat()
startingWord
(String stepAsString) startingWord
(String stepAsString, StepType stepType) startingWordFor
(StepType stepType) startingWords
(Predicate<StepType> stepTypeFilter) String[]
startingWordsFor
(StepType stepType) boolean
stepStartsWithWord
(String step, String word) boolean
stepStartsWithWords
(String step, String... words) stepTypeFor
(String stepAsString) stepWithoutStartingWord
(String stepAsString) stepWithoutStartingWord
(String stepAsString, StepType stepType) String[]
synonymsOf
(String word) then()
toString()
when()
yes()
-
Field Details
-
META
- See Also:
-
META_PROPERTY
- See Also:
-
NARRATIVE
- See Also:
-
IN_ORDER_TO
- See Also:
-
AS_A
- See Also:
-
I_WANT_TO
- See Also:
-
SO_THAT
- See Also:
-
SCENARIO
- See Also:
-
GIVEN_STORIES
- See Also:
-
LIFECYCLE
- See Also:
-
BEFORE
- See Also:
-
AFTER
- See Also:
-
EXAMPLES_TABLE
- See Also:
-
EXAMPLES_TABLE_ROW
- See Also:
-
EXAMPLES_TABLE_HEADER_SEPARATOR
- See Also:
-
EXAMPLES_TABLE_VALUE_SEPARATOR
- See Also:
-
EXAMPLES_TABLE_IGNORABLE_SEPARATOR
- See Also:
-
GIVEN
- See Also:
-
WHEN
- See Also:
-
THEN
- See Also:
-
AND
- See Also:
-
IGNORABLE
- See Also:
-
COMPOSITE
- See Also:
-
PRIORITY
- See Also:
-
PENDING
- See Also:
-
NOT_PERFORMED
- See Also:
-
FAILED
- See Also:
-
DRY_RUN
- See Also:
-
STORY_CANCELLED
- See Also:
-
DURATION
- See Also:
-
SCOPE
- See Also:
-
SCOPE_STEP
- See Also:
-
SCOPE_SCENARIO
- See Also:
-
SCOPE_STORY
- See Also:
-
OUTCOME
- See Also:
-
OUTCOME_ANY
- See Also:
-
OUTCOME_SUCCESS
- See Also:
-
OUTCOME_FAILURE
- See Also:
-
OUTCOME_DESCRIPTION
- See Also:
-
OUTCOME_VALUE
- See Also:
-
OUTCOME_MATCHER
- See Also:
-
OUTCOME_VERIFIED
- See Also:
-
META_FILTER
- See Also:
-
YES
- See Also:
-
NO
- See Also:
-
KEYWORDS
-
-
Constructor Details
-
Keywords
public Keywords()Creates Keywords with default valuesdefaultKeywords()
-
Keywords
Creates Keywords with provided keywords Map and Encoding- Parameters:
keywords
- the Map of keywords indexed by their name
-
-
Method Details
-
defaultKeywords
-
meta
-
metaProperty
-
narrative
-
inOrderTo
-
asA
-
iWantTo
-
soThat
-
scenario
-
givenStories
-
lifecycle
-
before
-
after
-
examplesTable
-
examplesTableRow
-
examplesTableHeaderSeparator
-
examplesTableValueSeparator
-
examplesTableIgnorableSeparator
-
given
-
when
-
then
-
and
-
ignorable
-
composite
-
priority
-
pending
-
notPerformed
-
failed
-
dryRun
-
storyCancelled
-
duration
-
scope
-
scopeStep
-
scopeScenario
-
scopeStory
-
outcome
-
outcomeAny
-
outcomeSuccess
-
outcomeFailure
-
outcomeDescription
-
outcomeValue
-
outcomeMatcher
-
outcomeVerified
-
outcomeFields
-
metaFilter
-
yes
-
no
-
synonymsOf
-
startingWords
-
startingWordsByType
-
isAndStep
-
isIgnorableStep
-
stepWithoutStartingWord
-
stepWithoutStartingWord
-
startingWord
public String startingWord(String stepAsString, StepType stepType) throws Keywords.StartingWordNotFound - Throws:
Keywords.StartingWordNotFound
-
startingWord
- Throws:
Keywords.StartingWordNotFound
-
stepTypeFor
- Throws:
Keywords.StartingWordNotFound
-
stepStartsWithWord
-
stepStartsWithWords
-
startingWordFor
-
startingWordsFor
-
toString
-