By default, the required version of Hamcrest for:
- JUnit 4.11
- Hamcrest 1.3
- Mockito-core 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-core 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-core 1.9.5 to use Hamcrest 1.3
- Time I don't really have at the moment
- Use JUnit 4.10
- Other?
UPDATE 2015-06-12: Both Mockito 1.10.19 and 2.0.13-beta still use Hamcrest 1.1