Package cucumber
Class LddToolRunner
java.lang.Object
cucumber.LddToolRunner
This class is used to run lddtool and capture its output
It prevents lddtool from terminating the JVM by overriding System.exit()
It also captures the output of System.out and System.err for testing purposes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears the content of output and error streams.static StringrunLddTool(String[] args, String outDirectory) This method runs the Lddtool and captures its output
-
Constructor Details
-
LddToolRunner
public LddToolRunner()
-
-
Method Details
-
runLddTool
This method runs the Lddtool and captures its output- Parameters:
args- the command line arguments to pass to lddtool- Returns:
- the output of lddtool
- Throws:
Throwable- if an error occurs while running lddtool
-
clearStreams
public static void clearStreams()Clears the content of output and error streams.
-