mil.dod.th.junit4.test.runner/src/mil/dod/th/ose/junit4xmltestrunner/ant/XMLJUnitResultFormatter.java
public void endTestSuite(final Result results) throws IOException 
    {
        System.setOut(m_OldStdOut);
        System.setErr(m_OldStdErr);
        
        Logging.log(LogService.LOG_INFO, "%n############%n%s%ntests ran: %d, failures: %d%n############", 
                m_RootElement.getAttribute(ATTR_NAME), results.getRunCount(), results.getFailureCount());
        
        setSystemOutput();
        setSystemError();

        m_RootElement.setAttribute(ATTR_TESTS, "" + results.getRunCount());
        m_RootElement.setAttribute(ATTR_FAILURES, "" + m_Failures);
        m_RootElement.setAttribute(ATTR_ERRORS, "" + m_Errors);
        m_RootElement.setAttribute(ATTR_TIME, "" + (results.getRunTime() / ONE_SECOND));
        if (m_Out != null) 
        {
            Writer wri = null;
            try 
            {
                wri = new BufferedWriter(new OutputStreamWriter(m_Out, "UTF8"));
                wri.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
                (new DOMElementWriter()).write(m_RootElement, wri, 0, "  ");
            } 
            finally 
            {
                if (wri != null) 
                {
                    try 
                    {
                        wri.flush();
                    } 
                    catch (final IOException ex) 
                    { 
                        // ignore
                    }
                }
                if (m_Out != System.out && m_Out != System.err) 
                {
                    wri.close();
                }
            }
        }
    }
/**
     * The whole test suite ended.
     * 
     * @param results
     *      Results of the testing
     * @throws IOException
     *      Thrown if unable to write results to output stream 
     */
The whole test suite ended.

@param results
Results of the testing
@throws IOException
Thrown if unable to write results to output stream
The whole test suite ended . @param results Results of the testing @throws IOException Thrown if unable to write results to output stream
public void endTestSuite(final Result results) throws IOException 
    {
        System.setOut(m_OldStdOut);
        System.setErr(m_OldStdErr);
        Logging.log(LogService.LOG_INFO, "%n############%n%s%ntests ran: %d, failures: %d%n############", 
                m_RootElement.getAttribute(ATTR_NAME), results.getRunCount(), results.getFailureCount());
        setSystemOutput();
        setSystemError();
        m_RootElement.setAttribute(ATTR_TESTS, "" + results.getRunCount());
        m_RootElement.setAttribute(ATTR_FAILURES, "" + m_Failures);
        m_RootElement.setAttribute(ATTR_ERRORS, "" + m_Errors);
        m_RootElement.setAttribute(ATTR_TIME, "" + (results.getRunTime() / ONE_SECOND));
        if (m_Out != null) 
        {
            Writer wri = null;
            try 
            {
                wri = new BufferedWriter(new OutputStreamWriter(m_Out, "UTF8"));
                wri.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
                (new DOMElementWriter()).write(m_RootElement, wri, 0, "  ");
            } 
            finally 
            {
                if (wri != null) 
                {
                    try 
                    {
                        wri.flush();
                    } 
                    catch (final IOException ex) 
                    { 
                    }
                }
                if (m_Out != System.out && m_Out != System.err) 
                {
                    wri.close();
                }
            }
        }
    }
public void endTestSuite ( final Result results ) throws IOException { System . setOut ( m_OldStdOut ) ; System . setErr ( m_OldStdErr ) ; Logging . log ( LogService . LOG_INFO , "%n############%n%s%ntests ran: %d, failures: %d%n############" , m_RootElement . getAttribute ( ATTR_NAME ) , results . getRunCount ( ) , results . getFailureCount ( ) ) ; setSystemOutput ( ) ; setSystemError ( ) ; m_RootElement . setAttribute ( ATTR_TESTS , "" + results . getRunCount ( ) ) ; m_RootElement . setAttribute ( ATTR_FAILURES , "" + m_Failures ) ; m_RootElement . setAttribute ( ATTR_ERRORS , "" + m_Errors ) ; m_RootElement . setAttribute ( ATTR_TIME , "" + ( results . getRunTime ( ) / ONE_SECOND ) ) ; if ( m_Out != null ) { Writer wri = null ; try { wri = new BufferedWriter ( new OutputStreamWriter ( m_Out , "UTF8" ) ) ; wri . write ( "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" ) ; ( new DOMElementWriter ( ) ) . write ( m_RootElement , wri , 0 , "  " ) ; } finally { if ( wri != null ) { try { wri . flush ( ) ; } catch ( final IOException ex ) { } } if ( m_Out != System . out && m_Out != System . err ) { wri . close ( ) ; } } } }
The whole test suite ended.
The whole test suite ended .
// ignore