continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r491371 - in /maven/continuum/branches/key-based-refactor/continuum-store: ./ src/main/java/org/apache/maven/continuum/store/ibatis/ src/main/java/org/apache/maven/continuum/store/jdo/ src/main/resources/ src/test/java/org/apache/maven/cont...
Date Sun, 31 Dec 2006 03:00:06 GMT
Author: rinku
Date: Sat Dec 30 19:00:05 2006
New Revision: 491371

URL: http://svn.apache.org/viewvc?view=rev&rev=491371
Log:
o  started toying around with some iBATIS stuff.

Added:
    maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/
    maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/AbstractIbatisStore.java
  (with props)
    maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupStore.java
  (with props)
    maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectStore.java
  (with props)
    maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisSystemStore.java
  (with props)
    maven/continuum/branches/key-based-refactor/continuum-store/src/main/resources/
    maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ibatis/
    maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupTestCase.java
  (with props)
Modified:
    maven/continuum/branches/key-based-refactor/continuum-store/pom.xml
    maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/AbstractJdoStore.java

Modified: maven/continuum/branches/key-based-refactor/continuum-store/pom.xml
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/pom.xml?view=diff&rev=491371&r1=491370&r2=491371
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/pom.xml (original)
+++ maven/continuum/branches/key-based-refactor/continuum-store/pom.xml Sat Dec 30 19:00:05
2006
@@ -36,7 +36,12 @@
     <dependency>
       <groupId>org.codehaus.plexus</groupId>
       <artifactId>plexus-utils</artifactId>
-    </dependency> 
+    </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-ibatis</artifactId>
+      <version>1.0-SNAPSHOT</version>
+    </dependency>
   </dependencies>
   <build>
     <plugins>

Added: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/AbstractIbatisStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/AbstractIbatisStore.java?view=auto&rev=491371
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/AbstractIbatisStore.java
(added)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/AbstractIbatisStore.java
Sat Dec 30 19:00:05 2006
@@ -0,0 +1,56 @@
+package org.apache.maven.continuum.store.ibatis;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+import org.codehaus.plexus.logging.AbstractLogEnabled;
+import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
+import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
+
+import com.ibatis.sqlmap.client.SqlMapClient;
+
+/**
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ * @version $Id$
+ * @since
+ */
+public abstract class AbstractIbatisStore extends AbstractLogEnabled implements Initializable
+{
+
+    /**
+     * Acts as a client to initiate operations on the underlying data store.
+     */
+    private SqlMapClient sqlMapClient;
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable#initialize()
+     */
+    public void initialize() throws InitializationException
+    {
+        // TODO: initialize SQL Map client.
+    }
+
+    /**
+     * @return the sqlMapClient
+     */
+    public SqlMapClient getSqlMapClient()
+    {
+        return sqlMapClient;
+    }
+
+}

Propchange: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/AbstractIbatisStore.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/AbstractIbatisStore.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupStore.java?view=auto&rev=491371
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupStore.java
(added)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupStore.java
Sat Dec 30 19:00:05 2006
@@ -0,0 +1,135 @@
+package org.apache.maven.continuum.store.ibatis;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+import org.apache.maven.continuum.key.GroupProjectKey;
+import org.apache.maven.continuum.model.project.ProjectGroup;
+import org.apache.maven.continuum.store.ContinuumObjectNotFoundException;
+import org.apache.maven.continuum.store.ContinuumStoreException;
+import org.apache.maven.continuum.store.ProjectGroupStore;
+
+import java.sql.SQLException;
+import java.util.List;
+
+/**
+ * Concrete implementation of {@link ProjectGroupStore} that uses Ibatis
+ * framework to access the underlying datastore.
+ * 
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ * @version $Id$
+ * @since 1.1
+ * @plexus.component role="org.apache.maven.continuum.store.ProjectGroupStore"
+ *                   role-hint="ibatis"
+ */
+public class IbatisProjectGroupStore extends AbstractIbatisStore implements ProjectGroupStore
+{
+
+    // ------------------------------------------------------------------------
+    // Available SQL Maps
+    // ------------------------------------------------------------------------
+
+    /**
+     * Obtains all {@link ProjectGroup} instances in the system.
+     */
+    private static final String SQLMAP_GET_ALL_PROJECT_GROUPS = "GetAllProjectGroups";
+
+    /**
+     * Saves the specified {@link ProjectGroup} instance to the underlying
+     * store.
+     */
+    private static final String SQLMAP_SAVE_PROJECT_GROUP = "SaveProjectGroup";
+
+    /**
+     * Deletes the specified {@link ProjectGroup} instance from the underlying
+     * store.
+     */
+    private static final String SQLMAP_DELETE_PROJECT_GROUP = "DeleteProjectGroup";
+
+    /**
+     * Obtains a {@link ProjectGroup} instances from the underlying that matches
+     * the specified criteria.
+     */
+    private static final String SQLMAP_LOOKUP_PROJECT_GROUP = "LookupProjectGroup";
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.ProjectGroupStore#deleteProjectGroup(org.apache.maven.continuum.model.project.ProjectGroup)
+     */
+    public void deleteProjectGroup( ProjectGroup project ) throws ContinuumStoreException
+    {
+        try
+        {
+            getSqlMapClient().startTransaction();
+
+            getSqlMapClient().delete( SQLMAP_DELETE_PROJECT_GROUP, project );
+
+            getSqlMapClient().commitTransaction();
+        }
+        catch ( SQLException e )
+        {
+            throw new ContinuumStoreException( "Unable to delete ProjectGroup '" + project.getName()
+ "'", e );
+        }
+        finally
+        {
+            try
+            {
+                getSqlMapClient().endTransaction();
+            }
+            catch ( SQLException e )
+            {
+                // log and forget
+                getLogger().warn( "Unable to end transaction.", e );
+            }
+        }
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.ProjectGroupStore#getAllProjectGroups()
+     */
+    public List getAllProjectGroups() throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.ProjectGroupStore#lookupProjectGroup(org.apache.maven.continuum.key.GroupProjectKey)
+     */
+    public ProjectGroup lookupProjectGroup( GroupProjectKey key )
+        throws ContinuumObjectNotFoundException, ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.ProjectGroupStore#saveProjectGroup(org.apache.maven.continuum.model.project.ProjectGroup)
+     */
+    public ProjectGroup saveProjectGroup( ProjectGroup projectGroup ) throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+}

Propchange: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupStore.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupStore.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectStore.java?view=auto&rev=491371
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectStore.java
(added)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectStore.java
Sat Dec 30 19:00:05 2006
@@ -0,0 +1,85 @@
+package org.apache.maven.continuum.store.ibatis;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+import org.apache.maven.continuum.key.GroupProjectKey;
+import org.apache.maven.continuum.model.project.Project;
+import org.apache.maven.continuum.store.ContinuumObjectNotFoundException;
+import org.apache.maven.continuum.store.ContinuumStoreException;
+import org.apache.maven.continuum.store.ProjectStore;
+
+import java.util.List;
+
+/**
+ * Concrete implementation of {@link ProjectStore} that uses Ibatis framework to
+ * access the underlying datastore.
+ * 
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ * @version $Id$
+ * @since 1.1
+ * @plexus.component role="org.apache.maven.continuum.store.ProjectStore"
+ *                   role-hint="ibatis"
+ */
+public class IbatisProjectStore implements ProjectStore
+{
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.ProjectStore#deleteProject(org.apache.maven.continuum.model.project.Project)
+     */
+    public void deleteProject( Project project ) throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.ProjectStore#getAllProjects()
+     */
+    public List getAllProjects() throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.ProjectStore#lookupProject(org.apache.maven.continuum.key.GroupProjectKey)
+     */
+    public Project lookupProject( GroupProjectKey key )
+        throws ContinuumObjectNotFoundException, ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.ProjectStore#saveProject(org.apache.maven.continuum.model.project.Project)
+     */
+    public Project saveProject( Project project ) throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+}

Propchange: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectStore.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisProjectStore.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisSystemStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisSystemStore.java?view=auto&rev=491371
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisSystemStore.java
(added)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisSystemStore.java
Sat Dec 30 19:00:05 2006
@@ -0,0 +1,220 @@
+package org.apache.maven.continuum.store.ibatis;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+import org.apache.maven.continuum.model.project.Profile;
+import org.apache.maven.continuum.model.project.Schedule;
+import org.apache.maven.continuum.model.system.Installation;
+import org.apache.maven.continuum.model.system.SystemConfiguration;
+import org.apache.maven.continuum.store.ContinuumObjectNotFoundException;
+import org.apache.maven.continuum.store.ContinuumStoreException;
+import org.apache.maven.continuum.store.SystemStore;
+
+import java.util.List;
+
+/**
+ * Concrete implementation of {@link SystemStore} that uses Ibatis framework to
+ * access the underlying datastore.
+ * 
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ * @version $Id$
+ * @since 1.1
+ * @plexus.component role="org.apache.maven.continuum.store.SystemStore"
+ *                   role-hint="ibatis"
+ */
+public class IbatisSystemStore implements SystemStore
+{
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#deleteInstallation(org.apache.maven.continuum.model.system.Installation)
+     */
+    public void deleteInstallation( Installation installation ) throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#deleteProfile(org.apache.maven.continuum.model.project.Profile)
+     */
+    public void deleteProfile( Profile profile ) throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#deleteSchedule(org.apache.maven.continuum.model.project.Schedule)
+     */
+    public void deleteSchedule( Schedule schedule ) throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#deleteSystemConfiguration(org.apache.maven.continuum.model.system.SystemConfiguration)
+     */
+    public void deleteSystemConfiguration( SystemConfiguration systemConfiguration ) throws
ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#getAllInstallations()
+     */
+    public List getAllInstallations() throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#getAllProfiles()
+     */
+    public List getAllProfiles() throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#getAllSchedules()
+     */
+    public List getAllSchedules() throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#getAllSystemConfigurations()
+     */
+    public List getAllSystemConfigurations() throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#lookupInstallation(long)
+     */
+    public Installation lookupInstallation( long id ) throws ContinuumObjectNotFoundException,
ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#lookupProfile(long)
+     */
+    public Profile lookupProfile( long id ) throws ContinuumObjectNotFoundException, ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#lookupSchedule(long)
+     */
+    public Schedule lookupSchedule( long id ) throws ContinuumObjectNotFoundException, ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#lookupSystemConfiguration(long)
+     */
+    public SystemConfiguration lookupSystemConfiguration( long id )
+        throws ContinuumObjectNotFoundException, ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#saveInstallation(org.apache.maven.continuum.model.system.Installation)
+     */
+    public Installation saveInstallation( Installation installation ) throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#saveProfile(org.apache.maven.continuum.model.project.Profile)
+     */
+    public Profile saveProfile( Profile profile ) throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#saveSchedule(org.apache.maven.continuum.model.project.Schedule)
+     */
+    public Schedule saveSchedule( Schedule schedule ) throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     * 
+     * @see org.apache.maven.continuum.store.SystemStore#saveSystemConfiguration(org.apache.maven.continuum.model.system.SystemConfiguration)
+     */
+    public SystemConfiguration saveSystemConfiguration( SystemConfiguration systemConfiguration
)
+        throws ContinuumStoreException
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+}

Propchange: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisSystemStore.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/ibatis/IbatisSystemStore.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/AbstractJdoStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/AbstractJdoStore.java?view=diff&rev=491371&r1=491370&r2=491371
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/AbstractJdoStore.java
(original)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/main/java/org/apache/maven/continuum/store/jdo/AbstractJdoStore.java
Sat Dec 30 19:00:05 2006
@@ -34,7 +34,7 @@
 
 /**
  * Covenience base class that consolidates some common methods used by
- * extensions.
+ * JDO specific extensions.
  * 
  * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
  * @version $Id$

Added: maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupTestCase.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupTestCase.java?view=auto&rev=491371
==============================================================================
--- maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupTestCase.java
(added)
+++ maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupTestCase.java
Sat Dec 30 19:00:05 2006
@@ -0,0 +1,40 @@
+package org.apache.maven.continuum.store.ibatis;
+
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+import org.apache.maven.continuum.store.ProjectGroupStore;
+import org.codehaus.plexus.PlexusTestCase;
+
+/**
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ * @version $Id$
+ */
+public class IbatisProjectGroupTestCase extends PlexusTestCase
+{
+
+    public void testLookup() throws Exception
+    {
+        IbatisProjectGroupStore store = (IbatisProjectGroupStore) lookup( ProjectGroupStore.ROLE,
"ibatis" );
+        assertNotNull( store );
+    }
+
+    public void testLookupProjectGroup() throws Exception
+    {
+
+    }
+
+}

Propchange: maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/branches/key-based-refactor/continuum-store/src/test/java/org/apache/maven/continuum/store/ibatis/IbatisProjectGroupTestCase.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message