Class ToolTestBase

    • Constructor Detail

      • ToolTestBase

        protected ToolTestBase​(Class<? extends Tool> tool)
    • Method Detail

      • runTool

        protected int runTool​(String... args)
                       throws Exception
        Runs the underlying tool.
        Parameters:
        args - tool arguments.
        Returns:
        the tool exit code.
        Throws:
        Exception - if there is an error asserting the test data.
      • runTool

        protected int runTool​(String args)
                       throws Exception
        Runs the underlying tool.
        Parameters:
        args - args tool arguments.
        Returns:
        the tool exit code.
        Throws:
        Exception - if there is an error asserting the test data.
      • runToolCheckExit0

        protected void runToolCheckExit0​(String... args)
                                  throws Exception
        Runs the underlying tool and verify the exit code to 0.
        Parameters:
        args - tool arguments.
        Throws:
        Exception - if there is an error asserting the test data.