You've found yourself writing JUnit tests that only seem to vary in their input. You've realized it's time to collect like terms. JUnit 4's parameterized annotation was created to address this need. Here is an excellent post describing how to construct such a system:
http://blogs.oracle.com/jacobc/entry/parameterized_unit_tests_with_junit
No comments:
Post a Comment