Class ProcessRunner.Result

    • Constructor Detail

      • Result

        public Result​(List<String> args,
                      int exitCode,
                      byte[] stdOut,
                      byte[] stdErr)
    • Method Detail

      • exitCode

        public int exitCode()
      • stdOut

        public byte[] stdOut()
      • stdErr

        public byte[] stdErr()
      • exitNotZero

        public boolean exitNotZero()
        Returns true if the exit code was not zero.
      • assertExitZero

        public String assertExitZero​(Charset charset)
        Asserts that the exit code was zero, and if so, returns the content of stdout encoded with the given charset. If the exit code was not zero, throws an exception with useful debugging information.