Commit 805123d
committed
Fix flawed assertion
The assertion assertTrue(moduleId.hashCode() == other.hashCode() ==
expectedResult) is logically flawed. It incorrectly asserts that
unequal objects must have different hash codes, which is not
guaranteed by the hashCode() contract.
JIRA: LIGHTY-409
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>1 parent 8f22444 commit 805123d
File tree
1 file changed
+5
-2
lines changed- lighty-core/lighty-common/src/test/java/io/lighty/core/common/models/tests
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | | - | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
0 commit comments