lucaminudel/TDDwithMockObjectsAndDesignPrinciples — pull request #6 by peterrhysthomas (2012-06-14 21:42:46+00:00)
Title: New version of Java Solutions

A revised version of the java solutions which are in-line with the tests within the other solutions.

Note that I am still using the latest adopted test naming style, i.e. the should.... rather than the more dated naming style which is present in the other examples - these also perhaps could be updated.

Also included is an invariant test within a class called ...CoveringsTests - this is based on the Test Coverings principle from [Michael Feathers](http://www.objectmentor.com/resources/articles/WorkingEffectivelyWithLegacyCode.pdf) and allows to follow the refactoring process he defines by first putting in place an invariant test to avoid regression of the code component. This would be performed as the initial stage in the refactoring process and maybe removed afterwards, I created these for my own benefit during the refactoring cycle (as there would no way otherwise to prove I hadn't regressed the code) - but thought they would be useful to leave in as examples.