Archive for March, 2010

Using The New Mockito Annotations

It’s only been a few days since the Mockito 1.8.3 release and I have to say that for a minor release there’s a lot I like about it! What I like about the new annotations is the ability to have test cases that are completely free of @Before. Observe this example of a class that [...]

Another Good Tidbit from GOOSGBT

I’m currently in chapter 12 of Growing Object Oriented Software Guided By Tests and thought I’d share another good tidbit from one of the asides: Put Tests in a Different Package We’ve adopted a habit of putting tests in a different package from the code they’re exercising. We want to make sure we’re driving the [...]

Mockito 1.8.3 Released

Szczepan has announced on the Mockito user mailing list that 1.8.3 of Mockito has been released. This released includes several small (but useful) additions as well as bug fixes. The two parts of this release I like are the new annotations @Spy, @Captor, and @injectMocks. These add to the already useful @Mock annotation to simplify [...]

Presenting at Lambda Lounge This Thursday

I’ll be giving a presentation at Lambda Lounge this Thursday on Behavior Driven Development With Jspec. If you’re in the St.Louis area come on by and learn about BDD and how you can use it to drive your design. I’ll be using jspec to demonstrate how to build a functioning feature for a javascript library [...]

Subscribe to RSS Feed Follow me on Twitter!