[exo-jcr-commits] exo-jcr SVN: r3695 - jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Dec 21 07:08:04 EST 2010


Author: tolusha
Date: 2010-12-21 07:08:03 -0500 (Tue, 21 Dec 2010)
New Revision: 3695

Modified:
   jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/TestRdbmsWorkspaceInitializer.java
Log:
EXOJCR-1078: fix test

Modified: jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/TestRdbmsWorkspaceInitializer.java
===================================================================
--- jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/TestRdbmsWorkspaceInitializer.java	2010-12-21 11:16:40 UTC (rev 3694)
+++ jcr/trunk/exo.jcr.component.ext/src/test/java/org/exoplatform/services/jcr/ext/backup/TestRdbmsWorkspaceInitializer.java	2010-12-21 12:08:03 UTC (rev 3695)
@@ -55,7 +55,7 @@
       BackupConfig config = new BackupConfig();
       config.setRepository("db1");
       config.setWorkspace("ws");
-      config.setBackupDir(new File("target/backup/testJob"));
+      config.setBackupDir(new File("target/backup/testJob/testRDBMSInitializerSystemWorkspace"));
 
       Calendar calendar = Calendar.getInstance();
 
@@ -109,7 +109,7 @@
       BackupConfig config = new BackupConfig();
       config.setRepository("db1");
       config.setWorkspace("ws1");
-      config.setBackupDir(new File("target/backup/testJob"));
+      config.setBackupDir(new File("target/backup/testJob/testRDBMSInitializer"));
 
       Calendar calendar = Calendar.getInstance();
 
@@ -143,9 +143,8 @@
             newEntry.setInitializer(wiEntry);
 
             TesterRdbmsWorkspaceInitializer initializer =
-               new TesterRdbmsWorkspaceInitializer(newEntry,
-                  repositoryService.getRepository("db1").getConfiguration(), cacheableDataManager, null, null, null,
- (ValueFactoryImpl)valueFactory, null, repositoryService);
+               new TesterRdbmsWorkspaceInitializer(newEntry, repositoryService.getRepository("db1").getConfiguration(),
+                  cacheableDataManager, null, null, null, (ValueFactoryImpl)valueFactory, null, repositoryService);
 
             initializer.restoreValueFiles();
             assertFalse(new File(newValueStoragePath).exists());
@@ -163,7 +162,7 @@
       BackupConfig config = new BackupConfig();
       config.setRepository("db1");
       config.setWorkspace("ws1");
-      config.setBackupDir(new File("target/backup/testJob"));
+      config.setBackupDir(new File("target/backup/testJob/testRDBMSInitializerRestoreTablesMultiDB"));
 
       Calendar calendar = Calendar.getInstance();
 
@@ -280,7 +279,7 @@
       BackupConfig config = new BackupConfig();
       config.setRepository("db3");
       config.setWorkspace("ws");
-      config.setBackupDir(new File("target/backup/testJob"));
+      config.setBackupDir(new File("target/backup/testJob/testRDBMSInitializerRestoreTablesSingleDB"));
 
       Calendar calendar = Calendar.getInstance();
 
@@ -386,7 +385,6 @@
 
             st.execute("ALTER TABLE JCR_SITEM ADD CONSTRAINT JCR_FK_SITEM_PARENT FOREIGN KEY(PARENT_ID) REFERENCES JCR_SITEM(ID)");
             conn.commit();
-
          }
       }
    }



More information about the exo-jcr-commits mailing list