Tuesday, February 22, 2005

Mock Objects

Andy Marks gave a nice presentation at the local AJUG on the different Mock frameworks available. I had looked briefly at setting up a Mock framework at work to support some ugly integration testing. After having a look, I went with EasyMock, because
  1. Steve Hayes had recommended it to me when he was last here
  2. It had documentation that I could follow
But after the presentation, I'm seriously thinking that I'd prefer to go with JMock, trainwreck and all. Trouble is finding the time to get around to it (I'm not currently doing much development at work 8().

OT: It had been over a year since I last went to an AJUG meeting. Nice to see lots of familiar faces still there and a few new ones as well.

4 Comments:

At 22 February, 2005 08:22, Anonymous Steve Hayes said...

Your refactoring tools probably won't be able to refactor the method sends that are encoded as strings. That's a deal breaker for me.

 
At 22 February, 2005 08:28, Blogger Doug said...

There was some debate on whether or not this is a good thing or a bad thing. Yes, the tools may not be able to refactor your tests, but then something might not refactor the way you want. I don't really know for certain, but will have to give this some thought.

 
At 23 February, 2005 08:50, Anonymous Rob said...

WRT refactoring tools -- IntelliJ does pick up strings when doing a refactoring, therefore handling the method name refactoring problem.

 
At 23 February, 2005 10:01, Blogger Doug said...

Ah, so a real IDE can handle this sort of thing. 8)

I'm hearing more and more good things about IntelliJ from people whose opinion I respect. Seems it does alot of small subtle things well, which makes it a better product then Eclipse.

 

Post a Comment

Links to this post:

Create a Link

<< Home