Question: I just threw together a quick **Spring MVC** app as a demo to replace an internal app in my department.

Now I'm supposed to demonstrate how **Test Driven Development** works in relation to Spring MVC.

Unfortunately I didn't use **TDD** to build the demo and I'm not sure where to get started with it.

I'm using **Maven** for the build - are there any **Maven-based testing frameworks** that are easy to get started with in **Spring MVC** and that have good tutorials?

Where do I start?

Answer: 
[This](http://static.springsource.org/docs/Spring-MVC-step-by-step/) tutorial details how to develop a Spring Framework MVC application step-by-step, which includes a step for [writing a test](http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html#step1.9). Use the example therein as a model.
Just use plane old JUnit. Maven will run the automatically as part of the build process.

Basically, you should write unit tests for each method in your code. Test each possible path through the code and the possible range of values.

If you wanted to simulate TDD, you could comment out the code and a test that fails, comment in the one or more lines of code that would make the test pass.