Archive for September 2009
28
Mockito: Verifying Details of an Object Passed to a Collaborator
3 Comments · Posted by James Carr in BDD, Mocks/Stubs/Fakes, Test Driven Development
Recently I was BDD’ing a class, and the behavior I needed to describe happened to be an object created internally (a simple value object) populated with a few attributes and passed to a collaborator. The old way I might be tempted to do this is just create a concrete implementation of the collaborator that stores the argument passed to it, then get it back and verify some outcome on it.
But I wondered if there was a way to do it with Mockito without it looking crappy. And apparently there is a way to verify values on an argument to a collaborator using ArgumentCaptor.
No tags

But all good endings have a new beginning! Today marks the last day of my employment with CARFAX, and I have to say that leaving is slightly bittersweet. CARFAX has been one of the most awesome employers that I have worked with and I will really miss the company and the people. It’s been a great three and a half years in which I have grown tremendously as a developer and honed my skills even more with agile, yet it has come time for me to move on in order to grow further.
It’s been a long road since that first time I saw on the extremeprogramming mailing list that CARFAX was hiring and jumped on board as it was a good chance to finally work in an environment that was trying to practice XP. Not only did I get some great hands on experience working in an agile environment on a broad range of projects, but I also developed personal and professional relationships that will undoubtedly last a lifetime.
So moving forward I will be consulting for Object Computing Inc. in St.Louis, MO. I’ve known many of the software engineers from OCI (and even attended some of their presentations at No Fluff Just Stuff) and they’re some pretty bright fellows. This position also gives me the opportunity to work in many different domains and different organization cultures. It’ll be a great step forward, but I’ll definitely miss the great times I’ve had at Carfax!
No tags
23
A Poor Man’s Guide to Getting Started With Scala
2 Comments · Posted by James Carr in Linux, scala
Want to get started with Scala, but not keen on using fancy IDEs nor have the cash to afford a nice Mac Powerbook and TextMate? Then this guide is for you! I’ll illustrate how to get a nifty scala development environment up and running on a system running Ubuntu with minimal hassle… and best of all completely cash free.
No tags
No tags
No tags
No tags

