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

Fix some Asserts failure messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs

      When Asserts.assertNotEquals(12345, 12345) fails, it now says "expected 12345 to not equal 12345". Obviously there is no need to repeat "12345". Same for assertNotEqualsByteArray.

      Asserts.assertEqualsByteArray method uses the words "expected... to equal...". Other methods use "expected... but was...". Just follow the other methods.

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: