Skip to content

tests: swap arguments of assertEquals according to JUnit API #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2016

Conversation

maitai
Copy link
Contributor

@maitai maitai commented Oct 7, 2016

The method assertEquals has the signature void assertEquals(Object expected, Object actual) and therefore the first argument should always be the one that is expected in order to avoid confusing messages such as this one: expected:<actualValue> but was:<expectedValue>

The method `assertEquals` has the signature
`void assertEquals(Object expected, Object actual)` and therefore the first
argument should always be the one that is expected in order to avoid confusing
messages such as this one: `expected:<actualValue> but was:<expectedValue>`
@sscarduzio
Copy link
Owner

Yep, makes sense mate :)

@sscarduzio sscarduzio merged commit f5781d3 into sscarduzio:master Oct 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants