Package cucumber

Class 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 Detail

      • LddToolRunner

        public LddToolRunner()
    • 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.