About Mike Ensor
List/Grid Author Archives Subscribe to the RSS feed of Mike Ensor

Spring 3.1, Cloud Foundry and Local Development
This post will help you build a Spring 3.1 web application using MongoDB on Cloud Foundry. In addition to pushing to Cloud Foundry, you will also be able to develop in your local environment ...

Mocking with JodaTime’s DateTime and Google Guava’s Supplier
Introduction If you’re a seasoned unit tester, you’ve learned to take note when you see any code working with time, concurrency, random, persistence and disc I/O. ...

Testing Custom Exceptions with JUnit’s ExpectedException and @Rule
Exception Testing Why test exception flows? Just like with all of your code, test coverage writes a contract between your code and the business functionality that the code is supposed ...

JUnit Pass Test Case on Failures
Why create a mechanism to expect a test failure? There comes a time when one would want and expect a JUnit @Test case fail. Though this is pretty rare, it happens. I had the need to ...


