You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2006/05/06 09:36:11 UTC

svn commit: r400259 - /maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RunGoalsPhaseTest.java

Author: brett
Date: Sat May  6 00:36:10 2006
New Revision: 400259

URL: http://svn.apache.org/viewcvs?rev=400259&view=rev
Log:
correct test

Modified:
    maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RunGoalsPhaseTest.java

Modified: maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RunGoalsPhaseTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RunGoalsPhaseTest.java?rev=400259&r1=400258&r2=400259&view=diff
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RunGoalsPhaseTest.java (original)
+++ maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RunGoalsPhaseTest.java Sat May  6 00:36:10 2006
@@ -55,12 +55,14 @@
         File testFile = getTestFile( "target/working-directory" );
 
         ReleaseConfiguration config = new ReleaseConfiguration();
+        config.setPreparationGoals( "clean integration-test" );
         config.setWorkingDirectory( testFile );
 
         Mock mock = new Mock( MavenExecutor.class );
         mock.expects( new InvokeOnceMatcher() ).method( "executeGoals" ).with( new IsSame( testFile ),
                                                                                new IsEqual( "clean integration-test" ),
-                                                                               new IsEqual( Boolean.TRUE ) );
+                                                                               new IsEqual( Boolean.TRUE ),
+                                                                               new IsNull() );
 
         phase.setMavenExecutor( (MavenExecutor) mock.proxy() );
 
@@ -76,12 +78,14 @@
         File testFile = getTestFile( "target/working-directory" );
 
         ReleaseConfiguration config = new ReleaseConfiguration();
+        config.setPreparationGoals( "clean integration-test" );
         config.setWorkingDirectory( testFile );
 
         Mock mock = new Mock( MavenExecutor.class );
         mock.expects( new InvokeOnceMatcher() ).method( "executeGoals" ).with( new IsSame( testFile ),
                                                                                new IsEqual( "clean integration-test" ),
-                                                                               new IsEqual( Boolean.TRUE ) );
+                                                                               new IsEqual( Boolean.TRUE ),
+                                                                               new IsNull() );
 
         phase.setMavenExecutor( (MavenExecutor) mock.proxy() );
 
@@ -155,6 +159,7 @@
         File testFile = getTestFile( "target/working-directory" );
 
         ReleaseConfiguration config = new ReleaseConfiguration();
+        config.setPreparationGoals( "" );
         config.setWorkingDirectory( testFile );
 
         Mock mock = new Mock( MavenExecutor.class );