continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r440483 - /maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java
Date Tue, 05 Sep 2006 20:51:06 GMT
Author: carlos
Date: Tue Sep  5 13:51:06 2006
New Revision: 440483

URL: http://svn.apache.org/viewvc?view=rev&rev=440483
Log:
Add some tests about project groups

Modified:
    maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java

Modified: maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java?view=diff&rev=440483&r1=440482&r2=440483
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-core/src/test/java/org/apache/maven/continuum/DefaultContinuumTest.java
Tue Sep  5 13:51:06 2006
@@ -224,12 +224,18 @@
         ContinuumProjectBuildingResult result = continuum.addMavenTwoProject( url );
 
         assertNotNull( result );
+        
+        assertEquals( 1, result.getProjectGroups().size() );
+        
+        ProjectGroup projectGroup = (ProjectGroup) result.getProjectGroups().get( 0 );
+
+        assertEquals( 1, projectGroup.getId() );
 
         Collection projectGroupList = continuum.getAllProjectGroupsWithProjects();
 
         assertEquals( "Project group missing, should have two project groups", 1, projectGroupList.size()
);
 
-        ProjectGroup projectGroup = (ProjectGroup) projectGroupList.iterator().next();
+        projectGroup = (ProjectGroup) projectGroupList.iterator().next();
 
         assertNotNull( projectGroup );
 



Mime
View raw message