Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8288495

[test] Make OutputAnalyzer exception more informative

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • None
    • other-libs
    • None
    • b04

      The RuntimeException from OutputAnalyzer for expected and unexpected exit values should include both the actual and expected values.
      The method `shouldHaveExitvalue` and `shouldNotHaveExitValue` include the value expected and the value not expected instead of the actual value returned. The values provided in the exception are already known quantities in the code, what is not known is the actual value.

      Exception messages should not include newlines.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: