return reporterFactory.close();
}
private void executeTestSet( Class<?> clazz, RunListener reporter, RunNotifier listeners )
{
final ReportEntry report = new SimpleReportEntry( getClass().getName(), clazz.getName() );
reporter.testSetStarting( report );
try
{
if ( !StringUtils.isBlank( requestedTestMethod ) )
{
String actualTestMethod = getMethod( clazz, requestedTestMethod );
String[] testMethods = StringUtils.split( actualTestMethod, "+" );
executeWithRerun( clazz, listeners, testMethods );
}
else
{
executeWithRerun( clazz, listeners, null );
}
}
catch ( Throwable e )
{
reporter.testError( SimpleReportEntry.withException( report.getSourceName(), report.getName(),
new PojoStackTraceWriter( report.getSourceName(),
report.getName(), e ) ) );
}
finally
{
reporter.testSetCompleted( report );
}