maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1294569 - /maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/XmlReporterRunTimeIT.java
Date Tue, 28 Feb 2012 10:46:56 GMT
Author: olamy
Date: Tue Feb 28 10:46:56 2012
New Revision: 1294569

URL: http://svn.apache.org/viewvc?rev=1294569&view=rev
Log:
more details on test failure

Modified:
    maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/XmlReporterRunTimeIT.java

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/XmlReporterRunTimeIT.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/XmlReporterRunTimeIT.java?rev=1294569&r1=1294568&r2=1294569&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/XmlReporterRunTimeIT.java
(original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/XmlReporterRunTimeIT.java
Tue Feb 28 10:46:56 2012
@@ -19,13 +19,14 @@ package org.apache.maven.surefire.its;
  * under the License.
  */
 
-import java.io.File;
-import java.util.List;
 import org.apache.maven.surefire.its.fixture.HelperAssertions;
 import org.apache.maven.surefire.its.fixture.OutputValidator;
 import org.apache.maven.surefire.its.fixture.ReportTestSuite;
 import org.apache.maven.surefire.its.fixture.SurefireIntegrationTestCase;
 
+import java.io.File;
+import java.util.List;
+
 /**
  * Test reported runtime
  *
@@ -44,11 +45,13 @@ public class XmlReporterRunTimeIT
         {
             if ( "runorder.parallel.Test1".equals( report.getFullClassName() ) )
             {
-                assertTrue( report.getTimeElapsed() >= 1.2f );
+                assertTrue( "runorder.parallel.Test1 report.getTimeElapsed found:" + report.getTimeElapsed(),
+                            report.getTimeElapsed() >= 1.2f );
             }
             else if ( "runorder.parallel.Test2".equals( report.getFullClassName() ) )
             {
-                assertTrue( report.getTimeElapsed() >= 0.9f );
+                assertTrue( "runorder.parallel.Test2 report.getTimeElapsed found:" + report.getTimeElapsed(),
+                            report.getTimeElapsed() >= 0.9f );
             }
             else
             {



Mime
View raw message