continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r219431 - /maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/AbstractContinuumStoreTest.java
Date Mon, 18 Jul 2005 00:38:17 GMT
Author: trygvis
Date: Sun Jul 17 17:38:10 2005
New Revision: 219431

URL: http://svn.apache.org/viewcvs?rev=219431&view=rev
Log:
o Testing getProjectByName() and ByScmUrl() too.

Modified:
    maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/AbstractContinuumStoreTest.java

Modified: maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/AbstractContinuumStoreTest.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/AbstractContinuumStoreTest.java?rev=219431&r1=219430&r2=219431&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/AbstractContinuumStoreTest.java
(original)
+++ maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/AbstractContinuumStoreTest.java
Sun Jul 17 17:38:10 2005
@@ -18,16 +18,14 @@
 
 import java.util.ArrayList;
 import java.util.Collection;
-import java.util.Date;
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 import java.util.Properties;
-import java.util.Collections;
 
 import org.apache.maven.continuum.AbstractContinuumTest;
-import org.apache.maven.continuum.utils.ContinuumUtils;
 import org.apache.maven.continuum.execution.ContinuumBuildExecutionResult;
 import org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor;
 import org.apache.maven.continuum.project.ContinuumBuild;
@@ -153,6 +151,28 @@
         project = store.getProject( projectId );
 
         assertNotNull( project );
+
+        assertEquals( projectId, project );
+
+        // ----------------------------------------------------------------------
+        //
+        // ----------------------------------------------------------------------
+
+        project = store.getProjectByName( name );
+
+        assertNotNull( project );
+
+        assertEquals( projectId, project );
+
+        // ----------------------------------------------------------------------
+        //
+        // ----------------------------------------------------------------------
+
+        project = store.getProjectByScmUrl( scmUrl );
+
+        assertNotNull( project );
+
+        assertEquals( projectId, project );
 
         // ----------------------------------------------------------------------
         //



Mime
View raw message