Package net.tangly.bdd
Annotation Type Feature
@Target(PACKAGE)
@Retention(RUNTIME)
public @interface Feature
A feature or a story describes a behavior of the build system. You can use a story template or free text to describe the behavior of the system.
For each feature a set of scenarios or tests are defined in the form "Given a context When a specific event happens then the expected outcomes are
as described". The "Given When Then" scenarios are described in unit tests using the features of JUnit 5 such as test class and nested classes to
document and implement the "Given When" and test methods to realize the "Then" part. The display name annotation is used to produce readable and
executable behavior driven tests.
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringvalueReturns the name of the feature as human readable information for living documentation. -
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringdescriptionReturns the detailed description of the story as human readable information for living documentation.java.lang.StringidReturns the identifier of the feature.java.lang.String[]tagsReturns the tags associated with the feature.
-
Element Details
-
value
java.lang.String valueReturns the name of the feature as human readable information for living documentation.- Returns:
- short summary of the feature in a plain human language
-
-
-
description
java.lang.String descriptionReturns the detailed description of the story as human readable information for living documentation. One could describe a story in this format: As a {user-defined string}, in order to {user-defined string}, I want to {user-defined string}.- Returns:
- the story in a plain human language.
- Default:
- ""
-
id
java.lang.String idReturns the identifier of the feature. The identifier can be used for cross-reference and traceability of the requirements.- Returns:
- identifier of the feature unique in the context of the application domain
- Default:
- ""
-
tags
java.lang.String[] tagsReturns the tags associated with the feature. Tags provides domain specific classification and additional information.- Returns:
- tags defined in the feature
- Default:
- {}
-