Class FeatureNameFormatter

java.lang.Object
com.arc_e_tect.gradle.gherkin.snippet.FeatureNameFormatter

public final class FeatureNameFormatter extends Object
Converts a Feature title into a directory-safe camelCase name.
  • Method Details

    • toDirectoryName

      public static String toDirectoryName(String featureTitle)
      Converts featureTitle into camelCase with no spaces, e.g. "User authentication" becomes "userAuthentication".
      Parameters:
      featureTitle - the Feature's title, as parsed from the .feature file
      Returns:
      the camelCase directory name; empty if featureTitle is blank