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

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


    public TestcycleConsoleOutputReceiver instantiateConsoleOutputFileReporter()
    {
        if ( isRedirectTestOutputToFile() )
        {
            return new ConsoleOutputFileReporter( reportsDirectory, getReportNameSuffix() );
        }
        else
        {
            return new DirectConsoleOutput( originalSystemOut, originalSystemErr );
        }
View Full Code Here


     */
    public void testFileNameWithoutSuffix()
    {
        File reportDir = new File( System.getProperty( "java.io.tmpdir" ) );
        reportEntry = new SimpleReportEntry( this.getClass().getName(), testName );
        reporter = new ConsoleOutputFileReporter( reportDir, null );
        reporter.testSetStarting( reportEntry );
        reporter.writeTestOutput( "some text".getBytes(), 0, 5, true );
        reporter.testSetCompleted( reportEntry );

        File expectedReportFile = new File( reportDir, testName + "-output.txt" );
View Full Code Here

    public void testFileNameWithSuffix()
    {
        File reportDir = new File( System.getProperty( "java.io.tmpdir" ) );
        String suffixText = "sampleSuffixText";
        reportEntry = new SimpleReportEntry( this.getClass().getName(), testName );
        reporter = new ConsoleOutputFileReporter( reportDir, suffixText );
        reporter.testSetStarting( reportEntry );
        reporter.writeTestOutput( "some text".getBytes(), 0, 5, true );
        reporter.testSetCompleted( reportEntry );

        File expectedReportFile = new File( reportDir, testName + "-" + suffixText + "-output.txt" );
View Full Code Here

    public Reporter instantiateConsoleOutputFileReporter( PrintStream originalSystemOut )
    {
        if ( isRedirectTestOutputToFile() )
        {
            return new ConsoleOutputFileReporter( reportsDirectory, getReportNameSuffix() );
        }
        else
        {
            return new ConsoleOutputDirectReporter( originalSystemOut );
        }
View Full Code Here

     */
    public void testFileNameWithoutSuffix()
    {
        File reportDir = new File( System.getProperty( "java.io.tmpdir" ) );
        reportEntry = new SimpleReportEntry( this.getClass().getName(), testName );
        reporter = new ConsoleOutputFileReporter( reportDir );
        reporter.testSetStarting( reportEntry );
        reporter.writeMessage( "some text".getBytes(), 0, 5 );
        reporter.testSetCompleted( reportEntry );

        File expectedReportFile = new File( reportDir, testName + "-output.txt" );
View Full Code Here

    public void testFileNameWithSuffix()
    {
        File reportDir = new File( System.getProperty( "java.io.tmpdir" ) );
        String suffixText = "sampleSuffixText";
        reportEntry = new SimpleReportEntry( this.getClass().getName(), testName );
        reporter = new ConsoleOutputFileReporter( reportDir, suffixText );
        reporter.testSetStarting( reportEntry );
        reporter.writeMessage( "some text".getBytes(), 0, 5 );
        reporter.testSetCompleted( reportEntry );

        File expectedReportFile = new File( reportDir, testName + "-" + suffixText + "-output.txt" );
View Full Code Here

    public TestcycleConsoleOutputReceiver instantiateConsoleOutputFileReporter()
    {
        if ( isRedirectTestOutputToFile() )
        {
            return new ConsoleOutputFileReporter( reportsDirectory, getReportNameSuffix() );
        }
        else
        {
            return new DirectConsoleOutput( originalSystemOut, originalSystemErr );
        }
View Full Code Here

    public TestcycleConsoleOutputReceiver instantiateConsoleOutputFileReporter()
    {
        if ( isRedirectTestOutputToFile() )
        {
            return new ConsoleOutputFileReporter( reportsDirectory, getReportNameSuffix() );
        }
        else
        {
            return new DirectConsoleOutput( originalSystemOut, originalSystemErr );
        }
View Full Code Here

    public TestcycleConsoleOutputReceiver instantiateConsoleOutputFileReporter()
    {
        if ( isRedirectTestOutputToFile() )
        {
            return new ConsoleOutputFileReporter( reportsDirectory, getReportNameSuffix() );
        }
        else
        {
            return new DirectConsoleOutput( originalSystemOut, originalSystemErr );
        }
View Full Code Here

TOP

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

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.