Class DefaultCaseAsProvider

java.lang.Object
com.tngtech.jgiven.impl.params.DefaultCaseAsProvider
All Implemented Interfaces:
CaseAsProvider

public class DefaultCaseAsProvider extends Object implements CaseAsProvider
Default case description provider that uses the value pattern
  • Constructor Details

    • DefaultCaseAsProvider

      public DefaultCaseAsProvider()
  • Method Details

    • as

      public String as(String caseDescription, List<String> parameterNames, List<?> parameterValues)
      Description copied from interface: CaseAsProvider
      Provides the description of a single scenario case depending on the test parameters and optional additional arguments
      Specified by:
      as in interface CaseAsProvider
      Parameters:
      caseDescription - the value provided by the CaseAs annotation.
      parameterNames - the parameter names
      parameterValues - the parameter values. Depending on the value of CaseAs.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

      public static String defaultDescription(List<String> parameterNames, List<?> parameterValues)