title: Mockito, JUnit, Hamcrest, Versioning
body: <p>By default, the required version of Hamcrest for:</p>
  
  <ul>
  <li>JUnit 4.11
  <ul>
  <li>Hamcrest 1.3</li>
  </ul></li>
  <li>Mockito-core 1.9.5
  <ul>
  <li>Hamcrest 1.1</li>
  </ul></li>
  </ul>
  
  <p>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 <a href="https://github.com/junit-team/junit/blob/master/doc/ReleaseNotes4.11.md">sure that this is a bad idea.</a> For similar reasons, I suspect that trying to use Mockito-core 1.9.5 with Hamcrest 1.3 is <a href="http://code.google.com/p/mockito/issues/detail?id=397">also a bad idea.</a></p>
  
  <p>What to do?</p>
  
  <ol>
  <li>Use Hamcrest 1.1 with the latest JUnit and Mockito</li>
  <li>Use Hamcrest 1.3 with the latest JUnit and Mockito</li>
  <li>Attempt to patch Mockito-core 1.9.5 to use Hamcrest 1.3
  <ul>
  <li>Time I don't really have at the moment</li>
  </ul></li>
  <li>Use JUnit 4.10</li>
  <li>Other?</li>
  </ol>
  
  <p><strong>UPDATE 2015-06-12:</strong> Both Mockito 1.10.19 and 2.0.13-beta still use Hamcrest 1.1</p>