Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.2.0
-
None
-
None
-
None
Description
Fix order of actual and expected expression in assert statements which gives misleading message when test case fails. Attached file has some of the places where it is placed wrongly.
[ERROR] testNodeRemovalGracefully(org.apache.hadoop.yarn.server.resourcemanager.TestResourceTrackerService) Time elapsed: 3.385 s <<< FAILURE! java.lang.AssertionError: Shutdown nodes should be 0 now expected:<1> but was:<0>
For long term, AssertJ can be used for new test cases which avoids such mistakes.
This is a follow-up jira for the hadoop-hdfs project.
Attachments
Issue Links
- is a child of
-
HADOOP-12693 Many misusages of assertEquals(expected, actual)
- Open
- relates to
-
HADOOP-12693 Many misusages of assertEquals(expected, actual)
- Open
- links to