Commit 4fc7fff
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 4253604 commit 4fc7fff
File tree
1 file changed
+4
-1
lines changed- lighty-core/lighty-common/src/test/java/io/lighty/core/common/models/tests
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| 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 | | |
| |||
0 commit comments