Package org.apache.maven.surefire.report

Examples of org.apache.maven.surefire.report.CategorizedReportEntry


    public void onTestStart( ITestResult result )
    {
        String rawString = bundle.getString( "testStarting" );
        String group = groupString( result.getMethod().getGroups(), result.getTestClass().getName() );
        ReportEntry report =
            new CategorizedReportEntry( getSource( result ), getUserFriendlyTestName( result ), group );
        reporter.testStarting( report );
    }
View Full Code Here


        }
    }

    private ReportEntry createReportEntry( ReportEntry reportEntry )
    {
        return new CategorizedReportEntry( reportEntry.getSourceName(), reportEntry.getName(), reportEntry.getGroup(),
                                           reportEntry.getStackTraceWriter(), getElapsed(), reportEntry.getMessage() );
    }
View Full Code Here

        }
        catch ( RuntimeException e )
        {
            StackTraceWriter stackTraceWriter =
                new LegacyPojoStackTraceWriter( "org.apache.tests.TestClass", "testMethod11", e );
            return new CategorizedReportEntry( "com.abc.TestClass", "testMethod", "aGroup", stackTraceWriter, 77 );
        }
    }
View Full Code Here

        }
        catch ( RuntimeException e )
        {
            StackTraceWriter stackTraceWriter =
                new LegacyPojoStackTraceWriter( "org.apache.tests.TestClass", "testMethod11", e );
            return new CategorizedReportEntry( "com.abc.TestClass", "testMethod", "aGroup", stackTraceWriter, 77 );
        }
    }
View Full Code Here

    }

    private ReportEntry createReportEntry()
    {
        int elapsed = (int) ( endTime - startTime );
        return new CategorizedReportEntry( description.getSourceName(), description.getName(), description.getGroup(),
                                           description.getStackTraceWriter(), elapsed, description.getMessage() );
    }
View Full Code Here

    {
        if ( other.getElapsed() != null )
        {
            return other;
        }
        return new CategorizedReportEntry( other.getSourceName(), other.getName(), other.getGroup(),
                                           other.getStackTraceWriter(),
                                           (int) ( System.currentTimeMillis() - this.lastStartAt ),
                                           other.getMessage() );
    }
View Full Code Here

            Integer elapsed = "null".equals( elapsedStr ) ? null : Integer.decode( elapsedStr );
            final StackTraceWriter stackTraceWriter =
                tokens.hasMoreTokens() ? deserializeStackStraceWriter( tokens ) : null;

            return group != null
                ? new CategorizedReportEntry( source, name, group, stackTraceWriter, elapsed, message )
                : new SimpleReportEntry( source, name, stackTraceWriter, elapsed, message );
        }
        catch ( RuntimeException e )
        {
            throw new RuntimeException( untokenized, e );
View Full Code Here

    public void onTestStart( ITestResult result )
    {
        String rawString = bundle.getString( "testStarting" );
        String group = groupString( result.getMethod().getGroups(), result.getTestClass().getName() );
        ReportEntry report =
            new CategorizedReportEntry( getSource( result ), getUserFriendlyTestName( result ), group );
        reporter.testStarting( report );
    }
View Full Code Here

        }
        catch ( RuntimeException e )
        {
            StackTraceWriter stackTraceWriter =
                new PojoStackTraceWriter( "org.apache.tests.TestClass", "testMethod11", e );
            return new CategorizedReportEntry( "com.abc.TestClass", "testMethod", "aGroup", stackTraceWriter,
                                               new Integer( 77 ) );
        }
    }
View Full Code Here

        }
        catch ( RuntimeException e )
        {
            StackTraceWriter stackTraceWriter =
                new PojoStackTraceWriter( "org.apache.tests.TestClass", "testMethod11", e );
            return new CategorizedReportEntry( "com.abc.TestClass", "testMethod", "aGroup", stackTraceWriter,
                                               new Integer( 77 ) );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.surefire.report.CategorizedReportEntry

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.