maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r360589 - in /maven/surefire/trunk/surefire/src: main/java/org/apache/maven/surefire/report/XMLReporter.java test/java/org/apache/maven/surefire/report/XMLReporterTest.java
Date Sun, 01 Jan 2006 23:10:41 GMT
Author: carlos
Date: Sun Jan  1 15:10:32 2006
New Revision: 360589

URL: http://svn.apache.org/viewcvs?rev=360589&view=rev
Log:
Removed unneeded elapsedTimeAsString
PR: SUREFIRE-22
Submitted By: Marcel Schutte

Modified:
    maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java
    maven/surefire/trunk/surefire/src/test/java/org/apache/maven/surefire/report/XMLReporterTest.java

Modified: maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java
URL: http://svn.apache.org/viewcvs/maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java?rev=360589&r1=360588&r2=360589&view=diff
==============================================================================
--- maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java
(original)
+++ maven/surefire/trunk/surefire/src/main/java/org/apache/maven/surefire/report/XMLReporter.java
Sun Jan  1 15:10:32 2006
@@ -19,7 +19,6 @@
 import java.io.File;
 import java.io.PrintWriter;
 import java.io.StringWriter;
-import java.text.DecimalFormat;
 import java.util.Enumeration;
 import java.util.Properties;
 import java.util.StringTokenizer;
@@ -37,8 +36,6 @@
 public class XMLReporter 
     extends AbstractReporter
 {
-    private static final DecimalFormat TIME_FORMAT = new DecimalFormat( "##0.00" );
-
     private PrintWriter writer;
     
     private Xpp3Dom testSuite;
@@ -257,8 +254,4 @@
         }
     }
     
-    protected String elapsedTimeAsString( long runTime )
-    {
-        return TIME_FORMAT.format( (double) runTime / 1000 );
-    }
 }

Modified: maven/surefire/trunk/surefire/src/test/java/org/apache/maven/surefire/report/XMLReporterTest.java
URL: http://svn.apache.org/viewcvs/maven/surefire/trunk/surefire/src/test/java/org/apache/maven/surefire/report/XMLReporterTest.java?rev=360589&r1=360588&r2=360589&view=diff
==============================================================================
--- maven/surefire/trunk/surefire/src/test/java/org/apache/maven/surefire/report/XMLReporterTest.java
(original)
+++ maven/surefire/trunk/surefire/src/test/java/org/apache/maven/surefire/report/XMLReporterTest.java
Sun Jan  1 15:10:32 2006
@@ -16,11 +16,11 @@
  * limitations under the License.
  */
 
-import org.codehaus.plexus.util.xml.Xpp3Dom;
-
 import junit.framework.AssertionFailedError;
 import junit.framework.TestCase;
 
+import org.codehaus.plexus.util.xml.Xpp3Dom;
+
 public class XMLReporterTest
     extends TestCase
 {
@@ -29,8 +29,6 @@
 
     private ReportEntry reportEntry;
 
-    private Xpp3Dom testCase;
-
     private String message;
 
     protected void setUp()
@@ -66,13 +64,6 @@
         Xpp3Dom result = reporter.getTestCase();
         Xpp3Dom child = result.getChild( "error" );
         assertEquals( message, child.getAttribute( "type" ) );
-    }
-
-    public void testElapsedTimeAsString()
-    {
-        String timeAsString = reporter.elapsedTimeAsString( 1000 );
-        assertTrue( timeAsString.indexOf( "." ) >= 0 );
-        assertTrue( timeAsString.indexOf( "," ) < 0 );
     }
 
 }



Mime
View raw message