Archive for the 'Testing' Category
Using Google Guice Providers to Solve Law of Demeter Problems
2 Comments Published July 24th, 2008 in Google Guice, IoC, Java, TestingA post on the Google testing blog made me think. Their post presents an example of a class
class Mechanic {
Engine engine;
Mechanic(Context context) {
this.engine = context.getEngine();
}
}
which depends on an object Context in the constructor, when indeed it only depends on Engine, a violation the law of demeter. This often […]
How to do TDD with Flex?
4 Comments Published September 14th, 2007 in Flex, Software development, TDD, TestingWell, how do you?