agave-systems/systems-core/src/test/java/org/iplantc/service/systems/util/HttpTestHelper.java
/**
     * Executes curl command as os process and collects the results
     * @return CmdLineProcessOutput contains the std out and err of the command line execution.
     */
Executes curl command as os process and collects the results
@return CmdLineProcessOutput contains the std out and err of the command line execution.
Executes curl command as os process and collects the results @return CmdLineProcessOutput contains the std out and err of the command line execution .
private CmdLineProcessOutput curl(){
        CmdLineProcessHandler cmdLineProcessHandler = new CmdLineProcessHandler();
        int exitCode = cmdLineProcessHandler.executeCommand(command);
        System.out.println(" Exitcode : " +exitCode);
        if (exitCode != 0) {
            System.out.println("do something here on error");
        }
        CmdLineProcessOutput cmdLineProcessOutput = cmdLineProcessHandler.getProcessOutput();
        System.out.println("stderr : "+cmdLineProcessOutput.getErrString());
        System.out.println("stdout : "+cmdLineProcessOutput.getOutString());
        return  cmdLineProcessOutput;
    }
private CmdLineProcessOutput curl ( ) { CmdLineProcessHandler cmdLineProcessHandler = new CmdLineProcessHandler ( ) ; int exitCode = cmdLineProcessHandler . executeCommand ( command ) ; System . out . println ( " Exitcode : " + exitCode ) ; if ( exitCode != 0 ) { System . out . println ( "do something here on error" ) ; } CmdLineProcessOutput cmdLineProcessOutput = cmdLineProcessHandler . getProcessOutput ( ) ; System . out . println ( "stderr : " + cmdLineProcessOutput . getErrString ( ) ) ; System . out . println ( "stdout : " + cmdLineProcessOutput . getOutString ( ) ) ; return cmdLineProcessOutput ; }
Executes curl command as os process and collects the results
 @return CmdLineProcessOutput contains the std out and err of the command line execution.
Executes curl command as os process and collects the results @return CmdLineProcessOutput contains the std out and err of the command line execution .
//throw new JobException("Job exited with error code " + exitCode + " please check your arguments and try again.");