Package com.tngtech.jgiven.report.json
Class JsonModelTraverser
java.lang.Object
com.tngtech.jgiven.report.json.JsonModelTraverser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
traverseModels
(File sourceDirectory, ReportModelFileHandler handler) Reads all JSON files fromsourceDirectory
and invokes for each found file theReportModelFileHandler.handleReportModel(com.tngtech.jgiven.report.model.ReportModelFile)
method of the givenhandler
.
-
Constructor Details
-
JsonModelTraverser
public JsonModelTraverser()
-
-
Method Details
-
traverseModels
Reads all JSON files fromsourceDirectory
and invokes for each found file theReportModelFileHandler.handleReportModel(com.tngtech.jgiven.report.model.ReportModelFile)
method of the givenhandler
.- Parameters:
sourceDirectory
- the directory that contains the JSON fileshandler
- the handler to be invoked for each file
-