continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r490673 - in /maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo: AbstractJdoStoreTestCase.java JdoProjectGroupTestCase.java JdoProjectStoreTestCase.java JdoSystemStoreTestCase.java
Date Thu, 28 Dec 2006 07:37:57 GMT
Author: rinku
Date: Wed Dec 27 23:37:52 2006
New Revision: 490673

URL: http://svn.apache.org/viewvc?view=rev&rev=490673
Log:
o  The fun bit - unit tests! :-)

Modified:
    maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/AbstractJdoStoreTestCase.java
    maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupTestCase.java
    maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoProjectStoreTestCase.java
    maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoSystemStoreTestCase.java

Modified: maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/AbstractJdoStoreTestCase.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/AbstractJdoStoreTestCase.java?view=diff&rev=490673&r1=490672&r2=490673
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/AbstractJdoStoreTestCase.java
(original)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/AbstractJdoStoreTestCase.java
Wed Dec 27 23:37:52 2006
@@ -25,7 +25,7 @@
  * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
  * 
  */
-public class AbstractJdoStoreTestCase extends PlexusTestCase
+public abstract class AbstractJdoStoreTestCase extends PlexusTestCase
 {
     protected ProjectStore store;
 

Modified: maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupTestCase.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupTestCase.java?view=diff&rev=490673&r1=490672&r2=490673
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupTestCase.java
(original)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoProjectGroupTestCase.java
Wed Dec 27 23:37:52 2006
@@ -1,5 +1,7 @@
 package org.apache.maven.continuum.store.jdo;
 
+import org.apache.maven.continuum.store.ProjectGroupStore;
+
 /**
  * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
  * @version $Id$
@@ -7,5 +9,11 @@
  */
 public class JdoProjectGroupTestCase extends AbstractJdoStoreTestCase
 {
+
+    public void testComponentLookup() throws Exception
+    {
+        ProjectGroupStore store = (ProjectGroupStore) lookup( ProjectGroupStore.ROLE, "jdo"
);
+        assertNotNull( store );
+    }
 
 }

Modified: maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoProjectStoreTestCase.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoProjectStoreTestCase.java?view=diff&rev=490673&r1=490672&r2=490673
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoProjectStoreTestCase.java
(original)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoProjectStoreTestCase.java
Wed Dec 27 23:37:52 2006
@@ -3,6 +3,8 @@
  */
 package org.apache.maven.continuum.store.jdo;
 
+import org.apache.maven.continuum.store.ProjectStore;
+
 
 /**
  * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
@@ -18,9 +20,10 @@
         createBuildDatabase();
     }
 
-    public void testBasic()
+    public void testComponentLookup() throws Exception
     {
-        // TODO: do something
+        ProjectStore store = (ProjectStore) lookup( ProjectStore.ROLE, "jdo" );
+        assertNotNull( store );
     }
 
 }

Modified: maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoSystemStoreTestCase.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoSystemStoreTestCase.java?view=diff&rev=490673&r1=490672&r2=490673
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoSystemStoreTestCase.java
(original)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/jdo/JdoSystemStoreTestCase.java
Wed Dec 27 23:37:52 2006
@@ -3,15 +3,18 @@
  */
 package org.apache.maven.continuum.store.jdo;
 
+import org.apache.maven.continuum.store.SystemStore;
+
 /**
- * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a> 
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
  * @version $Id$
  * @since 1.1
  */
 public class JdoSystemStoreTestCase extends AbstractJdoStoreTestCase
 {
-    // ------------------------------------------------------------------------
-    // Service methods
-    // ------------------------------------------------------------------------
-
+    public void testComponentLookup() throws Exception
+    {
+        SystemStore store = (SystemStore) lookup( SystemStore.ROLE, "jdo" );
+        assertNotNull( store );
+    }
 }



Mime
View raw message