Package org.apache.maven.plugin.surefire.report

Examples of org.apache.maven.plugin.surefire.report.XMLReporter


    public XMLReporter instantiateXmlReporter()
    {
        if ( !isDisableXmlReport() )
        {
            return new XMLReporter( trimStackTrace, reportsDirectory, reportNameSuffix );
        }
        return null;
    }
View Full Code Here


    protected void setUp()
        throws Exception
    {
        super.setUp();
        reporter = new XMLReporter( true, new File( "." ) );
        message = "junit.framework.AssertionFailedError";
        reportEntry = new SimpleReportEntry( this.getClass().getName(), "XMLReporterTest",
                                             new PojoStackTraceWriter( "", "", new AssertionFailedError() ),
                                             new Integer( 17 ) );
    }
View Full Code Here

    public void testFileNameWithoutSuffix()
    {
        File reportDir = new File( "." );
        String testName = "org.apache.maven.surefire.report.XMLReporterTest";
        reportEntry = new SimpleReportEntry( this.getClass().getName(), testName, new Integer( 12 ) );
        reporter = new XMLReporter( true, reportDir, null );
        reporter.testSetCompleted( reportEntry );

        File expectedReportFile = new File( reportDir, "TEST-" + testName + ".xml" );
        assertTrue( "Report file (" + expectedReportFile.getAbsolutePath() + ") doesn't exist",
                    expectedReportFile.exists() );
View Full Code Here

    {
        File reportDir = new File( "." );
        String testName = "org.apache.maven.surefire.report.XMLReporterTest";
        String suffixText = "sampleSuffixText";
        reportEntry = new SimpleReportEntry( this.getClass().getName(), testName );
        reporter = new XMLReporter( true, reportDir, suffixText );
        reporter.testSetCompleted( reportEntry );

        File expectedReportFile = new File( reportDir, "TEST-" + testName + "-" + suffixText + ".xml" );
        assertTrue( "Report file (" + expectedReportFile.getAbsolutePath() + ") doesn't exist",
                    expectedReportFile.exists() );
View Full Code Here

TOP

Related Classes of org.apache.maven.plugin.surefire.report.XMLReporter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.