{
return isPrintSummary() ? new ConsoleReporter( trimStackTrace ) : null;
}
else if ( isRedirectTestOutputToFile() || BRIEF_REPORT_FORMAT.equals( getReportFormat() ) )
{
return new BriefConsoleReporter( trimStackTrace );
}
else if ( PLAIN_REPORT_FORMAT.equals( getReportFormat() ) )
{
return new DetailedConsoleReporter( trimStackTrace );
}