Package org.apache.maven.surefire.report

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


            }
        }
        catch ( Throwable e )
        {
            reporter.testError( SimpleReportEntry.withException( report.getSourceName(), report.getName(),
                                                                 new PojoStackTraceWriter( report.getSourceName(),
                                                                                           report.getName(), e ) ) );
        }
        finally
        {
            reporter.testSetCompleted( report );
View Full Code Here


    }

    public void onTestFailure( ITestResult result )
    {
        ReportEntry report = SimpleReportEntry.withException( getSource( result ), getUserFriendlyTestName( result ),
                                                              new PojoStackTraceWriter(
                                                                  result.getTestClass().getRealClass().getName(),
                                                                  result.getMethod().getMethodName(),
                                                                  result.getThrowable() ) );

        reporter.testFailed( report );
View Full Code Here

    }

    public void onTestFailedButWithinSuccessPercentage( ITestResult result )
    {
        ReportEntry report = SimpleReportEntry.withException( getSource( result ), getUserFriendlyTestName( result ),
                                                              new PojoStackTraceWriter(
                                                                  result.getTestClass().getRealClass().getName(),
                                                                  result.getMethod().getMethodName(),
                                                                  result.getThrowable() ) );

        reporter.testSucceeded( report );
View Full Code Here

        String testName = "UNKNOWN";
        if ( test instanceof TestSuite )
        {
            testName = ( (TestSuite) test ).getName();
        }
        return new PojoStackTraceWriter( name, testName, t );
    }
View Full Code Here

            throw e;
        }
        catch ( Throwable e )
        {
            reporter.testError( SimpleReportEntry.withException( report.getSourceName(), report.getName(),
                                                                 new PojoStackTraceWriter( report.getSourceName(),
                                                                                           report.getName(), e ) ) );
        }
        finally
        {
            reporter.testSetCompleted( report );
View Full Code Here

    }

    public void onTestFailure( ITestResult result )
    {
        ReportEntry report = SimpleReportEntry.withException( getSource( result ), getUserFriendlyTestName( result ),
                                                              new PojoStackTraceWriter(
                                                                  result.getTestClass().getRealClass().getName(),
                                                                  result.getMethod().getMethodName(),
                                                                  result.getThrowable() ) );

        reporter.testFailed( report );
View Full Code Here

    }

    public void onTestFailedButWithinSuccessPercentage( ITestResult result )
    {
        ReportEntry report = SimpleReportEntry.withException( getSource( result ), getUserFriendlyTestName( result ),
                                                              new PojoStackTraceWriter(
                                                                  result.getTestClass().getRealClass().getName(),
                                                                  result.getMethod().getMethodName(),
                                                                  result.getThrowable() ) );

        reporter.testError( report );
View Full Code Here

TOP

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

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.