maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r803879 - in /maven/surefire/trunk/maven-surefire-report-plugin/src: main/java/org/apache/maven/plugins/surefire/report/ test/java/org/apache/maven/plugins/surefire/report/ test/java/org/apache/maven/plugins/surefire/report/stubs/
Date Thu, 13 Aug 2009 13:43:01 GMT
Author: vsiveton
Date: Thu Aug 13 13:43:01 2009
New Revision: 803879

URL: http://svn.apache.org/viewvc?rev=803879&view=rev
Log:
o javadoc

Modified:
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestCase.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestSuite.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportMojo.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportOnlyMojo.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestCaseTest.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestSuiteTest.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportMojoTest.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportParserTest.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/SurefireRepMavenProjectStub.java
    maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/SurefireRepMavenProjectStub2.java

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestCase.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestCase.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestCase.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestCase.java
Thu Aug 13 13:43:01 2009
@@ -22,6 +22,9 @@
 import java.util.HashMap;
 import java.util.Map;
 
+/**
+ * @version $Id$
+ */
 public class ReportTestCase
 {
     private String fullClassName;
@@ -97,7 +100,8 @@
         failure.put( "message", message );
         failure.put( "type", type );
     }
-    
+
+    /** {@inheritDoc} */
     public String toString()
     {
         return fullName;

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestSuite.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestSuite.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestSuite.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/ReportTestSuite.java
Thu Aug 13 13:43:01 2009
@@ -22,6 +22,9 @@
 import java.util.ArrayList;
 import java.util.List;
 
+/**
+ * @version $Id$
+ */
 public class ReportTestSuite
 {
     private List testCases = new ArrayList();
@@ -41,7 +44,7 @@
     private String packageName;
 
     private float timeElapsed;
-    
+
     public List getTestCases()
     {
         return this.testCases;
@@ -108,9 +111,9 @@
     {
         this.fullClassName = fullClassName;
         int lastDotPosition = fullClassName.lastIndexOf( "." );
-        
+
         name = fullClassName.substring( lastDotPosition + 1, fullClassName.length() );
-        
+
         if ( lastDotPosition < 0 )
         {
             /* no package name */
@@ -146,7 +149,8 @@
     {
         this.testCases = testCases;
     }
-    
+
+    /** {@inheritDoc} */
     public String toString()
     {
         return fullClassName + " ["+getNumberOfTests()+"/"+getNumberOfFailures()+"/"+getNumberOfErrors()+"/"+getNumberOfSkipped()+"]";

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java
Thu Aug 13 13:43:01 2009
@@ -32,6 +32,9 @@
 import java.util.ResourceBundle;
 import java.util.StringTokenizer;
 
+/**
+ * @version $Id$
+ */
 public class SurefireReportGenerator
 {
     private SurefireReportParser report;

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportMojo.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportMojo.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportMojo.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportMojo.java
Thu Aug 13 13:43:01 2009
@@ -129,6 +129,7 @@
      */
     private boolean aggregate;
 
+    /** {@inheritDoc} */
     public void executeReport( Locale locale )
         throws MavenReportException
     {
@@ -219,31 +220,37 @@
         return location;
     }
 
+    /** {@inheritDoc} */
     public String getName( Locale locale )
     {
         return getBundle( locale ).getString( "report.surefire.name" );
     }
 
+    /** {@inheritDoc} */
     public String getDescription( Locale locale )
     {
         return getBundle( locale ).getString( "report.surefire.description" );
     }
 
+    /** {@inheritDoc} */
     protected Renderer getSiteRenderer()
     {
         return siteRenderer;
     }
 
+    /** {@inheritDoc} */
     protected MavenProject getProject()
     {
         return project;
     }
 
+    /** {@inheritDoc} */
     public String getOutputName()
     {
         return outputName;
     }
 
+    /** {@inheritDoc} */
     protected String getOutputDirectory()
     {
         return outputDirectory.getAbsolutePath();
@@ -253,5 +260,4 @@
     {
         return ResourceBundle.getBundle( "surefire-report", locale, this.getClass().getClassLoader()
);
     }
-
 }

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportOnlyMojo.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportOnlyMojo.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportOnlyMojo.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportOnlyMojo.java
Thu Aug 13 13:43:01 2009
@@ -26,6 +26,7 @@
  * <a href="http://jira.codehaus.org/browse/MSUREFIREREP-6">http://jira.codehaus.org/browse/MSUREFIREREP-6</a>
  *
  * @author <a href="mailto:baerrach@gmail.com">Barrie Treloar</a>
+ * @version $Id$
  * @goal report-only
  * @execute phase="validate" lifecycle="surefire"
  * @since 2.3

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportParser.java
Thu Aug 13 13:43:01 2009
@@ -37,6 +37,9 @@
 import org.codehaus.plexus.util.StringUtils;
 import org.xml.sax.SAXException;
 
+/**
+ * @version $Id$
+ */
 public class SurefireReportParser
 {
     private NumberFormat numberFormat = NumberFormat.getInstance();
@@ -173,7 +176,7 @@
     {
         this.reportsDirectories = new File[] { reportsDirectory };
     }
-    
+
     public void setReportsDirectories( File[] reportsDirectories )
     {
         this.reportsDirectories = reportsDirectories;

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/TestSuiteXmlParser.java
Thu Aug 13 13:43:01 2009
@@ -38,6 +38,9 @@
 import org.xml.sax.SAXException;
 import org.xml.sax.helpers.DefaultHandler;
 
+/**
+ * @version $Id$
+ */
 public class TestSuiteXmlParser
     extends DefaultHandler
 {
@@ -59,22 +62,23 @@
         SAXParserFactory factory = SAXParserFactory.newInstance();
 
         SAXParser saxParser = factory.newSAXParser();
-        
+
         classesToSuites = new HashMap();
 
         saxParser.parse( new File( xmlPath ), this );
-        
+
         if ( currentSuite != defaultSuite )
         { // omit the defaultSuite if it's empty and there are alternatives
-            if ( defaultSuite.getNumberOfTests() == 0 ) 
+            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
     {
@@ -116,11 +120,11 @@
                 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 )
                 {
@@ -132,7 +136,7 @@
                         classesToSuites.put( fullClassName, currentSuite );
                     }
                 }
-                
+
                 testCase.setFullClassName( currentSuite.getFullClassName() );
                 testCase.setClassName( currentSuite.getName() );
                 testCase.setFullName( currentSuite.getFullClassName() + "." + testCase.getName()
);
@@ -174,7 +178,7 @@
         }
     }
 
-
+    /** {@inheritDoc} */
     public void endElement( String uri, String localName, String qName )
         throws SAXException
     {
@@ -208,6 +212,7 @@
         // TODO extract real skipped reasons
     }
 
+    /** {@inheritDoc} */
     public void characters( char[] ch, int start, int length )
         throws SAXException
     {

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestCaseTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestCaseTest.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestCaseTest.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestCaseTest.java
Thu Aug 13 13:43:01 2009
@@ -23,12 +23,14 @@
 
 /**
  * @author Jontri
+ * @version $Id$
  */
 public class ReportTestCaseTest
     extends TestCase
 {
     private ReportTestCase tCase;
 
+    /** {@inheritDoc} */
     protected void setUp()
         throws Exception
     {
@@ -37,6 +39,15 @@
         tCase = new ReportTestCase();
     }
 
+    /** {@inheritDoc} */
+    protected void tearDown()
+        throws Exception
+    {
+        super.tearDown();
+
+        tCase = null;
+    }
+
     public void testSetName()
     {
         tCase.setName( "Test Case Name" );

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestSuiteTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestSuiteTest.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestSuiteTest.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/ReportTestSuiteTest.java
Thu Aug 13 13:43:01 2009
@@ -24,11 +24,15 @@
 import java.util.ArrayList;
 import java.util.List;
 
+/**
+ * @version $Id$
+ */
 public class ReportTestSuiteTest
     extends TestCase
 {
     private ReportTestSuite tSuite;
 
+    /** {@inheritDoc} */
     protected void setUp()
         throws Exception
     {
@@ -37,6 +41,15 @@
         tSuite = new ReportTestSuite();
     }
 
+    /** {@inheritDoc} */
+    protected void tearDown()
+        throws Exception
+    {
+        super.tearDown();
+
+        tSuite = null;
+    }
+
     public void testSetTestCases()
     {
         ReportTestCase tCase = new ReportTestCase();

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportMojoTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportMojoTest.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportMojoTest.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportMojoTest.java
Thu Aug 13 13:43:01 2009
@@ -38,6 +38,7 @@
 
 /**
  * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ * @version $Id$
  */
 public class SurefireReportMojoTest
     extends AbstractMojoTestCase

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportParserTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportParserTest.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportParserTest.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/SurefireReportParserTest.java
Thu Aug 13 13:43:01 2009
@@ -33,11 +33,15 @@
 import java.util.Locale;
 import java.util.Map;
 
+/**
+ * @version $Id$
+ */
 public class SurefireReportParserTest
     extends TestCase
 {
     private SurefireReportParser report;
 
+    /** {@inheritDoc} */
     protected void setUp()
         throws Exception
     {
@@ -48,6 +52,15 @@
         report.setLocale( Locale.ENGLISH );
     }
 
+    /** {@inheritDoc} */
+    protected void tearDown()
+        throws Exception
+    {
+        super.tearDown();
+
+        report = null;
+    }
+
     public void testParseXMLReportFiles()
         throws MavenReportException, UnsupportedEncodingException
     {

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/SurefireRepMavenProjectStub.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/SurefireRepMavenProjectStub.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/SurefireRepMavenProjectStub.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/SurefireRepMavenProjectStub.java
Thu Aug 13 13:43:01 2009
@@ -28,10 +28,12 @@
 
 /**
  * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ * @version $Id$
  */
 public class SurefireRepMavenProjectStub
     extends MavenProjectStub
 {
+    /** {@inheritDoc} */
     public List getReportPlugins()
     {
         Reporting reporting = new Reporting();

Modified: maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/SurefireRepMavenProjectStub2.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/SurefireRepMavenProjectStub2.java?rev=803879&r1=803878&r2=803879&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/SurefireRepMavenProjectStub2.java
(original)
+++ maven/surefire/trunk/maven-surefire-report-plugin/src/test/java/org/apache/maven/plugins/surefire/report/stubs/SurefireRepMavenProjectStub2.java
Thu Aug 13 13:43:01 2009
@@ -26,10 +26,12 @@
 
 /**
  * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ * @version $Id$
  */
 public class SurefireRepMavenProjectStub2
     extends MavenProjectStub
 {
+    /** {@inheritDoc} */
     public List getReportPlugins()
     {
         return new ArrayList();



Mime
View raw message