This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Description
I've modified the first example in a simple fashion. I'm hoping maybe you could incorporate these changes into AnnotatedTestRunner.runTests(...):
@Test
public void testThreading() {
final AnnotatedTestRunner runner = new AnnotatedTestRunner();
// Run all Weaver tests in this class, using MyList as the Class Under Test.
try {
runner.runTests(this.getClass(), MyList.class);
} catch (final RuntimeException e) {
final Throwable root = org.apache.commons.lang.exception.ExceptionUtils.ExceptionUtils.getRootCause(e);
if (root instanceof AssertionError)
throw (AssertionError) root;
else
throw e;
}
}