· 1 min read

A great use of AOP

I just ran across Surrogate, a great little library that really puts AOP (aspect oriented programming, something I’ve been training clients on for some time) to excellent use. As a complement to Junit and a really great implementation of the mock objects pattern, Surrogate can help achieve ~100% code coverage by helping you mock out even Java system libraries (where tests might be time-dependent or have external dependencies in commercial libraries that you don’t have source for).

    Back to Blog