Package com.tngtech.jgiven.impl.params
Class DefaultCaseAsProvider
java.lang.Object
com.tngtech.jgiven.impl.params.DefaultCaseAsProvider
- All Implemented Interfaces:
CaseAsProvider
Default case description provider that uses the value pattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides the description of a single scenario case depending on the test parameters and optional additional argumentsstatic StringdefaultDescription(List<String> parameterNames, List<?> parameterValues)
-
Constructor Details
-
DefaultCaseAsProvider
public DefaultCaseAsProvider()
-
-
Method Details
-
as
Description copied from interface:CaseAsProviderProvides the description of a single scenario case depending on the test parameters and optional additional arguments- Specified by:
asin interfaceCaseAsProvider- Parameters:
caseDescription- the value provided by theCaseAsannotation.parameterNames- the parameter namesparameterValues- the parameter values. Depending on the value ofCaseAs.formatValues(), this is either a list of formatted strings, or a list of the original values passed to the test method- Returns:
- a description of the case
-
defaultDescription
-