Integrated: 8340493: Fix some Asserts failure messages

Weijun Wang weijun at openjdk.org
Thu Dec 19 21:38:46 UTC 2024


On Fri, 20 Sep 2024 00:33:39 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> `Asserts.assertNotEquals` shows "expected 12345 to not equal 12345" which sounds redundant, just say "expected not equals but was 12345".
> 
> `Asserts.assertEqualsByteArray` uses the words "expected... to equal...". Modify it to follow the `assertEquals` style ""expected... but was...".

This pull request has now been integrated.

Changeset: b2811a0c
Author:    Weijun Wang <weijun at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b2811a0ccd9664d11770980c47424ab6723cbbc9
Stats:     107 lines in 8 files changed: 37 ins; 4 del; 66 mod

8340493: Fix some Asserts failure messages

Reviewed-by: valeriep, djelinski

-------------

PR: https://git.openjdk.org/jdk/pull/21101


More information about the core-libs-dev mailing list