fireFileFinished( event );
fireAuditFinished( null );
CheckstyleCheckerListener listener = listenerMap.get( SeverityLevel.INFO );
CheckstyleResults results = listener.getResults();
assertEquals( "Test total files", 4, results.getFiles().size() );
assertEquals( "Test file count", 4, results.getFileCount() );
assertEquals( "test file violations", 1, results.getFileViolations( "file1" ).size() );
assertEquals( "test file severities", 1, results.getSeverityCount( "file1", SeverityLevel.INFO ) );
assertEquals( "test file severities", 0, results.getSeverityCount( "file1", SeverityLevel.WARNING ) );
assertEquals( "test file severities", 0, results.getSeverityCount( "file1", SeverityLevel.ERROR ) );
assertEquals( "test file severities", 0, results.getSeverityCount( "file1", SeverityLevel.IGNORE ) );
listener = listenerMap.get( SeverityLevel.WARNING );
results = listener.getResults();
assertEquals( "Test total files", 4, results.getFiles().size() );
assertEquals( "Test file count", 4, results.getFileCount() );
assertEquals( "test file violations", 2, results.getFileViolations( "file2" ).size() );
assertEquals( "test file severities", 0, results.getSeverityCount( "file2", SeverityLevel.INFO ) );
assertEquals( "test file severities", 2, results.getSeverityCount( "file2", SeverityLevel.WARNING ) );
assertEquals( "test file severities", 0, results.getSeverityCount( "file2", SeverityLevel.ERROR ) );
assertEquals( "test file severities", 0, results.getSeverityCount( "file2", SeverityLevel.IGNORE ) );
listener = listenerMap.get( SeverityLevel.ERROR );
results = listener.getResults();
assertEquals( "Test total files", 4, results.getFiles().size() );
assertEquals( "Test file count", 4, results.getFileCount() );
assertEquals( "test file violations", 3, results.getFileViolations( "file3" ).size() );
assertEquals( "test file severities", 0, results.getSeverityCount( "file3", SeverityLevel.INFO ) );
assertEquals( "test file severities", 0, results.getSeverityCount( "file3", SeverityLevel.WARNING ) );
assertEquals( "test file severities", 3, results.getSeverityCount( "file3", SeverityLevel.ERROR ) );
assertEquals( "test file severities", 0, results.getSeverityCount( "file3", SeverityLevel.IGNORE ) );
listener = listenerMap.get( SeverityLevel.IGNORE );
results = listener.getResults();
assertEquals( "Test total files", 4, results.getFiles().size() );
assertEquals( "Test file count", 4, results.getFileCount() );
assertEquals( "test file violations", 0, results.getFileViolations( "file4" ).size() );
assertEquals( "test file severities", 0, results.getSeverityCount( "file4", SeverityLevel.INFO ) );
assertEquals( "test file severities", 0, results.getSeverityCount( "file4", SeverityLevel.WARNING ) );
assertEquals( "test file severities", 0, results.getSeverityCount( "file4", SeverityLevel.ERROR ) );
assertEquals( "test file severities", 0, results.getSeverityCount( "file4", SeverityLevel.IGNORE ) );
}