Examples of XMLReporter


Examples of javax.xml.stream.XMLReporter

            log.warn(sb.toString());
        }
        if (configuration.isStrict()) {
            throw new ModelException(sb.toString());
        }
        XMLReporter reporter = configuration.reporter;
        if (reporter != null) {
            reporter.report(sb.toString(), "COMMONS_SCXML", null, reader.getLocation());
        }
    }
View Full Code Here

Examples of javax.xml.stream.XMLReporter

        // Probably no point in comparing at all... is there?
        // But we can report a possible problem?
        String extEnc = _config.getExternalEncoding();
        if (extEnc != null && enc != null
            && !extEnc.equalsIgnoreCase(enc)) {
            XMLReporter rep = _config.getXMLReporter();
            if (rep != null) {
                Location loc = getLocation();
                rep.report(MessageFormat.format(ErrorConsts.W_MIXED_ENCODINGS,
                                                new Object[] { extEnc, enc }),
                           ErrorConsts.WT_XML_DECL,
                           this, loc);
            }
        }
View Full Code Here

Examples of javax.xml.stream.XMLReporter

        doReportProblem(mConfig.getXMLReporter(), probType, msg, null);
    }

    public void reportProblem(String probType, String format, Object arg)
    {
        XMLReporter rep = mConfig.getXMLReporter();
        if (rep != null) {
            doReportProblem(rep, probType,
                            MessageFormat.format(format, new Object[] { arg }),
                            null);
        }
View Full Code Here

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

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

    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

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

    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

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

    {
        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

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

     */
    public MavenTestRunner()
    {
        String dir = System.getProperty( "surefire.reports" );
        List<Reporter> reports = new ArrayList<Reporter>();
        reports.add( new XMLReporter( new File( dir ), false ) );
        reports.add( new FileReporter( new File( dir ), false ) );
        reports.add( new BriefConsoleReporter( true ) );
        reportManager = new ReporterManager( reports );
    }
View Full Code Here

Examples of org.testng.reporters.XMLReporter

    m_testListeners.add(new ExitCodeListener(this));
   
    if(m_useDefaultListeners) {
      m_reporters.add(new SuiteHTMLReporter());
      m_reporters.add(new FailedReporter());
      m_reporters.add(new XMLReporter());
      m_reporters.add(new EmailableReporter());
    }
  }
View Full Code Here

Examples of org.testng.reporters.XMLReporter

    m_testListeners.add(new ExitCodeListener(this));
   
    if(m_useDefaultListeners) {
      m_reporters.add(new SuiteHTMLReporter());
      m_reporters.add(new FailedReporter());
      m_reporters.add(new XMLReporter());
      m_reporters.add(new EmailableReporter());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.