continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r219486 - in /maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store: AbstractContinuumStoreTest.java JdoContinuumStoreTest.java
Date Mon, 18 Jul 2005 13:23:58 GMT
Author: jvanzyl
Date: Mon Jul 18 06:23:25 2005
New Revision: 219486

URL: http://svn.apache.org/viewcvs?rev=219486&view=rev
Log:
o moving notifier test to the abstract test store so that it can be used for
  implementation of the store.

Modified:
    maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/AbstractContinuumStoreTest.java
    maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/JdoContinuumStoreTest.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=219486&r1=219485&r2=219486&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
Mon Jul 18 06:23:25 2005
@@ -668,4 +668,46 @@
         return addMavenTwoProject( store,
                                    makeStubMavenTwoProject( name, scmUrl ) );
     }
+
+    // ----------------------------------------------------------------------
+    // Notifiers
+    // ----------------------------------------------------------------------
+
+    public void testNotifiersAreBeingDetached()
+        throws Exception
+    {
+        List notifiers = new ArrayList();
+
+        ContinuumNotifier notifier = new ContinuumNotifier();
+
+        notifier.setType( "foo" );
+
+        Map configuration = new HashMap();
+
+        configuration.put( "moo", "foo" );
+
+        notifier.setConfiguration( configuration );
+
+        notifiers.add( notifier );
+
+        ContinuumProject project = new MavenTwoProject();
+
+        project.setNotifiers( notifiers );
+
+        String id = getStore().addProject( project );
+
+        project = getStore().getProject( id );
+
+        notifiers = project.getNotifiers();
+
+        assertNotNull( notifiers );
+
+        notifier = (ContinuumNotifier) notifiers.get( 0 );
+
+        assertEquals( "foo", notifier.getType() );
+
+        configuration = notifier.getConfiguration();
+
+        assertEquals( "foo", configuration.get( "moo" ) );
+    }
 }

Modified: maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/JdoContinuumStoreTest.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/JdoContinuumStoreTest.java?rev=219486&r1=219485&r2=219486&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/JdoContinuumStoreTest.java
(original)
+++ maven/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/store/JdoContinuumStoreTest.java
Mon Jul 18 06:23:25 2005
@@ -1,6 +1,3 @@
-/*
- * Copyright (c) 2005 Your Corporation. All Rights Reserved.
- */
 package org.apache.maven.continuum.store;
 
 import org.apache.maven.continuum.project.ContinuumNotifier;
@@ -22,33 +19,5 @@
     public JdoContinuumStoreTest()
     {
         super( "jdo", JdoContinuumStore.class );
-    }
-
-    public void testNotifiersAreBeingDetached()
-        throws Exception
-    {
-        List notifiers = new ArrayList();
-
-        ContinuumNotifier notifier = new ContinuumNotifier();
-
-        notifier.setType( "foo" );
-
-        Map configuration = new HashMap();
-
-        configuration.put( "moo", "foo" );
-
-        notifier.setConfiguration( configuration );
-
-        notifiers.add( notifier );
-
-        ContinuumProject project = new MavenTwoProject();
-
-        project.setNotifiers( notifiers );
-
-        String id = getStore().addProject( project );
-
-        project = getStore().getProject( id );
-
-        assertNotNull( project.getNotifiers() );
     }
 }



Mime
View raw message