Package com.tngtech.jgiven.impl.params
Class DefaultAsProvider
java.lang.Object
com.tngtech.jgiven.impl.params.DefaultAsProvider
- All Implemented Interfaces:
AsProvider
The default provider for a stage method, scenario or scenario class.
- Since:
- 0.12.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultAsProvider
public DefaultAsProvider()
-
-
Method Details
-
as
Returns the value of theAsannotation if a value was specified. Otherwise, this transforms the method name into a readable sentence and returns it.- Specified by:
asin interfaceAsProvider- Parameters:
annotation- TheAsannotation using this provider.method- The method of which a representation is requested.- Returns:
- A representation of the method.
-
as
Returns the value of theAsannotation. Otherwise, this transforms the class name into a readable sentence and returns it.- Specified by:
asin interfaceAsProvider- Parameters:
annotation- TheAsannotation using this provider.scenarioClass- The scenario class of which a representation is requested.- Returns:
- A representation of the scenario class.
-