An error reporter for testing that verifies that messages reported to the reporter are expected.
Sample use
TestErrorReporter e = new TestErrorReporter(null, new String[] { "first warning" }); ...