maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r804676 - /maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java
Date Sun, 16 Aug 2009 11:56:03 GMT
Author: vsiveton
Date: Sun Aug 16 11:56:03 2009
New Revision: 804676

URL: http://svn.apache.org/viewvc?rev=804676&view=rev
Log:
o fixed test cases

Modified:
    maven/surefire/trunk/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java

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=804676&r1=804675&r2=804676&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
Sun Aug 16 11:56:03 2009
@@ -380,7 +380,7 @@
 
             List testCases = suite.getTestCases();
 
-            if ( testCases != null )
+            if ( testCases != null && !testCases.isEmpty() )
             {
                 ListIterator caseIterator = testCases.listIterator();
 
@@ -639,21 +639,21 @@
     {
         if ( !testSuites.isEmpty() )
         {
-            sink.section2();
+            sink.paragraph();
 
-            sink.rawText( "[" );
+            sink.text( "[" );
             sinkLink( sink, bundle.getString( "report.surefire.label.summary" ), "#Summary"
);
-            sink.rawText( "]" );
+            sink.text( "]" );
 
-            sink.rawText( " [" );
+            sink.text( " [" );
             sinkLink( sink, bundle.getString( "report.surefire.label.packagelist" ), "#Package_List"
);
-            sink.rawText( "]" );
+            sink.text( "]" );
 
-            sink.rawText( " [" );
+            sink.text( " [" );
             sinkLink( sink, bundle.getString( "report.surefire.label.testcases" ), "#Test_Cases"
);
-            sink.rawText( "]" );
+            sink.text( "]" );
 
-            sink.section2_();
+            sink.paragraph_();
         }
     }
 



Mime
View raw message