mockito/mockito — pull request #49 by MajA7jHbJYW2N (2014-04-14 13:05:06+00:00)
Title: Issue487equalityofemptyarrays

I made three sets of changes:

(1) Issue 487 - I think that areEquals should take into account the component type of arrays being compared. This is why I changed 2 of the assertTrue statements to assertFalse statements and I added a new assertFalse statement that compared 2 empty arrays with different component types.

(2) Issue 484 - In DetectingFinalMethodsTest.java, the return null seemed to trigger an error.

(3) Issue 486 - In VerificationWithTimeoutTest.java, there seems to be a PMD rule that says if a test method catches an Exception, the last statement in the try block should be a fail(). It seems we have a method run that might throw an exception that we do not care about. I moved the code throwing the exception to another non test method and invoked it from the test method.