Tag Archives: mock-objects

Grails Testing Acegi Security

Almost every web application I create needs some form of user authentication and authorization. Grails provides a great plugin system that allows you to extend the base framework to provide these kinds of features. My current favorite security plugin for … Continue reading

Posted in Groovy | Tagged , , , , | 4 Comments

On Singletons

The Singleton Pattern is one of the most widely used patterns from the Gang of Four (GoF) Desgin Patterns Book. One the reasons that it’s so widely used, I think, is because it’s also very easy to understand. The basic … Continue reading

Posted in Code, Unit Testing | Tagged , | 2 Comments

Mocking .NET Objects with NUnit

NUnit is my Unit Testing tool of choice for .NET development. Microsoft provides a unit testing framework but it only works with some higher-end versions of Visual Studio. They’re so similar that it’s almost ridiculous that Microsoft created their own … Continue reading

Posted in .NET, Code, Unit Testing | Tagged , , , | 17 Comments

jMock For Mocking Unit Tests

Ok, so I might not exactly be on the cutting edge with this post, but I just started playing with jMock, a framework for creating Mock objects. Mock objects are used to isolate various layers of an application by providing … Continue reading

Posted in Code, Java, Unit Testing | Tagged | Leave a comment