Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-204

[junit][PATCH] Better error messages when assertEquals fails

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      When assertEquals fails, only the JEXL representation of the expression is shown, not the actual/expected values, which makes it hard do diagnosticate what's wrong. For instance:

      Expected expression: 5
      Actual expression: ${oneLineNoNewLine.length().toString()}

      So, I'm sending a patch that would instead show the following (in the example above):

      Expected expression: (5)=(5)
      Actual expression: (${oneLineNoNewLine.length().toString()})=(6)

      Attachments

        1. JELLY-204
          0.9 kB
          Felipe Leme

        Activity

          People

            felipeal Felipe Leme
            felipeal Felipe Leme
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: