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

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.

Tags: architecture testing java library

Copyright © 2024 Jakub Holý
Powered by Cryogen
Theme by KingMob