Fix time in reports.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1001364 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/junit4osgi/maven-junit4osgi-plugin/src/main/java/org/apache/felix/ipojo/junit4osgi/plugin/XMLReport.java b/ipojo/junit4osgi/maven-junit4osgi-plugin/src/main/java/org/apache/felix/ipojo/junit4osgi/plugin/XMLReport.java
index d9383a2..4a339d9 100644
--- a/ipojo/junit4osgi/maven-junit4osgi-plugin/src/main/java/org/apache/felix/ipojo/junit4osgi/plugin/XMLReport.java
+++ b/ipojo/junit4osgi/maven-junit4osgi-plugin/src/main/java/org/apache/felix/ipojo/junit4osgi/plugin/XMLReport.java
@@ -210,7 +210,8 @@
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 @@
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;
}