The Holy Java

Building the right thing, building it right, fast

Archive for September, 2009

PatternTesting: Automatically verifying the good application of architectural/design patterns in code

Posted by Jakub Holý on September 25, 2009

PatternTesting is a mature open-source project that enables you to automatically check at the compile- or run-time that architectural/design/implementation decisions are implemented and bad practices avoided in the code. The main differences from tools like FindBugs and PMD are that you can implement tests spanning multiple files (classes) and that aside of compile-time checks there are also run-time checks (using AOP with ApsectJ) to do things like “ensuring that there are no more than 10 calls to the database per user case” and providing better error messages in the case of e.g. IOException.

Read more in a The Server Side’s introductory article and on the project’s page.

I haven’t yet the chance to try this out but it really intrigues me.

Posted in Languages, Testing | Tagged: , , , , | Comments Off