maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r496399 - /maven/components/trunk/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderTest.java
Date Mon, 15 Jan 2007 16:44:57 GMT
Author: jdcasey
Date: Mon Jan 15 08:44:56 2007
New Revision: 496399

URL: http://svn.apache.org/viewvc?view=rev&rev=496399
Log:
Adding showErrors to the tests, so we can see problems that come up.

Modified:
    maven/components/trunk/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderTest.java

Modified: maven/components/trunk/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderTest.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderTest.java?view=diff&rev=496399&r1=496398&r2=496399
==============================================================================
--- maven/components/trunk/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderTest.java
(original)
+++ maven/components/trunk/maven-embedder/src/test/java/org/apache/maven/embedder/MavenEmbedderTest.java
Mon Jan 15 08:44:56 2007
@@ -1,21 +1,21 @@
 package org.apache.maven.embedder;
 
-import junit.framework.TestCase;
 import org.apache.maven.artifact.Artifact;
-import org.apache.maven.model.Model;
-import org.apache.maven.plugin.descriptor.PluginDescriptor;
-import org.apache.maven.project.MavenProject;
-import org.apache.maven.execution.MavenExecutionRequest;
 import org.apache.maven.execution.DefaultMavenExecutionRequest;
+import org.apache.maven.execution.MavenExecutionRequest;
 import org.apache.maven.execution.MavenExecutionResult;
+import org.apache.maven.model.Model;
+import org.apache.maven.project.MavenProject;
 import org.codehaus.plexus.util.FileUtils;
 
 import java.io.File;
-import java.io.Writer;
 import java.io.FileWriter;
+import java.io.Writer;
+import java.util.Arrays;
 import java.util.List;
 import java.util.Set;
-import java.util.Arrays;
+
+import junit.framework.TestCase;
 
 public class MavenEmbedderTest
     extends TestCase
@@ -57,6 +57,7 @@
 
         MavenExecutionRequest request = new DefaultMavenExecutionRequest()
             .setBaseDirectory( targetDirectory )
+            .setShowErrors( true )
             .setGoals( Arrays.asList( new String[]{ "package" } ) );
 
         MavenExecutionResult result = maven.execute( request );
@@ -81,6 +82,7 @@
 
         MavenExecutionRequest request = new DefaultMavenExecutionRequest()
             .setPomFile( new File( targetDirectory, "pom.xml" ).getAbsolutePath() )
+            .setShowErrors( true )
             .setGoals( Arrays.asList( new String[]{ "package" } ) );
 
         MavenExecutionResult result = maven.execute( request );
@@ -107,6 +109,7 @@
 
         MavenExecutionRequest requestWithoutProfile = new DefaultMavenExecutionRequest()
             .setPomFile( new File( targetDirectory, "pom.xml" ).getAbsolutePath() )
+            .setShowErrors( true )
             .setGoals( Arrays.asList( new String[]{ "validate" } ) );
 
         MavenExecutionResult r0 = maven.execute( requestWithoutProfile );
@@ -123,6 +126,7 @@
 
         MavenExecutionRequest request = new DefaultMavenExecutionRequest()
             .setPomFile( new File( targetDirectory, "pom.xml" ).getAbsolutePath() )
+            .setShowErrors( true )
             .setGoals( Arrays.asList( new String[]{ "validate" } ) )
             .addActiveProfile( "embedderProfile" );
 
@@ -182,7 +186,9 @@
     public void testProjectReading()
         throws Exception
     {
-        MavenExecutionRequest request = new DefaultMavenExecutionRequest().setPomFile( getPomFile().getAbsolutePath()
);
+        MavenExecutionRequest request = new DefaultMavenExecutionRequest()
+            .setShowErrors( true )
+            .setPomFile( getPomFile().getAbsolutePath() );
 
         MavenExecutionResult result = maven.readProjectWithDependencies( request );
 



Mime
View raw message