Mockito, JUnit, Hamcrest, Versioning
By default, the required version of Hamcrest for:
JUnit 4.11
Hamcrest 1.3
Mockito 1.9.5
Hamcrest 1.1
There were not insiginifcant API changes between Hamcrest 1.1 and 1.3.
Currently my test cases attempt to run JUnit 4.11 with Hamcrest 1.1, but
I'm reasonably sure that this is a bad idea. For similar reasons, I
suspect that trying to use Mockito 1.9.5 with Hamcrest 1.3 is also a bad
idea.
What to do?
Use Hamcrest 1.1 with the latest JUnit and Mockito
Use Hamcrest 1.3 with the latest JUnit and Mockito
Attempt to patch Mockito 1.9.5 to use Hamcrest 1.3
Time I don't really have at the moment
Use JUnit 4.10
Other?
No comments:
Post a Comment