AssertTrue vs AssertEquals for ints
junit
Solution
`assertEquals()` gives a useful default error message on failure, like "expected X but got Y", but `assertTrue()` can't. Use the more specific applicable method here, which is `assertEquals()`.
Problem
Should we use assertEquals or assertTrue for comparing primitive types specifically ints? Is there a preference, if so why ? I'd like to know the pros and cons of each approach.