felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r1001364 - /felix/trunk/ipojo/junit4osgi/maven-junit4osgi-plugin/src/main/java/org/apache/felix/ipojo/junit4osgi/plugin/XMLReport.java
Date Sun, 26 Sep 2010 06:02:30 GMT
Author: clement
Date: Sun Sep 26 06:02:30 2010
New Revision: 1001364

URL: http://svn.apache.org/viewvc?rev=1001364&view=rev
Log:
Fix time in reports.

Modified:
    felix/trunk/ipojo/junit4osgi/maven-junit4osgi-plugin/src/main/java/org/apache/felix/ipojo/junit4osgi/plugin/XMLReport.java

Modified: felix/trunk/ipojo/junit4osgi/maven-junit4osgi-plugin/src/main/java/org/apache/felix/ipojo/junit4osgi/plugin/XMLReport.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/junit4osgi/maven-junit4osgi-plugin/src/main/java/org/apache/felix/ipojo/junit4osgi/plugin/XMLReport.java?rev=1001364&r1=1001363&r2=1001364&view=diff
==============================================================================
--- felix/trunk/ipojo/junit4osgi/maven-junit4osgi-plugin/src/main/java/org/apache/felix/ipojo/junit4osgi/plugin/XMLReport.java
(original)
+++ felix/trunk/ipojo/junit4osgi/maven-junit4osgi-plugin/src/main/java/org/apache/felix/ipojo/junit4osgi/plugin/XMLReport.java
Sun Sep 26 06:02:30 2010
@@ -210,7 +210,8 @@ public class XMLReport extends Report {
     private Xpp3Dom createTestElement(Test test, long runTime) {
         Xpp3Dom testCase = new Xpp3Dom("testcase");
         testCase.setAttribute("name", getReportName(test));
-        testCase.setAttribute("time", Long.toString(runTime) + " sec");
+        double time = (double) runTime / (double) 1000;
+        testCase.setAttribute("time", Double.toString(time));
         testCase.setAttribute("classname", test.getClass().getName());
         return testCase;
     }
@@ -224,7 +225,7 @@ public class XMLReport extends Report {
     private Xpp3Dom createTestSuiteElement(Test test, long runTime) {
         Xpp3Dom testCase = new Xpp3Dom("testsuite");
         testCase.setAttribute("name", getReportName(test));
-        testCase.setAttribute("time", Long.toString(runTime) + " sec");
+        testCase.setAttribute("time", Long.toString(runTime));
         return testCase;
     }
 



Mime
View raw message