[Dedup] swap expected and actual in tests #83
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
RDGraph
RSAC
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/dnet-hadoop#83
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I see many misuses of the
assertEquals
function in the dedup worfklow module, e.g.https://code-repo.d4science.org/D-Net/dnet-hadoop/src/branch/master/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/oa/dedup/EntityMergerTest.java
The assertion signature assumes the 1st parameter represents the expected value, to be checked against the actual value, passed as 2nd parameter:
org.junit.jupiter.api.Assertions#assertEquals(java.lang.Object expected, java.lang.Object actual)
Please fix the tests and look for other misuses within the dedup module scope.