An idea for a college course :: Unit Testing
After spending a significant amount of time this week on writing JUnit tests for a Spring Web app, I've come to a conclusion. College courses, even in the grad classes I am taking don't spend enough time on the concepts behind unit tests. Granted JUnit and NUnit has been covered in the classes I've had but really only the testing framework is discussed. Test-driven development (TDD) teaches us how to write a test first, make it fail, stub out your methods, and then code until your test passes. The practicality of TDD in the real world is limited because a requirement is to have your system well designed up front. Getting to a point where you'll know method names ahead of time means you've spent a significant amount of time thinking about the design and analyzing that design. ...