Thursday, September 18, 2008

Using Rhino Mocks wiki entry

My first foray into unit testing with a mocking framework in .NET.  Rhino Mocks has a very similar feel to EasyMock in the Java world.

Copy Source as HTML Visual Studio 2008 Addin

If you ever have a need to document source code in a wiki or a blog, this addin is very handy. 

Using Rhino Mocks with MS Test

This post helped me out tonight. If you get some silly message that Rhino.Mocks.dll is not in a trusted location, the resolution of the problem is fairly straightforward.

Thursday, September 11, 2008

Implementing object identity when using Hibernate

A good article on how to effectively implement object and database identity with Hibernate-mapped domain objects. Probably not specific to Hibernate, but for any domain object mapped by an ORM framework. Good read.

Friday, September 05, 2008

jMock example is now up

Of the three mocking frameworks that I've now briefly looked at, I'm most impressed with jMock. I just like the simplicity and feel of it. Very easy to use and I really like it's expectations implementation. I've started building out a sample Spring MVC web app which I will drive with TDD and mock object usage, utilizing jMock for object mocking. So far so good. I'll post more when I get the chance.

Wednesday, September 03, 2008

Custom JSP 2.0 tags example is now up

I had a need to create a view helper for a web view that I was building, so I did a small spike solution on JSP 2.0 tags. They seem much easier to write than they were previously (I haven't written one in many years). I thought I'd put it up on the wiki for others to use. Hopefully it proves useful. This example is done using Spring MVC as the web framework. Nothing special needed to integrate the JSP 2.0 tag into the Spring MVC web app.