Package io.cucumber.java
Annotation Type DocStringType
Register doc string type.
The method must have this signature:
String -> Author
Author
is an example of the type of the parameter type.
Each docstring has a content type (text, json, ect) and type. The When not provided in the annotation the content type is the name of the annotated method. The type is the return type of the annotated. method.
Cucumber selects the doc string type to convert a docstring to the target used in a step definition by:
- Searching for an exact match of content type and target type
- Searching for a unique match for target type
- Throw an exception of zero or more then one docstring type was found
String
.- See Also:
-
DocStringType
-
Optional Element Summary
Optional Elements
-
Element Details
-
contentType
String contentTypeName of the content type.When not provided this will default to the name of the annotated method.
- Returns:
- content type
- Default:
- ""
-