continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1370677 - in /continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum: AddMaven2ProjectTest.java AddProjectTest.java
Date Wed, 08 Aug 2012 07:18:07 GMT
Author: brett
Date: Wed Aug  8 07:18:06 2012
New Revision: 1370677

URL: http://svn.apache.org/viewvc?rev=1370677&view=rev
Log:
improve warnings when project adding fails

Modified:
    continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/AddMaven2ProjectTest.java
    continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/AddProjectTest.java

Modified: continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/AddMaven2ProjectTest.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/AddMaven2ProjectTest.java?rev=1370677&r1=1370676&r2=1370677&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/AddMaven2ProjectTest.java
(original)
+++ continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/AddMaven2ProjectTest.java
Wed Aug  8 07:18:06 2012
@@ -1,6 +1,7 @@
 package org.apache.maven.continuum;
 
 import java.io.File;
+import java.util.Collections;
 
 import org.apache.maven.continuum.builddefinition.BuildDefinitionService;
 import org.apache.maven.continuum.model.project.BuildDefinition;
@@ -94,6 +95,8 @@ public class AddMaven2ProjectTest
                                                                                        true,
false, false, bdt.getId(), false );
         assertNotNull( result );
 
+        assertEquals( Collections.emptyList(), result.getErrors() );
+
         assertEquals( 1, result.getProjects().size() );
 
         Project project = result.getProjects().get( 0 );
@@ -121,6 +124,8 @@ public class AddMaven2ProjectTest
                                                                                        false,
true, bdt.getId(), false );
         assertNotNull( result );
 
+        assertEquals( Collections.emptyList(), result.getErrors() );
+
         assertEquals( 1, result.getProjects().size() );
         Project project = result.getProjects().get( 0 );
         assertNotNull( project );
@@ -157,6 +162,8 @@ public class AddMaven2ProjectTest
                                                                                        false,
true, -1, false );
         assertNotNull( result );
 
+        assertEquals( Collections.emptyList(), result.getErrors() );
+
         assertEquals( 1, result.getProjects().size() );
 
         Project project = result.getProjects().get( 0 );
@@ -205,6 +212,8 @@ public class AddMaven2ProjectTest
                                                                                        true,
false, false, -1, false );
         assertNotNull( result );
 
+        assertEquals( Collections.emptyList(), result.getErrors() );
+
         assertEquals( 1, result.getProjects().size() );
 
         Project project = result.getProjects().get( 0 );

Modified: continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/AddProjectTest.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/AddProjectTest.java?rev=1370677&r1=1370676&r2=1370677&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/AddProjectTest.java
(original)
+++ continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/AddProjectTest.java
Wed Aug  8 07:18:06 2012
@@ -24,6 +24,8 @@ import org.apache.maven.continuum.model.
 import org.apache.maven.continuum.project.builder.ContinuumProjectBuildingResult;
 import org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder;
 
+import java.util.Collections;
+
 /**
  * @author <a href="mailto:olamy@apache.org">olamy</a>
  * @since 12 juin 2008
@@ -45,6 +47,8 @@ public class AddProjectTest
         ContinuumProjectBuildingResult result = continuum
             .executeAddProjectsFromMetadataActivity( metadataUrl, MavenTwoContinuumProjectBuilder.ID,
             						getDefaultProjectGroup().getId(), false, true, false, -1, false, false
);
+        assertEquals( Collections.emptyList(), result.getErrors() );
+
         assertEquals( 1, result.getProjects().size() );
         
         // read the project from store
@@ -63,6 +67,8 @@ public class AddProjectTest
         ContinuumProjectBuildingResult result = continuum
             .executeAddProjectsFromMetadataActivity( metadataUrl, MavenTwoContinuumProjectBuilder.ID,
             						getDefaultProjectGroup().getId(), false, false, false, -1, false, false
);
+        assertEquals( Collections.emptyList(), result.getErrors() );
+
         assertEquals( 1, result.getProjects().size() );
 
         // read the project from store



Mime
View raw message