continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r490001 - /maven/continuum/branches/key-based-refactor/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
Date Sun, 24 Dec 2006 08:13:01 GMT
Author: rinku
Date: Sun Dec 24 00:13:00 2006
New Revision: 490001

URL: http://svn.apache.org/viewvc?view=rev&rev=490001
Log:
o  updates to store unit tests for refactorings.

Modified:
    maven/continuum/branches/key-based-refactor/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java

Modified: maven/continuum/branches/key-based-refactor/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java?view=diff&rev=490001&r1=490000&r2=490001
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
(original)
+++ maven/continuum/branches/key-based-refactor/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
Sun Dec 24 00:13:00 2006
@@ -18,6 +18,7 @@
 
 import org.apache.maven.continuum.configuration.ConfigurationService;
 import org.apache.maven.continuum.execution.ContinuumBuildExecutor;
+import org.apache.maven.continuum.key.GroupProjectKey;
 import org.apache.maven.continuum.model.project.BuildDefinition;
 import org.apache.maven.continuum.model.project.Project;
 import org.apache.maven.continuum.model.project.ProjectGroup;
@@ -111,7 +112,8 @@
     protected ProjectGroup getDefaultProjectGroup()
         throws ContinuumStoreException
     {
-        return store.getProjectGroupByGroupIdWithProjects( Continuum.DEFAULT_PROJECT_GROUP_GROUP_ID
);
+        //return store.getProjectGroupByGroupIdWithProjects( Continuum.DEFAULT_PROJECT_GROUP_GROUP_ID
);
+        return store.getProjectGroupByGroupIdWithProjects( new GroupProjectKey(Continuum.DEFAULT_PROJECT_GROUP_GROUP_ID,null
));
     }
 
     // ----------------------------------------------------------------------
@@ -297,7 +299,7 @@
         defaultProjectGroup.addProject( project );
         store.updateProjectGroup( defaultProjectGroup );
 
-        project = store.getProject( project.getId() );
+        project = store.getProject( new GroupProjectKey( defaultProjectGroup.getKey(), project.getKey()
) );
         assertNotNull( "project group == null", project.getProjectGroup() );
 
         return project;



Mime
View raw message