Author: rafale
Date: Tue Jan 29 11:09:16 2008
New Revision: 616484

URL: http://svn.apache.org/viewvc?rev=616484&view=rev
Log:
better log when failing (to ease fixing build on windows)

Modified:
    
maven/archetype/trunk/archetype-common/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGeneratorTest.java

Modified: 
maven/archetype/trunk/archetype-common/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGeneratorTest.java
URL: 
http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-common/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGeneratorTest.java?rev=616484&r1=616483&r2=616484&view=diff
==============================================================================
--- 
maven/archetype/trunk/archetype-common/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGeneratorTest.java
 (original)
+++ 
maven/archetype/trunk/archetype-common/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGeneratorTest.java
 Tue Jan 29 11:09:16 2008
@@ -237,7 +237,7 @@
         instance.generateArchetype(request, result);
         if ( result.getCause() != null )
         {
-            fail( "No exception may be thrown" );
+            fail( "No exception may be thrown: " + 
result.getCause().getMessage() );
         }
 
         Model model = readPom( getProjectFile( project + File.separator + 
"file-value" ) );
@@ -307,7 +307,7 @@
         instance.generateArchetype(request, result);
         if ( result.getCause() != null )
         {
-            fail( "No exception may be thrown" );
+            fail( "No exception may be thrown: " + 
result.getCause().getMessage() );
         }
 
         Model model = readPom( getProjectFile( project + File.separator + 
"file-value" ) );
@@ -376,7 +376,7 @@
         instance.generateArchetype(request, result);
         if ( result.getCause() != null )
         {
-            fail( "No exception may be thrown" );
+            fail( "No exception may be thrown: " + 
result.getCause().getMessage() );
         }
 
         Model model = readPom( getProjectFile( project + File.separator + 
"file-value" ) );
@@ -450,7 +450,7 @@
         instance.generateArchetype(request, result);
         if ( result.getCause() != null )
         {
-            fail( "No exception may be thrown" );
+            fail( "No exception may be thrown: " + 
result.getCause().getMessage() );
         }
 
         Model model = readPom( getProjectFile( project ) );
@@ -500,7 +500,7 @@
         instance.generateArchetype(request, result);
         if ( result.getCause() != null )
         {
-            fail( "No exception may be thrown" );
+            fail( "No exception may be thrown: " + 
result.getCause().getMessage() );
         }
 
         Model model = readPom( getProjectFile( project + File.separator + 
"file-value" ) );
@@ -558,7 +558,7 @@
         instance.generateArchetype(request, result);
         if ( result.getCause() != null )
         {
-            fail( "No exception may be thrown" );
+            fail( "No exception may be thrown: " + 
result.getCause().getMessage() );
         }
 
         String template;
@@ -623,7 +623,7 @@
         instance.generateArchetype(request, result);
         if ( result.getCause() != null )
         {result.getCause().printStackTrace(System.err);
-            fail( "No exception may be thrown" );
+            fail( "No exception may be thrown: " + 
result.getCause().getMessage() );
         }
 
         Model model;
@@ -768,7 +768,7 @@
         if ( result.getCause() != null )
         {
             result.getCause().printStackTrace(System.err);
-            fail( "No exception may be thrown 
("+result.getCause().getMessage()+")-("/*+result.getCause().getCause().getMessage()*/+")"
 );
+            fail( "No exception may be thrown: " + 
result.getCause().getMessage() );
         }
 
         String template;
@@ -819,7 +819,7 @@
         instance.generateArchetype(request, result);
         if ( result.getCause() == null )
         {
-            fail( "Exception must be thrown" );
+            fail( "No exception may be thrown: " + 
result.getCause().getMessage() );
         }
         else
         {


Reply via email to