Archive for March, 2009
Spring’s Dependency Injection & MVC
Below are slides from a presentation I gave to colleagues at Kiwiplan. The presentation covered two Spring Framework topics, the first being a brief introduction to Spring’s Dependency Injection Container. The second presentation was an introduction to Spring’s MVC (web) component, with a focus on the annotation style introduced in Spring 2.5. PDF versions are available for both Dependency Injection and MVC.
Unit Testing Fundamentals
Below and attached are slides from a presentation I gave to colleagues at Kiwiplan. The presentation covers a range of topics regarding unit testing best practices, including test driven development (TDD), mocking frameworks, avoiding over-specification and test coverage. The slides also include diagrams to help explain the concept of isolating code through the use of seams.
I’ve attached the final outcome of the live TDD examples. Obviously TDD doesn’t come across very well as a final solution, however the code also provides basic examples of the Mockito and Rhino Mocks libraries. The code style is based on Spring Framework’s annotation driven MVC framework.
Java example code – JUnit, Mockito, EclEMMA (Eclipse Java coverage)
VB.Net example code – NUnit, Rhino Mocks
Search
Subscribe
Recent Posts
Tags
Archives
What I'm Doing...
- @karianna As I keep bumping the MaxPermSize it always runs out of permgen at the same place... thinking it isn't picking up the command in reply to karianna 6 hrs ago
- Cucumber build with Groovy step definitions failing on TeamCity due to PermGen. I've tried -XX:MaxPermSize=512M in build config. Ideas? 7 hrs ago
- http://twitpic.com/182k5q - Thanks for the poker cards @alexcuesta Now we can estimate like the pros! 11 hrs ago
- More updates...