Commit 0ec5a7b
committed
Support mixed boxed and unboxed primitives in assertEquals()
Prior to this commit, the following resulting in a compiler error due to
ambiguity.
assertEquals(42, Integer.valueOf("42"));
The same holds true for all primitive types other than `boolean`.
This commit addresses this shortcoming by introducing assertEquals()
variants that support mixed boxed and unboxed primitive values.
Issue: #16381 parent 45a8c8f commit 0ec5a7b
File tree
3 files changed
+501
-33
lines changed- documentation/src/docs/asciidoc/release-notes
- junit-jupiter-api/src/main/java/org/junit/jupiter/api
- junit-jupiter-engine/src/test/java/org/junit/jupiter/api
3 files changed
+501
-33
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
0 commit comments