Class DriverGenerator
java.lang.Object
de.gematik.test.tiger.maven.usecases.DriverGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate final org.apache.maven.plugin.logging.Logprivate GenerateDriverProperties -
Constructor Summary
ConstructorsConstructorDescriptionDriverGenerator(GenerateDriverProperties props, org.apache.maven.plugin.logging.Log log) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidcreateTestDriverSourceFile(int ctr, String featurePath) voidgenerateDriverForFeatureFiles(List<String> files) private StringgetDriverClassSourceCodeAsString(int ctr, String featurePath, String currentDriverClassName) private Stringprivate StringtoCommaseparatedQuotedList(List<String> glues) private StringwithQuotes(String it) private StringwriteToDriverSourceFile(String currentDriverClassName, String driverSourceCode)
-
Field Details
-
COUNTER_REPLACEMENT_TOKEN
- See Also:
-
props
-
log
private final org.apache.maven.plugin.logging.Log log
-
-
Constructor Details
-
DriverGenerator
-
-
Method Details
-
toCommaseparatedQuotedList
-
withQuotes
-
generateDriverForFeatureFiles
- Throws:
IOException
-
createTargetFolderIfNotExists
- Throws:
IOException
-
createTestDriverSourceFile
- Throws:
IOException
-
getDriverClassSourceCodeAsString
private String getDriverClassSourceCodeAsString(int ctr, String featurePath, String currentDriverClassName) throws IOException - Throws:
IOException
-
writeToDriverSourceFile
private String writeToDriverSourceFile(String currentDriverClassName, String driverSourceCode) throws IOException - Throws:
IOException
-
getTemplate
- Throws:
IOException
-