Package org.jbehave.core.model
Class OutcomesTable
java.lang.Object
org.jbehave.core.model.OutcomesTable
Represents a tabular structure that holds
OutcomesTable.Outcomes to be verified by invoking method verify(). If
verification fails an OutcomesTable.OutcomesFailed exception is thrown.
The Outcomes Tables allows the specification of Keywords for the outcome fields, as well as rendering
formats for different types. The default formats include:
- Date: "EEE MMM dd hh:mm:ss zzz yyyy"
- Number: "0.###"
- Boolean: "yes,no"
getFormat(Type) and getFormat(String).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionOutcomesTable(Map<Type, String> formats) OutcomesTable(Keywords keywords) OutcomesTable(Keywords keywords, String dateFormat) Deprecated.OutcomesTable(Keywords keywords, Map<Type, String> formats) -
Method Summary
Modifier and TypeMethodDescription<T> voidaddOutcome(String description, T value, org.hamcrest.Matcher<T> matcher) asString()Deprecated.UsegetFormat(Type)toString()voidverify()
-
Constructor Details
-
OutcomesTable
public OutcomesTable() -
OutcomesTable
-
OutcomesTable
-
OutcomesTable
-
OutcomesTable
Deprecated.Creates outcomes table using the specified keywords and date format
-
-
Method Details
-
addOutcome
-
verify
public void verify() -
failureCause
-
getOutcomes
-
getFailedOutcomes
-
getOutcomeFields
-
getFormats
-
getFormat
-
getFormat
-
getDateFormat
Deprecated.UsegetFormat(Type)Provides used date format -
asString
-
toString
-
OutcomesTable(Keywords, Map)