mil.dod.th.junit4.test.runner/src/mil/dod/th/ose/junit4xmltestrunner/ant/XMLJUnitResultFormatter.java
public void startTestSuite(final String name) // NOCHECKSTYLE: no documentation, file modified from 3rd party
    {
        m_Doc = getDocumentBuilder().newDocument();
        m_RootElement = m_Doc.createElement(TESTSUITE);
        m_RootElement.setAttribute(ATTR_NAME, name);

        //add the timestamp
        final String timestamp = DateUtils.format(new Date(), DateUtils.ISO8601_DATETIME_PATTERN);
        m_RootElement.setAttribute(TIMESTAMP, timestamp);
        //and the hostname.
        m_RootElement.setAttribute(HOSTNAME, getHostname());

        // Output properties
        final Element propsElement = m_Doc.createElement(PROPERTIES);
        m_RootElement.appendChild(propsElement);
        final Properties props = System.getProperties();
        if (props != null) 
        {
            final Enumeration<?> e = props.propertyNames();
            while (e.hasMoreElements()) 
            {
                final String propName = (String)e.nextElement();
                final Element propElement = m_Doc.createElement(PROPERTY);
                propElement.setAttribute(ATTR_NAME, propName);
                propElement.setAttribute(ATTR_VALUE, props.getProperty(propName));
                propsElement.appendChild(propElement);
            }
        }
        
        m_OldStdOut = System.out;
        System.setOut(new PrintStream(m_TeeOutStream));
        m_OldStdErr = System.err;
        System.setErr(new PrintStream(m_TeeErrStream));
    }
/**
     * The whole test suite started.
     */
The whole test suite started.
The whole test suite started .
public void startTestSuite(final String name) 
    {
        m_Doc = getDocumentBuilder().newDocument();
        m_RootElement = m_Doc.createElement(TESTSUITE);
        m_RootElement.setAttribute(ATTR_NAME, name);
        final String timestamp = DateUtils.format(new Date(), DateUtils.ISO8601_DATETIME_PATTERN);
        m_RootElement.setAttribute(TIMESTAMP, timestamp);
        m_RootElement.setAttribute(HOSTNAME, getHostname());
        final Element propsElement = m_Doc.createElement(PROPERTIES);
        m_RootElement.appendChild(propsElement);
        final Properties props = System.getProperties();
        if (props != null) 
        {
            final Enumeration<?> e = props.propertyNames();
            while (e.hasMoreElements()) 
            {
                final String propName = (String)e.nextElement();
                final Element propElement = m_Doc.createElement(PROPERTY);
                propElement.setAttribute(ATTR_NAME, propName);
                propElement.setAttribute(ATTR_VALUE, props.getProperty(propName));
                propsElement.appendChild(propElement);
            }
        }
        m_OldStdOut = System.out;
        System.setOut(new PrintStream(m_TeeOutStream));
        m_OldStdErr = System.err;
        System.setErr(new PrintStream(m_TeeErrStream));
    }
public void startTestSuite ( final String name ) { m_Doc = getDocumentBuilder ( ) . newDocument ( ) ; m_RootElement = m_Doc . createElement ( TESTSUITE ) ; m_RootElement . setAttribute ( ATTR_NAME , name ) ; final String timestamp = DateUtils . format ( new Date ( ) , DateUtils . ISO8601_DATETIME_PATTERN ) ; m_RootElement . setAttribute ( TIMESTAMP , timestamp ) ; m_RootElement . setAttribute ( HOSTNAME , getHostname ( ) ) ; final Element propsElement = m_Doc . createElement ( PROPERTIES ) ; m_RootElement . appendChild ( propsElement ) ; final Properties props = System . getProperties ( ) ; if ( props != null ) { final Enumeration < ? > e = props . propertyNames ( ) ; while ( e . hasMoreElements ( ) ) { final String propName = ( String ) e . nextElement ( ) ; final Element propElement = m_Doc . createElement ( PROPERTY ) ; propElement . setAttribute ( ATTR_NAME , propName ) ; propElement . setAttribute ( ATTR_VALUE , props . getProperty ( propName ) ) ; propsElement . appendChild ( propElement ) ; } } m_OldStdOut = System . out ; System . setOut ( new PrintStream ( m_TeeOutStream ) ) ; m_OldStdErr = System . err ; System . setErr ( new PrintStream ( m_TeeErrStream ) ) ; }
The whole test suite started.
The whole test suite started .
// NOCHECKSTYLE: no documentation, file modified from 3rd party //add the timestamp //and the hostname. // Output properties