Moandji Ezana

Blog

Unit-testing Convenience Methods

An easy way to unit test convenience methods: bootstrap them with the already-tested methods they're simplifying the interface of.

The advantage is that you're doing state-based rather than interaction-based testing and the assertions are fairly readable (and would be even more so with FEST-Assert).