assertEquals( "Wrong number of compilation warnings.", expectedWarnings(), numCompilerWarnings );
if ( !error.isError() ) { continue; }  System.err.println( "----" ); System.err.println( error.getFile() + ":" + error.getMessage() ); System.err.println( "----" ); }  assertEquals( "Wrong number of compilation errors.", expectedErrors(), numCompilerErrors ); }  if ( expectedWarnings() != numCompilerWarnings ) { for ( Iterator it = messages.iterator(); it.hasNext(); ) { CompilerError error = (CompilerError) it.next();  if ( error.isError() ) { continue; }  System.err.println( "----" ); System.err.println( error.getFile() + ":" + error.getMessage() ); System.err.println( "----" ); }  assertEquals( "Wrong number of compilation warnings.", expectedWarnings(), numCompilerWarnings ); }
    public void testCompilingSources()        throws Exception    {        List messages = new ArrayList();        for ( Iterator it = getCompilerConfigurations().iterator(); it.hasNext(); )        {            CompilerConfiguration compilerConfig = (CompilerConfiguration) it.next();            Compiler compiler = (Compiler) lookup( Compiler.ROLE, getRoleHint() );            messages.addAll( compiler.compile( compilerConfig ) );        }        int numCompilerErrors = compilerErrorCount( messages );        int numCompilerWarnings = messages.size() - numCompilerErrors;        assertEquals( "Wrong number of compilation errors.",                      expectedErrors(),                      numCompilerErrors );        assertEquals( "Wrong number of compilation warnings.",                      expectedWarnings(),                      numCompilerWarnings );    }