geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r424848 - in /geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src: main/java/org/apache/geronimo/repository/jdbm/ test/java/org/apache/geronimo/repository/jdbm/
Date Sun, 23 Jul 2006 22:52:06 GMT
Author: jdillon
Date: Sun Jul 23 15:52:05 2006
New Revision: 424848

URL: http://svn.apache.org/viewvc?rev=424848&view=rev
Log:
Add test of copy from m1 to jdbm to jdbm

Modified:
    geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src/main/java/org/apache/geronimo/repository/jdbm/JdbmRepository.java
    geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src/test/java/org/apache/geronimo/repository/jdbm/RepositoryCopierTest.java

Modified: geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src/main/java/org/apache/geronimo/repository/jdbm/JdbmRepository.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src/main/java/org/apache/geronimo/repository/jdbm/JdbmRepository.java?rev=424848&r1=424847&r2=424848&view=diff
==============================================================================
--- geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src/main/java/org/apache/geronimo/repository/jdbm/JdbmRepository.java
(original)
+++ geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src/main/java/org/apache/geronimo/repository/jdbm/JdbmRepository.java
Sun Jul 23 15:52:05 2006
@@ -120,12 +120,9 @@
         assert destination != null;
         assert monitor != null;
         // size may be == 0
-        
+
         ensureFullyResolved(destination);
 
-        //
-        // TODO: Insert into DB
-        //
         db.insert(destination);
 
         try {

Modified: geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src/test/java/org/apache/geronimo/repository/jdbm/RepositoryCopierTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src/test/java/org/apache/geronimo/repository/jdbm/RepositoryCopierTest.java?rev=424848&r1=424847&r2=424848&view=diff
==============================================================================
--- geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src/test/java/org/apache/geronimo/repository/jdbm/RepositoryCopierTest.java
(original)
+++ geronimo/sandbox/svkmerge/geronimo-repository/geronimo-repository-providers/geronimo-repository-jdbm/src/test/java/org/apache/geronimo/repository/jdbm/RepositoryCopierTest.java
Sun Jul 23 15:52:05 2006
@@ -104,4 +104,24 @@
 
         RepositoryCopier.copy(source, target);
     }
+
+    public void testCopyM1toJDBMtoJDBM() throws Exception {
+        File dir;
+
+        dir = new File(basedir, "target/m1");
+        Maven1Repository source = new Maven1Repository(dir);
+
+        dir = new File(basedir, "target/m1-to-jdbm1");
+        dir.mkdirs();
+        JdbmRepository target = new JdbmRepository(dir);
+
+        RepositoryCopier.copy(source, target);
+
+        dir = new File(basedir, "target/jdbm1-to-jdbm");
+        dir.mkdirs();
+        JdbmRepository target2 = new JdbmRepository(dir);
+
+        RepositoryCopier.copy(target, target2);
+
+    }
 }



Mime
View raw message