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

[test] Make OutputAnalyzer exception more informative

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: