}
userFriendlyMethodName += ')';
ReportEntry report =
new SimpleReportEntry( testObject.getClass().getName(), getTestName( userFriendlyMethodName ) );
reportManager.testStarting( report );
try
{
setUpFixture();
}
catch ( Throwable e )
{
report =
SimpleReportEntry.withException( testObject.getClass().getName(), getTestName( userFriendlyMethodName ),
new LegacyPojoStackTraceWriter( testObject.getClass().getName(),
method.getName(), e ) );
reportManager.testFailed( report );
// A return value of true indicates to this class's executeTestMethods
// method that it should abort and not attempt to execute
// any other test methods. The other caller of this method,
// TestRerunner.rerun, ignores this return value, because it is
// only running one test.
return true;
}
// Make sure that tearDownFixture
try
{
method.invoke( testObject, args );
report = new SimpleReportEntry( testObject.getClass().getName(), getTestName( userFriendlyMethodName ) );
reportManager.testSucceeded( report );
}
catch ( InvocationTargetException ite )
{