GTC   GTC

TestUtil

TestUtil is a Java open source Automated Method Testing strategy and tool for verifying all matching accessor methods on mutable objects with a single line of unit test code. It is compatible with both in-container and outside-the-container strategies extending JUnit.

For practitioners of Test-Driven Development, TestUtil recursively interrogates the code base and reflectively creates "test" instances (or random primitives) for verification. Instead of custom coding unit tests concurrently with development, this "Automated" approach mandates the establishment of clear design patterns (for "getters" and "setters" in this case) before a project begins.

Observed positive side-effects include pattern defragmentation, pattern clarification and overall design cohesion.

GTC Artifacts

TestUtil resources include:

Public API   Complete API   Downloads   testutil-config.xml   TestUtil: By Example

© 2014 GTC