You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kr...@apache.org on 2013/01/08 15:55:18 UTC
[4/6] o Fixed testcase on windows. o Fixed 2.2.1 tests by splitting
report parser to separate module
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java
deleted file mode 100644
index feba245..0000000
--- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java
+++ /dev/null
@@ -1,274 +0,0 @@
-package org.apache.maven.plugins.surefire.report;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.io.File;
-import java.io.IOException;
-import java.text.NumberFormat;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import org.apache.maven.reporting.MavenReportException;
-import org.apache.maven.shared.utils.StringUtils;
-import org.apache.maven.shared.utils.io.DirectoryScanner;
-
-import javax.xml.parsers.ParserConfigurationException;
-
-import org.xml.sax.SAXException;
-
-/**
- *
- */
-public class SurefireReportParser
-{
- private static final String INCLUDES = "*.xml";
-
- private static final String EXCLUDES = "*.txt, testng-failed.xml, testng-failures.xml, testng-results.xml, failsafe-summary*.xml";
-
- private NumberFormat numberFormat = NumberFormat.getInstance();
-
- private List<File> reportsDirectories;
-
- private final List<ReportTestSuite> testSuites = new ArrayList<ReportTestSuite>();
-
- private static final int PCENT = 100;
-
- public SurefireReportParser()
- {
- }
-
- public SurefireReportParser( List<File> reportsDirectoriesFiles, Locale locale )
- {
- this.reportsDirectories = reportsDirectoriesFiles;
-
- setLocale( locale );
- }
-
- public List<ReportTestSuite> parseXMLReportFiles()
- throws MavenReportException
- {
- List<File> xmlReportFileList = new ArrayList<File>();
- for ( File reportsDirectory : reportsDirectories )
- {
- if ( !reportsDirectory.exists() )
- {
- continue;
- }
- String[] xmlReportFiles = getIncludedFiles( reportsDirectory, INCLUDES, EXCLUDES );
- for ( String xmlReportFile : xmlReportFiles )
- {
- File xmlReport = new File( reportsDirectory, xmlReportFile );
- xmlReportFileList.add( xmlReport );
- }
- }
- TestSuiteXmlParser parser = new TestSuiteXmlParser();
- for ( File aXmlReportFileList : xmlReportFileList )
- {
- Collection<ReportTestSuite> suites;
-
- try
- {
- suites = parser.parse( aXmlReportFileList.getAbsolutePath() );
- }
- catch ( ParserConfigurationException e )
- {
- throw new MavenReportException( "Error setting up parser for JUnit XML report", e );
- }
- catch ( SAXException e )
- {
- throw new MavenReportException( "Error parsing JUnit XML report " + aXmlReportFileList, e );
- }
- catch ( IOException e )
- {
- throw new MavenReportException( "Error reading JUnit XML report " + aXmlReportFileList, e );
- }
-
- testSuites.addAll( suites );
- }
-
- return testSuites;
- }
-
- protected String parseTestSuiteName( String lineString )
- {
- return lineString.substring( lineString.lastIndexOf( "." ) + 1, lineString.length() );
- }
-
- protected String parseTestSuitePackageName( String lineString )
- {
- return lineString.substring( lineString.indexOf( ":" ) + 2, lineString.lastIndexOf( "." ) );
- }
-
- protected String parseTestCaseName( String lineString )
- {
- return lineString.substring( 0, lineString.indexOf( "(" ) );
- }
-
- public Map<String, String> getSummary( List<ReportTestSuite> suites )
- {
- Map<String, String> totalSummary = new HashMap<String, String>();
-
- int totalNumberOfTests = 0;
-
- int totalNumberOfErrors = 0;
-
- int totalNumberOfFailures = 0;
-
- int totalNumberOfSkipped = 0;
-
- float totalElapsedTime = 0.0f;
-
- for ( ReportTestSuite suite : suites )
- {
- totalNumberOfTests += suite.getNumberOfTests();
-
- totalNumberOfErrors += suite.getNumberOfErrors();
-
- totalNumberOfFailures += suite.getNumberOfFailures();
-
- totalNumberOfSkipped += suite.getNumberOfSkipped();
-
- totalElapsedTime += suite.getTimeElapsed();
- }
-
- String totalPercentage =
- computePercentage( totalNumberOfTests, totalNumberOfErrors, totalNumberOfFailures, totalNumberOfSkipped );
-
- totalSummary.put( "totalTests", Integer.toString( totalNumberOfTests ) );
-
- totalSummary.put( "totalErrors", Integer.toString( totalNumberOfErrors ) );
-
- totalSummary.put( "totalFailures", Integer.toString( totalNumberOfFailures ) );
-
- totalSummary.put( "totalSkipped", Integer.toString( totalNumberOfSkipped ) );
-
- totalSummary.put( "totalElapsedTime", numberFormat.format( totalElapsedTime ) );
-
- totalSummary.put( "totalPercentage", totalPercentage );
-
- return totalSummary;
- }
-
- public void setReportsDirectory( File reportsDirectory )
- {
- this.reportsDirectories = Collections.singletonList( reportsDirectory );
- }
-
- public final void setLocale( Locale locale )
- {
- numberFormat = NumberFormat.getInstance( locale );
- }
-
- public NumberFormat getNumberFormat()
- {
- return this.numberFormat;
- }
-
- public Map<String, List<ReportTestSuite>> getSuitesGroupByPackage( List<ReportTestSuite> testSuitesList )
- {
- Map<String, List<ReportTestSuite>> suitePackage = new HashMap<String, List<ReportTestSuite>>();
-
- for ( ReportTestSuite suite : testSuitesList )
- {
- List<ReportTestSuite> suiteList = new ArrayList<ReportTestSuite>();
-
- if ( suitePackage.get( suite.getPackageName() ) != null )
- {
- suiteList = suitePackage.get( suite.getPackageName() );
- }
-
- suiteList.add( suite );
-
- suitePackage.put( suite.getPackageName(), suiteList );
- }
-
- return suitePackage;
- }
-
- public String computePercentage( int tests, int errors, int failures, int skipped )
- {
- float percentage;
- if ( tests == 0 )
- {
- percentage = 0;
- }
- else
- {
- percentage = ( (float) ( tests - errors - failures - skipped ) / (float) tests ) * PCENT;
- }
-
- return numberFormat.format( percentage );
- }
-
- public List<ReportTestCase> getFailureDetails( List<ReportTestSuite> testSuitesList )
- {
- List<ReportTestCase> failureDetailList = new ArrayList<ReportTestCase>();
-
- for ( ReportTestSuite suite : testSuitesList )
- {
- List<ReportTestCase> testCaseList = suite.getTestCases();
-
- if ( testCaseList != null )
- {
- for ( ReportTestCase tCase : testCaseList )
- {
-
- if ( tCase.getFailure() != null )
- {
- failureDetailList.add( tCase );
- }
- }
- }
- }
-
- return failureDetailList;
- }
-
- /**
- * Returns {@code true} if the specified directory contains at least one report file.
- *
- * @param directory the directory
- * @return {@code true} if the specified directory contains at least one report file.
- */
- public static boolean hasReportFiles( File directory )
- {
- return directory != null && directory.isDirectory()
- && getIncludedFiles( directory, INCLUDES, EXCLUDES ).length > 0;
- }
-
- private static String[] getIncludedFiles( File directory, String includes, String excludes )
- {
- DirectoryScanner scanner = new DirectoryScanner();
-
- scanner.setBasedir( directory );
-
- scanner.setIncludes( StringUtils.split( includes, "," ) );
-
- scanner.setExcludes( StringUtils.split( excludes, "," ) );
-
- scanner.scan();
-
- return scanner.getIncludedFiles();
- }
-}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java
deleted file mode 100644
index c2d8ee5..0000000
--- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java
+++ /dev/null
@@ -1,305 +0,0 @@
-package org.apache.maven.plugins.surefire.report;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.text.NumberFormat;
-import java.text.ParseException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import java.util.StringTokenizer;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.parsers.SAXParser;
-import javax.xml.parsers.SAXParserFactory;
-
-import org.xml.sax.Attributes;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- *
- */
-public class TestSuiteXmlParser
- extends DefaultHandler
-{
- private ReportTestSuite defaultSuite;
-
- private ReportTestSuite currentSuite;
-
- private Map<String, ReportTestSuite> classesToSuites;
-
- private final NumberFormat numberFormat = NumberFormat.getInstance( Locale.ENGLISH );
-
- /**
- * @noinspection StringBufferField
- */
- private StringBuffer currentElement;
-
- private ReportTestCase testCase;
-
- private boolean valid;
-
- public Collection<ReportTestSuite> parse( String xmlPath )
- throws ParserConfigurationException, SAXException, IOException
- {
-
- File f = new File( xmlPath );
-
- FileInputStream fileInputStream = new FileInputStream( f );
-
- try
- {
- return parse( fileInputStream );
- }
- finally
- {
- fileInputStream.close();
- }
- }
-
- public Collection<ReportTestSuite> parse( InputStream stream )
- throws ParserConfigurationException, SAXException, IOException
- {
- SAXParserFactory factory = SAXParserFactory.newInstance();
-
- SAXParser saxParser = factory.newSAXParser();
-
- valid = true;
-
- classesToSuites = new HashMap<String, ReportTestSuite>();
-
- saxParser.parse( stream, this );
-
- if ( currentSuite != defaultSuite )
- { // omit the defaultSuite if it's empty and there are alternatives
- if ( defaultSuite.getNumberOfTests() == 0 )
- {
- classesToSuites.remove( defaultSuite.getFullClassName() );
- }
- }
-
- return classesToSuites.values();
- }
-
- /**
- * {@inheritDoc}
- */
- public void startElement( String uri, String localName, String qName, Attributes attributes )
- throws SAXException
- {
- if ( !valid )
- {
- return;
- }
- try
- {
- if ( "testsuite".equals( qName ) )
- {
- currentSuite = defaultSuite = new ReportTestSuite();
-
- try
- {
- Number time = numberFormat.parse( attributes.getValue( "time" ) );
-
- defaultSuite.setTimeElapsed( time.floatValue() );
- }
- catch ( NullPointerException npe )
- {
- System.err.println( "WARNING: no time attribute found on testsuite element" );
- }
-
- //check if group attribute is existing
- if ( attributes.getValue( "group" ) != null && !"".equals( attributes.getValue( "group" ) ) )
- {
- String packageName = attributes.getValue( "group" );
- String name = attributes.getValue( "name" );
-
- defaultSuite.setFullClassName( packageName + "." + name );
- }
- else
- {
- String fullClassName = attributes.getValue( "name" );
- defaultSuite.setFullClassName( fullClassName );
- }
-
- classesToSuites.put( defaultSuite.getFullClassName(), defaultSuite );
- }
- else if ( "testcase".equals( qName ) )
- {
- currentElement = new StringBuffer();
-
- testCase = new ReportTestCase();
-
- testCase.setName( attributes.getValue( "name" ) );
-
- String fullClassName = attributes.getValue( "classname" );
-
- // if the testcase declares its own classname, it may need to belong to its own suite
- if ( fullClassName != null )
- {
- currentSuite = classesToSuites.get( fullClassName );
- if ( currentSuite == null )
- {
- currentSuite = new ReportTestSuite();
- currentSuite.setFullClassName( fullClassName );
- classesToSuites.put( fullClassName, currentSuite );
- }
- }
-
- testCase.setFullClassName( currentSuite.getFullClassName() );
- testCase.setClassName( currentSuite.getName() );
- testCase.setFullName( currentSuite.getFullClassName() + "." + testCase.getName() );
-
- String timeAsString = attributes.getValue( "time" );
-
- Number time = 0;
-
- if ( timeAsString != null )
- {
- time = numberFormat.parse( timeAsString );
- }
-
- testCase.setTime( time.floatValue() );
-
- if ( currentSuite != defaultSuite )
- {
- currentSuite.setTimeElapsed( time.floatValue() + currentSuite.getTimeElapsed() );
- }
- }
- else if ( "failure".equals( qName ) )
- {
- testCase.addFailure( attributes.getValue( "message" ), attributes.getValue( "type" ) );
- currentSuite.setNumberOfFailures( 1 + currentSuite.getNumberOfFailures() );
- }
- else if ( "error".equals( qName ) )
- {
- testCase.addFailure( attributes.getValue( "message" ), attributes.getValue( "type" ) );
- currentSuite.setNumberOfErrors( 1 + currentSuite.getNumberOfErrors() );
- }
- else if ( "skipped".equals( qName ) )
- {
- final String message = attributes.getValue( "message" );
- testCase.addFailure( message != null ? message : "skipped", "skipped" );
- currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
- }
- else if ( "failsafe-summary".equals( qName ) )
- {
- valid = false;
- }
- }
- catch ( ParseException e )
- {
- throw new SAXException( e.getMessage(), e );
- }
- }
-
- /**
- * {@inheritDoc}
- */
- public void endElement( String uri, String localName, String qName )
- throws SAXException
- {
- if ( "testcase".equals( qName ) )
- {
- currentSuite.getTestCases().add( testCase );
- }
- else if ( "failure".equals( qName ) )
- {
- Map<String, Object> failure = testCase.getFailure();
-
- failure.put( "detail", parseCause( currentElement.toString() ) );
- }
- else if ( "error".equals( qName ) )
- {
- Map<String, Object> error = testCase.getFailure();
-
- error.put( "detail", parseCause( currentElement.toString() ) );
- }
- else if ( "time".equals( qName ) )
- {
- try
- {
- Number time = numberFormat.parse( currentElement.toString() );
- defaultSuite.setTimeElapsed( time.floatValue() );
- }
- catch ( ParseException e )
- {
- throw new SAXException( e.getMessage(), e );
- }
- }
- // TODO extract real skipped reasons
- }
-
- /**
- * {@inheritDoc}
- */
- public void characters( char[] ch, int start, int length )
- throws SAXException
- {
- if ( !valid )
- {
- return;
- }
- String s = new String( ch, start, length );
-
- if ( !"".equals( s.trim() ) )
- {
- currentElement.append( s );
- }
- }
-
- private List<String> parseCause( String detail )
- {
- String fullName = testCase.getFullName();
- String name = fullName.substring( fullName.lastIndexOf( "." ) + 1 );
- return parseCause( detail, name );
- }
-
- private List<String> parseCause( String detail, String compareTo )
- {
- StringTokenizer stringTokenizer = new StringTokenizer( detail, "\n" );
- List<String> parsedDetail = new ArrayList<String>( stringTokenizer.countTokens() );
-
- while ( stringTokenizer.hasMoreTokens() )
- {
- String lineString = stringTokenizer.nextToken().trim();
- parsedDetail.add( lineString );
- if ( lineString.contains( compareTo ) )
- {
- break;
- }
- }
-
- return parsedDetail;
- }
-
- public boolean isValid()
- {
- return valid;
- }
-}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestCaseTest.java
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestCaseTest.java b/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestCaseTest.java
deleted file mode 100644
index ecf529a..0000000
--- a/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestCaseTest.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.apache.maven.plugins.surefire.report;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import junit.framework.TestCase;
-
-/**
- * @author Jontri
- */
-public class ReportTestCaseTest
- extends TestCase
-{
- private ReportTestCase tCase;
-
- /**
- * {@inheritDoc}
- */
- protected void setUp()
- throws Exception
- {
- super.setUp();
-
- tCase = new ReportTestCase();
- }
-
- /**
- * {@inheritDoc}
- */
- protected void tearDown()
- throws Exception
- {
- super.tearDown();
-
- tCase = null;
- }
-
- public void testSetName()
- {
- tCase.setName( "Test Case Name" );
-
- assertEquals( "Test Case Name", tCase.getName() );
- }
-
- public void testSetTime()
- {
- tCase.setTime( .06f );
-
- assertEquals( .06f, tCase.getTime(), 0.0 );
- }
-
- public void testSetFailure()
- {
- tCase.addFailure( "messageVal", "typeVal" );
-
- assertEquals( "messageVal", tCase.getFailure().get( "message" ) );
- assertEquals( "typeVal", tCase.getFailure().get( "type" ) );
- }
-
- public void testSetFullName()
- {
- tCase.setFullName( "Test Case Full Name" );
-
- assertEquals( "Test Case Full Name", tCase.getFullName() );
- }
-}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestSuiteTest.java
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestSuiteTest.java b/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestSuiteTest.java
deleted file mode 100644
index 63e6eac..0000000
--- a/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestSuiteTest.java
+++ /dev/null
@@ -1,118 +0,0 @@
-package org.apache.maven.plugins.surefire.report;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.util.ArrayList;
-import java.util.List;
-
-import junit.framework.TestCase;
-
-/**
- *
- */
-public class ReportTestSuiteTest
- extends TestCase
-{
- private ReportTestSuite tSuite;
-
- /**
- * {@inheritDoc}
- */
- protected void setUp()
- throws Exception
- {
- super.setUp();
-
- tSuite = new ReportTestSuite();
- }
-
- /**
- * {@inheritDoc}
- */
- protected void tearDown()
- throws Exception
- {
- super.tearDown();
-
- tSuite = null;
- }
-
- public void testSetTestCases()
- {
- ReportTestCase tCase = new ReportTestCase();
-
- List<ReportTestCase> tCaseList = new ArrayList<ReportTestCase>();
-
- tCaseList.add( tCase );
-
- tSuite.setTestCases( tCaseList );
-
- assertEquals( tCase, tSuite.getTestCases().get( 0 ) );
- }
-
- public void testSetNumberdOfErrors()
- {
- tSuite.setNumberOfErrors( 9 );
-
- assertEquals( 9, tSuite.getNumberOfErrors() );
- }
-
- public void testSetNumberOfFailures()
- {
- tSuite.setNumberOfFailures( 10 );
-
- assertEquals( 10, tSuite.getNumberOfFailures() );
- }
-
- public void testSetNumberOfSkipped()
- {
- tSuite.setNumberOfSkipped( 5 );
-
- assertEquals( 5, tSuite.getNumberOfSkipped() );
- }
-
- public void testSetNumberOfTests()
- {
- tSuite.setNumberOfTests( 11 );
-
- assertEquals( 11, tSuite.getNumberOfTests() );
- }
-
- public void testSetName()
- {
- tSuite.setName( "Suite Name" );
-
- assertEquals( "Suite Name", tSuite.getName() );
- }
-
- public void testSetPackageName()
- {
- tSuite.setPackageName( "Suite Package Name" );
-
- assertEquals( "Suite Package Name", tSuite.getPackageName() );
- }
-
- public void testSetTimeElapsed()
- {
- tSuite.setTimeElapsed( .06f );
-
- assertEquals( .06f, tSuite.getTimeElapsed(), 0.0 );
- }
-}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportParserTest.java
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportParserTest.java b/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportParserTest.java
deleted file mode 100644
index 2bd5248..0000000
--- a/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportParserTest.java
+++ /dev/null
@@ -1,242 +0,0 @@
-package org.apache.maven.plugins.surefire.report;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.io.File;
-import java.io.UnsupportedEncodingException;
-import java.net.URL;
-import java.net.URLDecoder;
-import java.text.NumberFormat;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import org.apache.maven.reporting.MavenReportException;
-
-import junit.framework.TestCase;
-
-/**
- *
- */
-public class SurefireReportParserTest
- extends TestCase
-{
- private SurefireReportParser report;
-
- /**
- * {@inheritDoc}
- */
- protected void setUp()
- throws Exception
- {
- super.setUp();
-
- report = new SurefireReportParser();
-
- report.setLocale( Locale.ENGLISH );
- }
-
- /**
- * {@inheritDoc}
- */
- protected void tearDown()
- throws Exception
- {
- super.tearDown();
-
- report = null;
- }
-
- public void testParseXMLReportFiles()
- throws MavenReportException, UnsupportedEncodingException
- {
- report.setReportsDirectory( getTestDir( "/test-reports" ) );
-
- List<ReportTestSuite> suites = report.parseXMLReportFiles();
-
- assertEquals( 8, suites.size() );
-
- for ( ReportTestSuite suite : suites )
- {
- assertNotNull( suite.getName() + " was not correctly parsed", suite.getTestCases() );
- assertNotNull( suite.getName() );
- assertNotNull( suite.getPackageName() );
- }
- }
-
- private File getTestDir( String path )
- throws UnsupportedEncodingException
- {
- URL resource = getClass().getResource( path );
- // URLDecoder.decode necessary for JDK 1.5+, where spaces are escaped to %20
- return new File( URLDecoder.decode( resource.getPath(), "UTF-8" ) ).getAbsoluteFile();
- }
-
- public void testParseTestSuiteName()
- {
- assertEquals( "CircleTest", report.parseTestSuiteName( "Battery: com.shape.CircleTest" ) );
- }
-
- public void testParseTestSuitePackageName()
- {
- assertEquals( "com.shape", report.parseTestSuitePackageName( "Battery: com.shape.CircleTest" ) );
- }
-
- public void testParseTestCaseName()
- {
- assertEquals( "testCase", report.parseTestCaseName( "testCase(com.shape.CircleTest)" ) );
- }
-
- public void testGetSummary()
- throws Exception
- {
- ReportTestSuite tSuite1 = new ReportTestSuite();
-
- ReportTestSuite tSuite2 = new ReportTestSuite();
-
- tSuite1.setNumberOfErrors( 10 );
-
- tSuite1.setNumberOfFailures( 20 );
-
- tSuite1.setNumberOfSkipped( 2 );
-
- tSuite1.setTimeElapsed( 1.0f );
-
- tSuite1.setNumberOfTests( 100 );
-
- tSuite2.setNumberOfErrors( 10 );
-
- tSuite2.setNumberOfFailures( 20 );
-
- tSuite2.setNumberOfSkipped( 2 );
-
- tSuite2.setTimeElapsed( 1.0f );
-
- tSuite2.setNumberOfTests( 100 );
-
- List<ReportTestSuite> suiteList = new ArrayList<ReportTestSuite>();
-
- suiteList.add( tSuite1 );
-
- suiteList.add( tSuite2 );
-
- Map<String, String> testMap = report.getSummary( suiteList );
-
- assertEquals( 20, Integer.parseInt( testMap.get( "totalErrors" ).toString() ) );
-
- assertEquals( 40, Integer.parseInt( testMap.get( "totalFailures" ).toString() ) );
-
- assertEquals( 200, Integer.parseInt( testMap.get( "totalTests" ).toString() ) );
-
- assertEquals( 4, Integer.parseInt( testMap.get( "totalSkipped" ).toString() ) );
-
- NumberFormat numberFormat = report.getNumberFormat();
-
- assertEquals( 2.0f, numberFormat.parse( testMap.get( "totalElapsedTime" ).toString() ).floatValue(), 0.0f );
-
- assertEquals( 68.00f, numberFormat.parse( (String) testMap.get( "totalPercentage" ) ).floatValue(), 0 );
- }
-
- public void testGetSuitesGroupByPackage()
- {
- ReportTestSuite tSuite1 = new ReportTestSuite();
-
- ReportTestSuite tSuite2 = new ReportTestSuite();
-
- ReportTestSuite tSuite3 = new ReportTestSuite();
-
- tSuite1.setPackageName( "Package1" );
-
- tSuite2.setPackageName( "Package1" );
-
- tSuite3.setPackageName( "Package2" );
-
- List<ReportTestSuite> suiteList = new ArrayList<ReportTestSuite>();
-
- suiteList.add( tSuite1 );
-
- suiteList.add( tSuite2 );
-
- suiteList.add( tSuite3 );
-
- Map<String, List<ReportTestSuite>> groupMap = report.getSuitesGroupByPackage( suiteList );
-
- assertEquals( 2, groupMap.size() );
-
- assertEquals( tSuite1, groupMap.get( "Package1" ).get( 0 ) );
-
- assertEquals( tSuite2, groupMap.get( "Package1" ).get( 1 ) );
-
- assertEquals( tSuite3, groupMap.get( "Package2" ).get( 0 ) );
- }
-
- public void testComputePercentage()
- throws Exception
- {
- NumberFormat numberFormat = report.getNumberFormat();
-
- assertEquals( 70.00f, numberFormat.parse( report.computePercentage( 100, 20, 10, 0 ) ).floatValue(), 0 );
- }
-
- public void testGetFailureDetails()
- {
- ReportTestSuite tSuite1 = new ReportTestSuite();
-
- ReportTestSuite tSuite2 = new ReportTestSuite();
-
- ReportTestCase tCase1 = new ReportTestCase();
-
- ReportTestCase tCase2 = new ReportTestCase();
-
- ReportTestCase tCase3 = new ReportTestCase();
-
- tCase1.addFailure( null, null );
-
- tCase3.addFailure( null, null );
-
- List<ReportTestCase> tCaseList = new ArrayList<ReportTestCase>();
-
- List<ReportTestCase> tCaseList2 = new ArrayList<ReportTestCase>();
-
- tCaseList.add( tCase1 );
-
- tCaseList.add( tCase2 );
-
- tCaseList2.add( tCase3 );
-
- tSuite1.setTestCases( tCaseList );
-
- tSuite2.setTestCases( tCaseList2 );
-
- List<ReportTestSuite> suiteList = new ArrayList<ReportTestSuite>();
-
- suiteList.add( tSuite1 );
-
- suiteList.add( tSuite2 );
-
- List<ReportTestCase> failList = report.getFailureDetails( suiteList );
-
- assertEquals( 2, failList.size() );
-
- assertEquals( tCase1, failList.get( 0 ) );
-
- assertEquals( tCase3, failList.get( 1 ) );
- }
-}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParserTest.java
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParserTest.java b/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParserTest.java
deleted file mode 100644
index a71158a..0000000
--- a/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParserTest.java
+++ /dev/null
@@ -1,132 +0,0 @@
-package org.apache.maven.plugins.surefire.report;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Collection;
-
-import javax.xml.parsers.ParserConfigurationException;
-
-import junit.framework.TestCase;
-import org.xml.sax.SAXException;
-
-/**
- * @author Kristian Rosenvold
- */
-public class TestSuiteXmlParserTest
- extends TestCase
-{
- public void testParse()
- throws Exception
- {
- TestSuiteXmlParser testSuiteXmlParser = new TestSuiteXmlParser();
- String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" +
- "<testsuite failures=\"4\" time=\"0.005\" errors=\"0\" skipped=\"0\" tests=\"4\" name=\"wellFormedXmlFailures.TestSurefire3\">\n"
- +
- " <properties>\n" +
- " <property name=\"java.runtime.name\" value=\"Java(TM) SE Runtime Environment\"/>\n" +
- " <property name=\"sun.cpu.isalist\" value=\"amd64\"/>\n" +
- " </properties>\n" +
- " <testcase time=\"0.005\" classname=\"wellFormedXmlFailures.TestSurefire3\" name=\"testLower\">\n" +
- " <failure message=\"<\" type=\"junit.framework.AssertionFailedError\"><![CDATA[junit.framework.AssertionFailedError: <\n"
- +
- "\tat junit.framework.Assert.fail(Assert.java:47)\n" +
- "\tat wellFormedXmlFailures.TestSurefire3.testLower(TestSurefire3.java:30)\n" +
- "]]></failure>\n" +
- " </testcase>\n" +
- " <testcase time=\"0\" classname=\"wellFormedXmlFailures.TestSurefire3\" name=\"testU0000\">\n" +
- " <failure message=\"&0#;\" type=\"junit.framework.AssertionFailedError\">junit.framework.AssertionFailedError: \n"
- +
- "\tat junit.framework.Assert.fail(Assert.java:47)\n" +
- "\tat wellFormedXmlFailures.TestSurefire3.testU0000(TestSurefire3.java:40)\n" +
- "</failure>\n" +
- " </testcase>\n" +
- " <testcase time=\"0\" classname=\"wellFormedXmlFailures.TestSurefire3\" name=\"testGreater\">\n" +
- " <failure message=\">\" type=\"junit.framework.AssertionFailedError\">junit.framework.AssertionFailedError: >\n"
- +
- "\tat junit.framework.Assert.fail(Assert.java:47)\n" +
- "\tat wellFormedXmlFailures.TestSurefire3.testGreater(TestSurefire3.java:35)\n" +
- "</failure>\n" +
- " </testcase>\n" +
- " <testcase time=\"0\" classname=\"wellFormedXmlFailures.TestSurefire3\" name=\"testQuote\">\n" +
- " <failure message=\""\" type=\"junit.framework.AssertionFailedError\">junit.framework.AssertionFailedError: \"\n"
- +
- "\tat junit.framework.Assert.fail(Assert.java:47)\n" +
- "\tat wellFormedXmlFailures.TestSurefire3.testQuote(TestSurefire3.java:25)\n" +
- "</failure>\n" +
- " </testcase>\n" +
- "</testsuite>";
- InputStream byteArrayIs = new ByteArrayInputStream( xml.getBytes() );
- Collection<ReportTestSuite> parse = testSuiteXmlParser.parse( byteArrayIs );
- }
-
- public void testParser()
- throws IOException, SAXException, ParserConfigurationException
- {
- TestSuiteXmlParser parser = new TestSuiteXmlParser();
-
- Collection<ReportTestSuite> oldResult = parser.parse(
- "src/test/resources/fixture/testsuitexmlparser/TEST-org.apache.maven.surefire.test.FailingTest.xml" );
-
- assertNotNull( oldResult );
-
- assertEquals( 1, oldResult.size() );
- ReportTestSuite next = oldResult.iterator().next();
- assertEquals( 2, next.getNumberOfTests() );
-
-
- }
-
- public void notTestParserBadFile() // Determine problem with xml file.
- throws IOException, SAXException, ParserConfigurationException
- {
- TestSuiteXmlParser parser = new TestSuiteXmlParser();
-
- Collection<ReportTestSuite> oldResult = parser.parse(
- "../surefire-integration-tests/target/Surefire224WellFormedXmlFailuresIT/testWellFormedXmlFailures/target/surefire-reports/TEST-wellFormedXmlFailures.TestSurefire3.xml" );
-
- assertNotNull( oldResult );
-
- assertEquals( 1, oldResult.size() );
- ReportTestSuite next = oldResult.iterator().next();
- assertEquals( 2, next.getNumberOfTests() );
-
-
- }
-
- public void testParserHitsFailsafeSummary()
- throws IOException, SAXException, ParserConfigurationException
- {
- TestSuiteXmlParser parser = new TestSuiteXmlParser();
-
- parser.parse( "src/test/resources/fixture/testsuitexmlparser/failsafe-summary.xml" );
-
- assertFalse( parser.isValid() );
-
- parser.parse(
- "src/test/resources/fixture/testsuitexmlparser/TEST-org.apache.maven.surefire.test.FailingTest.xml" );
-
- assertTrue( parser.isValid() );
- }
-
-
-}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/TEST-org.apache.maven.surefire.test.FailingTest.xml
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/TEST-org.apache.maven.surefire.test.FailingTest.xml b/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/TEST-org.apache.maven.surefire.test.FailingTest.xml
deleted file mode 100644
index 09c9c6d..0000000
--- a/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/TEST-org.apache.maven.surefire.test.FailingTest.xml
+++ /dev/null
@@ -1,154 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite failures="2" time="0.014" errors="0" skipped="0" tests="2" name="org.apache.maven.surefire.test.FailingTest">
- <properties>
- <property name="surefire.version" value="2.13-SNAPSHOT"/>
- <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
- <property name="sun.boot.library.path" value="c:\java\jdk1.7.0_09\jre\bin"/>
- <property name="java.vm.version" value="23.5-b02"/>
- <property name="user.country.format" value="NO"/>
- <property name="java.vm.vendor" value="Oracle Corporation"/>
- <property name="java.vendor.url" value="http://java.oracle.com/"/>
- <property name="path.separator" value=";"/>
- <property name="guice.disable.misplaced.annotation.check" value="true"/>
- <property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
- <property name="file.encoding.pkg" value="sun.io"/>
- <property name="user.script" value=""/>
- <property name="user.country" value="US"/>
- <property name="sun.java.launcher" value="SUN_STANDARD"/>
- <property name="sun.os.patch.level" value="Service Pack 1"/>
- <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
- <property name="user.dir" value="c:\workspace\maven-surefire\surefire-integration-tests\src\test\resources\surefire-803-multiFailsafeExec-failureInFirst"/>
- <property name="java.runtime.version" value="1.7.0_09-b05"/>
- <property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment"/>
- <property name="java.endorsed.dirs" value="c:\java\jdk1.7.0_09\jre\lib\endorsed"/>
- <property name="os.arch" value="amd64"/>
- <property name="java.io.tmpdir" value="C:\Users\krose\AppData\Local\Temp\"/>
- <property name="line.separator" value="
-"/>
- <property name="java.vm.specification.vendor" value="Oracle Corporation"/>
- <property name="user.variant" value=""/>
- <property name="os.name" value="Windows 7"/>
- <property name="classworlds.conf" value="c:/java/apache-maven-3.0.4/bin/m2.conf"/>
- <property name="sun.jnu.encoding" value="Cp1252"/>
- <property name="java.library.path" value="c:\java\jdk1.7.0_09\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;x:\bin;.;C:\java\Git\local\bin;C:\java\Git\mingw\bin;C:\java\Git\bin;c:\java\jdk1.7.0_09\bin;c:\java\Subversion;c:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;c:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;c:\Windows\system32;c:\Windows;c:\Windows\System32\Wbem;c:\Windows\System32\WindowsPowerShell\v1.0\;c:\java\jdk1.7.0_09\bin;c:\java\Subversion;c:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;c:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;c:\Windows\system32;c:\Windows;c:\Windows\System32\Wbem;c:\Windows\System32\WindowsPowerShell\v1.0\;c:\java\bin;."/>
- <property name="java.specification.name" value="Java Platform API Specification"/>
- <property name="java.class.version" value="51.0"/>
- <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
- <property name="os.version" value="6.1"/>
- <property name="user.home" value="C:\Users\krose"/>
- <property name="user.timezone" value="Europe/Paris"/>
- <property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob"/>
- <property name="java.specification.version" value="1.7"/>
- <property name="file.encoding" value="Cp1252"/>
- <property name="user.name" value="krose"/>
- <property name="java.class.path" value="c:/java/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar"/>
- <property name="java.vm.specification.version" value="1.7"/>
- <property name="sun.arch.data.model" value="64"/>
- <property name="java.home" value="c:\java\jdk1.7.0_09\jre"/>
- <property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -Dsurefire.version=2.13-SNAPSHOT clean verify"/>
- <property name="java.specification.vendor" value="Oracle Corporation"/>
- <property name="user.language" value="en"/>
- <property name="user.language.format" value="no"/>
- <property name="awt.toolkit" value="sun.awt.windows.WToolkit"/>
- <property name="java.vm.info" value="mixed mode"/>
- <property name="java.version" value="1.7.0_09"/>
- <property name="java.ext.dirs" value="c:\java\jdk1.7.0_09\jre\lib\ext;C:\Windows\Sun\Java\lib\ext"/>
- <property name="sun.boot.class.path" value="c:\java\jdk1.7.0_09\jre\lib\resources.jar;c:\java\jdk1.7.0_09\jre\lib\rt.jar;c:\java\jdk1.7.0_09\jre\lib\sunrsasign.jar;c:\java\jdk1.7.0_09\jre\lib\jsse.jar;c:\java\jdk1.7.0_09\jre\lib\jce.jar;c:\java\jdk1.7.0_09\jre\lib\charsets.jar;c:\java\jdk1.7.0_09\jre\lib\jfr.jar;c:\java\jdk1.7.0_09\jre\classes"/>
- <property name="java.vendor" value="Oracle Corporation"/>
- <property name="maven.home" value="c:\java\apache-maven-3.0.4"/>
- <property name="file.separator" value="\"/>
- <property name="java.vendor.url.bug" value="http://bugreport.sun.com/bugreport/"/>
- <property name="sun.cpu.endian" value="little"/>
- <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
- <property name="sun.desktop" value="windows"/>
- <property name="sun.cpu.isalist" value="amd64"/>
- </properties>
- <testcase time="0.013" classname="org.apache.maven.surefire.test.FailingTest" name="defaultTestValueIs_Value">
- <failure message="
-Expected: "wrong"
- got: "value"
-" type="java.lang.AssertionError">java.lang.AssertionError:
-Expected: "wrong"
- got: "value"
-
- at org.junit.Assert.assertThat(Assert.java:778)
- at org.junit.Assert.assertThat(Assert.java:736)
- at org.apache.maven.surefire.test.FailingTest.defaultTestValueIs_Value(FailingTest.java:23)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:601)
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
- at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
- at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
- at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:262)
- at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:151)
- at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:122)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:601)
- at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
- at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
- at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
- at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:128)
- at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:88)
-</failure>
- </testcase>
- <testcase time="0.001" classname="org.apache.maven.surefire.test.FailingTest" name="setTestAndRetrieveValue">
- <failure message="
-Expected: "bar"
- got: "foo"
-" type="java.lang.AssertionError">java.lang.AssertionError:
-Expected: "bar"
- got: "foo"
-
- at org.junit.Assert.assertThat(Assert.java:778)
- at org.junit.Assert.assertThat(Assert.java:736)
- at org.apache.maven.surefire.test.FailingTest.setTestAndRetrieveValue(FailingTest.java:34)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:601)
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
- at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
- at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
- at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:262)
- at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:151)
- at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:122)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:601)
- at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
- at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
- at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
- at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:128)
- at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:88)
-</failure>
- </testcase>
-</testsuite>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/failsafe-summary-old.xml
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/failsafe-summary-old.xml b/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/failsafe-summary-old.xml
deleted file mode 100644
index 6839aa9..0000000
--- a/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/failsafe-summary-old.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<failsafe-summary timeout="false">
- <completed>1</completed>
- <errors>0</errors>
- <failures>1</failures>
- <skipped>0</skipped>
- <failureMessage/>
-</failsafe-summary>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/failsafe-summary.xml
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/failsafe-summary.xml b/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/failsafe-summary.xml
deleted file mode 100644
index 1bc82d9..0000000
--- a/maven-surefire-report-plugin/src/test/resources/fixture/testsuitexmlparser/failsafe-summary.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<failsafe-summary timeout="false">
- <completed>4</completed>
- <errors>0</errors>
- <failures>2</failures>
- <skipped>0</skipped>
- <failureMessage/>
-</failsafe-summary>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-AntUnit.xml
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-AntUnit.xml b/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-AntUnit.xml
deleted file mode 100644
index 71e5342..0000000
--- a/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-AntUnit.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<testsuite buildFile="/home/pjanes/devel/maven/client/tools/tests/changebase.xml" hostname="merope"
- name="tests.changebase_xml" timestamp="2008-04-23T13:25:46">
- <testcase name="testNegativeValue">
- <time>0.378</time>
- </testcase>
- <tests>1</tests>
- <failures>0</failures>
- <errors>0</errors>
- <time>0.378</time>
-</testsuite>
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-NoPackageTest.xml
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-NoPackageTest.xml b/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-NoPackageTest.xml
deleted file mode 100644
index 4c0f831..0000000
--- a/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-NoPackageTest.xml
+++ /dev/null
@@ -1,256 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-
-<testsuite errors="0" tests="3" time="0.047" failures="3" name="NoPackageTest">
- <properties>
- <property value="Java(TM) 2 Runtime Environment, Standard Edition" name="java.runtime.name"/>
- <property value="c:\Program Files\Java\jdk1.5.0_06\jre\bin" name="sun.boot.library.path"/>
- <property value="1.5.0_06-b05" name="java.vm.version"/>
- <property value="Sun Microsystems Inc." name="java.vm.vendor"/>
- <property value="http://java.sun.com/" name="java.vendor.url"/>
- <property value=";" name="path.separator"/>
- <property value="Java HotSpot(TM) Client VM" name="java.vm.name"/>
- <property value="sun.io" name="file.encoding.pkg"/>
- <property value="US" name="user.country"/>
- <property value="Service Pack 2" name="sun.os.patch.level"/>
- <property value="Java Virtual Machine Specification" name="java.vm.specification.name"/>
- <property value="C:\dev\maven\plugins\maven-surefire-plugin\src\it\test3" name="user.dir"/>
- <property value="1.5.0_06-b05" name="java.runtime.version"/>
- <property value="sun.awt.Win32GraphicsEnvironment" name="java.awt.graphicsenv"/>
- <property value="C:\dev\maven\plugins\maven-surefire-plugin\src\it\test3" name="basedir"/>
- <property value="c:\Program Files\Java\jdk1.5.0_06\jre\lib\endorsed" name="java.endorsed.dirs"/>
- <property value="x86" name="os.arch"/>
- <property value="c:\DOCUME~1\csanchez\LOCALS~1\Temp\" name="java.io.tmpdir"/>
- <property value="
-" name="line.separator"/>
- <property value="Sun Microsystems Inc." name="java.vm.specification.vendor"/>
- <property value="" name="user.variant"/>
- <property value="Windows XP" name="os.name"/>
- <property value="c:\apps\maven-2.1-SNAPSHOT/bin/m2.conf" name="classworlds.conf"/>
- <property value="Cp1252" name="sun.jnu.encoding"/>
- <property
- value="c:\Program Files\Java\jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\apps\cygwin\usr\local\bin;C:\apps\cygwin\bin;C:\apps\cygwin\bin;C:\apps\cygwin\usr\X11R6\bin;c:\Program Files\ThinkPad\Utilities;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\ATI Technologies\ATI Control Panel;c:\WINDOWS\Downloaded Program Files;c:\Program Files\PC-Doctor for Windows\services;c:\Program Files\Subversion\bin;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\IBM ThinkVantage\Client Security Solution;c:\apps\jwsdp-1.6\jwsdp-shared\bin;c:\apps\apache-ant-1.6.5\bin;c:\apps\maven-1.1-beta-2\bin;c:\apps\maven-2.1-SNAPSHOT\bin;c:\Program Files\Java\jdk1.5.0_06\bin;c:\Program Files\putty;c:\Program Files\ThinkPad\Utilities;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\ATI Technologies\ATI Control Panel;c:\WINDOWS\Download
ed Program Files;c:\Program Files\PC-Doctor for Windows\services;c:\Program Files\Subversion\bin;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\IBM ThinkVantage\Client Security Solution"
- name="java.library.path"/>
- <property value="Java Platform API Specification" name="java.specification.name"/>
- <property value="49.0" name="java.class.version"/>
- <property value="HotSpot Client Compiler" name="sun.management.compiler"/>
- <property value="true" name="maven.test.failure.ignore"/>
- <property value="5.1" name="os.version"/>
- <property value="C:\Documents and Settings\csanchez" name="user.home"/>
- <property value="America/Los_Angeles" name="user.timezone"/>
- <property value="sun.awt.windows.WPrinterJob" name="java.awt.printerjob"/>
- <property value="Cp1252" name="file.encoding"/>
- <property value="1.5" name="java.specification.version"/>
- <property value="csanchez" name="user.name"/>
- <property value="c:\apps\maven-2.1-SNAPSHOT/core/boot/classworlds-1.1.jar" name="java.class.path"/>
- <property value="1.0" name="java.vm.specification.version"/>
- <property value="32" name="sun.arch.data.model"/>
- <property value="c:\Program Files\Java\jdk1.5.0_06\jre" name="java.home"/>
- <property value="Sun Microsystems Inc." name="java.specification.vendor"/>
- <property value="en" name="user.language"/>
- <property value="sun.awt.windows.WToolkit" name="awt.toolkit"/>
- <property value="mixed mode, sharing" name="java.vm.info"/>
- <property value="1.5.0_06" name="java.version"/>
- <property value="c:\Program Files\Java\jdk1.5.0_06\jre\lib\ext" name="java.ext.dirs"/>
- <property
- value="c:\Program Files\Java\jdk1.5.0_06\jre\lib\rt.jar;c:\Program Files\Java\jdk1.5.0_06\jre\lib\i18n.jar;c:\Program Files\Java\jdk1.5.0_06\jre\lib\sunrsasign.jar;c:\Program Files\Java\jdk1.5.0_06\jre\lib\jsse.jar;c:\Program Files\Java\jdk1.5.0_06\jre\lib\jce.jar;c:\Program Files\Java\jdk1.5.0_06\jre\lib\charsets.jar;c:\Program Files\Java\jdk1.5.0_06\jre\classes"
- name="sun.boot.class.path"/>
- <property value="Sun Microsystems Inc." name="java.vendor"/>
- <property value="c:\apps\maven-2.1-SNAPSHOT" name="maven.home"/>
- <property value="C:\Documents and Settings\csanchez\.m2\repository" name="localRepository"/>
- <property value="\" name="file.separator"/>
- <property value="http://java.sun.com/cgi-bin/bugreport.cgi" name="java.vendor.url.bug"/>
- <property value="little" name="sun.cpu.endian"/>
- <property value="UnicodeLittle" name="sun.io.unicode.encoding"/>
- <property value="windows" name="sun.desktop"/>
- <property value="pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86" name="sun.cpu.isalist"/>
- </properties>
- <testcase time="0" name="testQuote">
- <failure type="junit.framework.AssertionFailedError" message=""">junit.framework.AssertionFailedError: "
- at junit.framework.Assert.fail(Assert.java:47)
- at NoPackageTest.testQuote(NoPackageTest.java:23)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at junit.framework.TestCase.runTest(TestCase.java:154)
- at junit.framework.TestCase.runBare(TestCase.java:127)
- at junit.framework.TestResult$1.protect(TestResult.java:106)
- at junit.framework.TestResult.runProtected(TestResult.java:124)
- at junit.framework.TestResult.run(TestResult.java:109)
- at junit.framework.TestCase.run(TestCase.java:118)
- at junit.framework.TestSuite.runTest(TestSuite.java:208)
- at junit.framework.TestSuite.run(TestSuite.java:203)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
- at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
- at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:300)
- at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:216)
- at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:369)
- at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:867)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:739)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:510)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
- at
- org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:274)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
- at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
- at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
- at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
- at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
- at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
- at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
- </failure>
- </testcase>
- <testcase time="0" name="testLower">
- <failure type="junit.framework.AssertionFailedError" message="<">junit.framework.AssertionFailedError: <
- at junit.framework.Assert.fail(Assert.java:47)
- at NoPackageTest.testLower(NoPackageTest.java:28)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at junit.framework.TestCase.runTest(TestCase.java:154)
- at junit.framework.TestCase.runBare(TestCase.java:127)
- at junit.framework.TestResult$1.protect(TestResult.java:106)
- at junit.framework.TestResult.runProtected(TestResult.java:124)
- at junit.framework.TestResult.run(TestResult.java:109)
- at junit.framework.TestCase.run(TestCase.java:118)
- at junit.framework.TestSuite.runTest(TestSuite.java:208)
- at junit.framework.TestSuite.run(TestSuite.java:203)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
- at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
- at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:300)
- at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:216)
- at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:369)
- at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:867)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:739)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:510)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
- at
- org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:274)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
- at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
- at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
- at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
- at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
- at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
- at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
- </failure>
- </testcase>
- <testcase time="0" name="testGreater">
- <failure type="junit.framework.AssertionFailedError" message=">">junit.framework.AssertionFailedError: >
- at junit.framework.Assert.fail(Assert.java:47)
- at NoPackageTest.testGreater(NoPackageTest.java:33)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at junit.framework.TestCase.runTest(TestCase.java:154)
- at junit.framework.TestCase.runBare(TestCase.java:127)
- at junit.framework.TestResult$1.protect(TestResult.java:106)
- at junit.framework.TestResult.runProtected(TestResult.java:124)
- at junit.framework.TestResult.run(TestResult.java:109)
- at junit.framework.TestCase.run(TestCase.java:118)
- at junit.framework.TestSuite.runTest(TestSuite.java:208)
- at junit.framework.TestSuite.run(TestSuite.java:203)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
- at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
- at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
- at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:300)
- at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:216)
- at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:369)
- at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:867)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:739)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:510)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
- at
- org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:274)
- at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
- at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
- at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
- at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:585)
- at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
- at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
- at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
- at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
- </failure>
- </testcase>
-</testsuite>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/4dfdb08c/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-NoTimeTestCaseTest.xml
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-NoTimeTestCaseTest.xml b/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-NoTimeTestCaseTest.xml
deleted file mode 100644
index a36a19a..0000000
--- a/maven-surefire-report-plugin/src/test/resources/test-reports/TEST-NoTimeTestCaseTest.xml
+++ /dev/null
@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-
-<testsuite errors="0" tests="8" time="0.563" failures="0" name="NoTimeTestCaseTest">
- <properties>
- <property value="Java(TM) 2 Runtime Environment, Standard Edition" name="java.runtime.name"/>
- <property value="c:\Program Files\Java\jdk1.5.0_06\jre\bin" name="sun.boot.library.path"/>
- <property value="1.5.0_06-b05" name="java.vm.version"/>
- <property value="Sun Microsystems Inc." name="java.vm.vendor"/>
- <property value="http://java.sun.com/" name="java.vendor.url"/>
- <property value=";" name="path.separator"/>
- <property value="Java HotSpot(TM) Client VM" name="java.vm.name"/>
- <property value="sun.io" name="file.encoding.pkg"/>
- <property value="US" name="user.country"/>
- <property value="Service Pack 2" name="sun.os.patch.level"/>
- <property value="Java Virtual Machine Specification" name="java.vm.specification.name"/>
- <property value="c:\dev\test" name="user.dir"/>
- <property value="1.5.0_06-b05" name="java.runtime.version"/>
- <property value="sun.awt.Win32GraphicsEnvironment" name="java.awt.graphicsenv"/>
- <property value="c:\dev\test" name="basedir"/>
- <property value="c:\Program Files\Java\jdk1.5.0_06\jre\lib\endorsed" name="java.endorsed.dirs"/>
- <property value="x86" name="os.arch"/>
- <property value="c:\DOCUME~1\csanchez\LOCALS~1\Temp\" name="java.io.tmpdir"/>
- <property value="
-" name="line.separator"/>
- <property value="Sun Microsystems Inc." name="java.vm.specification.vendor"/>
- <property value="" name="user.variant"/>
- <property value="Windows XP" name="os.name"/>
- <property value="c:\apps\maven-2.0.5-SNAPSHOT/bin/m2.conf" name="classworlds.conf"/>
- <property value="Cp1252" name="sun.jnu.encoding"/>
- <property
- value="c:\Program Files\Java\jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\apps\cygwin\usr\local\bin;C:\apps\cygwin\bin;C:\apps\cygwin\bin;C:\apps\cygwin\usr\X11R6\bin;c:\Program Files\ThinkPad\Utilities;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\ATI Technologies\ATI Control Panel;c:\WINDOWS\Downloaded Program Files;c:\Program Files\PC-Doctor for Windows\services;c:\Program Files\Subversion\bin;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\IBM ThinkVantage\Client Security Solution;c:\Program Files\ThinkPad\ConnectUtilities;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\TortoiseCVS;c:\apps\graphviz-2.8\bin;c:\apps\jwsdp-1.6\jwsdp-shared\bin;c:\apps\apache-ant-1.6.5\bin;c:\apps\maven-1.1-beta-2\bin;c:\apps\maven-2.0.5-SNAPSHOT\bin;c:\Program Files\Java\jdk1.5.0_06\bin;c:\Program Files\putty;c:\Program Files\ThinkPad\Utilities;c:\WINDOWS\system32;c:\WINDO
WS;c:\WINDOWS\System32\Wbem;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\ATI Technologies\ATI Control Panel;c:\WINDOWS\Downloaded Program Files;c:\Program Files\PC-Doctor for Windows\services;c:\Program Files\Subversion\bin;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\Intel\Wireless\Bin\;c:\Program Files\IBM ThinkVantage\Client Security Solution;c:\Program Files\ThinkPad\ConnectUtilities;c:\Program Files\Intel\Wireless\Bin\"
- name="java.library.path"/>
- <property value="Java Platform API Specification" name="java.specification.name"/>
- <property value="49.0" name="java.class.version"/>
- <property value="HotSpot Client Compiler" name="sun.management.compiler"/>
- <property value="5.1" name="os.version"/>
- <property value="C:\Documents and Settings\csanchez" name="user.home"/>
- <property value="America/Los_Angeles" name="user.timezone"/>
- <property value="sun.awt.windows.WPrinterJob" name="java.awt.printerjob"/>
- <property value="Cp1252" name="file.encoding"/>
- <property value="1.5" name="java.specification.version"/>
- <property value="csanchez" name="user.name"/>
- <property value="c:\apps\maven-2.0.5-SNAPSHOT/core/boot/classworlds-1.1.jar" name="java.class.path"/>
- <property value="1.0" name="java.vm.specification.version"/>
- <property value="32" name="sun.arch.data.model"/>
- <property value="c:\Program Files\Java\jdk1.5.0_06\jre" name="java.home"/>
- <property value="Sun Microsystems Inc." name="java.specification.vendor"/>
- <property value="en" name="user.language"/>
- <property value="sun.awt.windows.WToolkit" name="awt.toolkit"/>
- <property value="mixed mode" name="java.vm.info"/>
- <property value="1.5.0_06" name="java.version"/>
- <property value="c:\Program Files\Java\jdk1.5.0_06\jre\lib\ext" name="java.ext.dirs"/>
- <property
- value="c:\Program Files\Java\jdk1.5.0_06\jre\lib\rt.jar;c:\Program Files\Java\jdk1.5.0_06\jre\lib\i18n.jar;c:\Program Files\Java\jdk1.5.0_06\jre\lib\sunrsasign.jar;c:\Program Files\Java\jdk1.5.0_06\jre\lib\jsse.jar;c:\Program Files\Java\jdk1.5.0_06\jre\lib\jce.jar;c:\Program Files\Java\jdk1.5.0_06\jre\lib\charsets.jar;c:\Program Files\Java\jdk1.5.0_06\jre\classes"
- name="sun.boot.class.path"/>
- <property value="Sun Microsystems Inc." name="java.vendor"/>
- <property value="c:\apps\maven-2.0.5-SNAPSHOT" name="maven.home"/>
- <property value="C:\Documents and Settings\csanchez\.m2\repository" name="localRepository"/>
- <property value="\" name="file.separator"/>
- <property value="http://java.sun.com/cgi-bin/bugreport.cgi" name="java.vendor.url.bug"/>
- <property value="little" name="sun.cpu.endian"/>
- <property value="UnicodeLittle" name="sun.io.unicode.encoding"/>
- <property value="windows" name="sun.desktop"/>
- <property value="pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86" name="sun.cpu.isalist"/>
- </properties>
- <testcase time="0" name="test1"/>
- <testcase time="0" name="test2"/>
- <testcase time="0" name="test3"/>
- <testcase time="0" name="test4"/>
- <testcase time="0" name="test5"/>
- <testcase name="test7"/>
- <testcase name="testResults"/>
- <testcase time="0.5" name="test6"/>
-</testsuite>
\ No newline at end of file