continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r652403 - /continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java
Date Wed, 30 Apr 2008 22:44:55 GMT
Author: carlos
Date: Wed Apr 30 15:44:55 2008
New Revision: 652403

URL: http://svn.apache.org/viewvc?rev=652403&view=rev
Log:
Improve test failure message

Modified:
    continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java

Modified: continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java?rev=652403&r1=652402&r2=652403&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java
(original)
+++ continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java
Wed Apr 30 15:44:55 2008
@@ -102,11 +102,8 @@
         ContinuumProjectBuildingResult result = (ContinuumProjectBuildingResult) context
             .get( CreateProjectsFromMetadataAction.KEY_PROJECT_BUILDING_RESULT );
 
-        if ( result.hasErrors() )
-        {
-            System.out.println( "Errors=" + result.getErrorsAsString() );
-        }
-        assertFalse( "Should not have errors", result.hasErrors() );
+        assertFalse( "Should not have errors but had " + result.getErrorsAsString() +
+            " (this test requires internet access)", result.hasErrors() );
     }
 
     public void testExecuteWithRecursiveMode()
@@ -123,11 +120,8 @@
         ContinuumProjectBuildingResult result = (ContinuumProjectBuildingResult) context
             .get( CreateProjectsFromMetadataAction.KEY_PROJECT_BUILDING_RESULT );
 
-        if ( result.hasErrors() )
-        {
-            System.out.println( "Errors=" + result.getErrorsAsString() );
-        }
-        assertFalse( "Should not have errors", result.hasErrors() );
+        assertFalse( "Should not have errors but had " + result.getErrorsAsString() +
+            " (this test requires internet access)", result.hasErrors() );
     }
 
 }



Mime
View raw message