public interface ExamplesHandler
The return values are in ibello's own format. The Examples class describes a Cucumber example
with scenarios and steps.
| Modifier and Type | Method and Description |
|---|---|
boolean |
existsExamplesFile(String relativePath)
Checks if an examples file exists.
|
List<Examples> |
loadExamples(Pattern relativePath)
Loads multiple Cucumber example files.
|
Examples |
loadExamples(String relativePath)
Loads a single Cucumber example file.
|
void |
saveExamples(Examples examples)
Saves the given examples into a gherkin feature file.
|
Examples loadExamples(String relativePath) throws BDDException
relativePath - the path to the file, relative to the "examples" directory of the projectBDDException - if there was an error during loading the fileList<Examples> loadExamples(Pattern relativePath) throws BDDException
relativePath - regular expression for the path to the file (which is relative to the "examples" directory of the project)BDDException - if there was an error during loading a fileboolean existsExamplesFile(String relativePath)
relativePath - the path to the file, relative to the "examples" directory of the projecttrue if the given file exists, false otherwisevoid saveExamples(Examples examples) throws BDDException
BDDDocument.setFullPath(String) or BDDDocument.setRelativePath(String)
method.examples - the examples we want to saveBDDException - if there was an error during saving the file or the file path is not specifiedCreated by Kornél Simon, 2022