[
https://issues.apache.org/jira/browse/HADOOP-16508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adam Antal moved YARN-9470 to HADOOP-16508:
-------------------------------------------
Fix Version/s: (was: 3.3.0)
3.3.0
Affects Version/s: (was: 3.2.0)
3.2.0
Component/s: (was: yarn)
Key: HADOOP-16508 (was: YARN-9470)
Project: Hadoop Common (was: Hadoop YARN)
> Fix order of actual and expected expression in assert statements
> ----------------------------------------------------------------
>
> Key: HADOOP-16508
> URL: https://issues.apache.org/jira/browse/HADOOP-16508
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 3.2.0
> Reporter: Prabhu Joseph
> Assignee: Prabhu Joseph
> Priority: Major
> Fix For: 3.3.0
>
> Attachments: YARN-9470-001.patch, YARN-9470-002.patch,
> YARN-9470-003.patch, YARN-9470-004.patch, YARN-9470-005.patch, assertEquals
>
>
> 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.
> {code}
> [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>
> {code}
> For long term, [AssertJ|http://joel-costigliola.github.io/assertj/] can be
> used for new test cases which avoids such mistakes.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]