Characterization Tests Sample Code

This sample code is for the following posts related to generating characterization tests for legacy Java code:

  1. Characterization Tests: How To Deal With Legacy Java Code
  2. JUnit Factory Part 1: Generating Tests
  3. JUnit Factory Part 2: Finding Regressions
  4. JUnit Factory Part 3: Improving Code Coverage

Before you begin, you’ll first want to download the free Eclipse plugin for JUnit Factory. Next, you’ll want to import the Eclipse project archive below to see the sample code and generated tests discussed in the blog.

Remember, if you attempt to regenerate the tests in the sample project, you might get back different tests. This is because JUnit Factory is constantly getting updated with the results of the latest research from AgitarLabs.