Package com.tngtech.jgiven.annotation
package com.tngtech.jgiven.annotation
-
ClassDescriptionMarks methods to be executed after the whole Scenario has been executed.Marks methods to be executed after a stage has been executed.Allows arguments of step methods to be formatted with an
AnnotationArgumentFormatter
.This annotation can be used to override the default representation for the items it was annotated with in the report.Provides a representation of a stage method, scenario or scenario class.Marks methods to be executed before the whole Scenario has been executed.Marks methods to be executed before a stage is executed, i.e.Use to define a description provider for scenario cases.Provides the description of a scenario case.This annotation can be used to provide a description for a test class.Methods of stages classes annotated with this annotation will not be intercepted by JGiven.Marks fields to be expected by a scenario stage.This annotation can be used to define an extended description for a step method or a test method.Marks a method which will be used as a preamble to the next non-filler stage method.Allows arguments of step methods to be formatted with an ArgumentFormatter.A special format annotation that uses the formatting known from the String.format method.Annotates elements that should be hidden in reports.Marks a method as an introduction word of a step.Marks an annotation to be used as a tag in JGiven reports.This annotation can be applied to a test class to configure: Tags Global formatter DefaultAs
providerAllow to specify an identifiable formatAllow to define a set of identifiable formats (NamedFormat
).
One usage of such set is to define formats for (part or all) fields of a bean.Marks a step method to have nested steps.Marks methods of step definitions as not implemented yet.A special format annotation to format POJOsEnumeration of opening/closing brackets pair :POJOFormat.BracketsEnum.NONE
: no bracketsPOJOFormat.BracketsEnum.PARENTHESES
:(...)
POJOFormat.BracketsEnum.SQUARE
:[...]
POJOFormat.BracketsEnum.BRACES
:{...}
POJOFormat.BracketsEnum.POINTY
:<...>
POJOFormat.BracketsEnum.CHEVRONS
:<<...>>
POJOFormat.BracketsEnum.DOUBLE_QUOTE
:"..."
POJOFormat.BracketsEnum.SINGLE_QUOTE
:'...'
Marks fields to be provided by a scenario stage.Step parameters annotated with this annotation will be put into quotes (" ") in reports.Marks fields to be Scenario rules.Marks fields to be stage instances This is useful to reuse stages within stages.Marks fields to be read and/or written by a scenario stage.Step parameters annotated with this annotation will be put into quotes (' ') in reports.Marks a method to be used to provide an additional comment to the previous step.Marks the parameter of a step method as a data table.Possible choices for theTable.objectFormatting()
attribute.Is used as an attribute of theIsTag
annotation to dynamically generate a description for an annotation depending on its value.Is used as an attribute of theIsTag
annotation to dynamically generate an href for an annotation depending on its value.