1 4 package com.openedit.archive.cumulus; 5 6 import java.util.ArrayList ; 7 8 import junit.textui.TestRunner; 9 10 import org.junit.runner.Runner; 11 12 import com.canto.cumulus.ServerCatalog; 13 import com.openedit.archive.ArchiveTest; 14 15 public class CumulusSyncTest extends ArchiveTest 16 { 17 public CumulusSyncTest(String inArg0) 18 { 19 super(inArg0); 20 } 21 22 public static void main(String [] args) 23 { 24 new TestRunner().run(new CumulusSyncTest("testReindex")); 26 } 27 39 public void testSync() throws Exception  40 { 41 CumulusSyncConverter converter = (CumulusSyncConverter)getFixture().getModuleManager().getBean("cumulusSyncConverter"); 43 converter.convert(getArchive().getStore(), new ArrayList ()); 44 } 45 46 public void testUserSync() throws Exception  47 { 48 CumulusUserConverter converter = (CumulusUserConverter)getFixture().getModuleManager().getBean("cumulusUserConverter"); 50 51 ServerCatalog cat = converter.getServerCatalogs().getServerCatalog("$Users"); 52 converter.parseUsers(cat, getArchive()); 53 } 54 public void XtestReindex() throws Exception  55 { 56 getArchive().getStore().reindexAll(); 57 } 58 public void testLogConvert() throws Exception  59 { 60 CumulusSyncConverter converter = (CumulusSyncConverter)getFixture().getModuleManager().getBean("cumulusSyncConverter"); 61 converter.convert(getArchive().getStore(), new ArrayList ()); 62 } 63 protected void tearDown() throws Exception  64 { 65 super.tearDown(); 66 } 68 } 69 | Popular Tags |