Package cucumber
Class LddToolRunner
- java.lang.Object
-
- cucumber.LddToolRunner
-
public class LddToolRunner extends Object
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 Constructor Description LddToolRunner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearStreams()
Clears the content of output and error streams.static String
runLddTool(String[] args, String outDirectory)
This method runs the Lddtool and captures its output
-
-
-
Method Detail
-
runLddTool
public static String runLddTool(String[] args, String outDirectory) throws Throwable
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.
-
-