Mar
6
2009
There are two competing philosophies with regard to unit testing strategies; state based testing and behavior based testing. In state based testing we configure a starting state, execute a test method, and then examine the resultant state/returned result. In behavior driven testing we ensure that our test object collaborates with its dependencies in an expected way.
Continue reading
2 comments | tags: EasyMock, Java, JUnit, Testing, Web Applications | posted in Software Architecture, Technology, Uncategorized, Web Applications
Dec
31
2008
I’ve been playing around with Domain Driven Design (DDD) and trying to write a small web application without implementing an anemic domain model. I have found that it is more difficult than it ought to be and I want to share some of my experiences.
An anaemic domain is something that happens in an enterprise application when your domain objects don’t really contain any real logic. Instead the logic nearly all resides in a secondary “service” component. This is an example of badly encapsulated code and will lead to messy, difficult to maintain applications.
Continue reading
3 comments | tags: Anaemic Domain Model, AOP, AspectJ, Domain Driven Design, Hibernate, Java, Spring, Web Applications | posted in Spring, Technology, Web Applications