mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged AVMService into the rest of Alfresco. It all comes up in
the same ApplicationContext. Some adjustments to tests needed, but everything is passing. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3414 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -19,7 +19,9 @@ package org.alfresco.repo.avm;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.PrintStream;
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.TreeMap;
|
||||
|
||||
@@ -59,9 +61,8 @@ public class AVMServiceTestBase extends TestCase
|
||||
@Override
|
||||
protected void setUp() throws Exception
|
||||
{
|
||||
// HibernateHelper.GetSessionFactory().getStatistics().setStatisticsEnabled(true);
|
||||
fContext = new FileSystemXmlApplicationContext("config/alfresco/avm-test-context.xml");
|
||||
fService = (AVMService)fContext.getBean("avmService");
|
||||
fService = (AVMService)fContext.getBean("AVMService");
|
||||
fReaper = (OrphanReaper)fContext.getBean("orphanReaper");
|
||||
fStartTime = System.currentTimeMillis();
|
||||
}
|
||||
@@ -74,10 +75,15 @@ public class AVMServiceTestBase extends TestCase
|
||||
{
|
||||
long now = System.currentTimeMillis();
|
||||
System.out.println("Timing: " + (now - fStartTime) + "ms");
|
||||
// Statistics stats = HibernateHelper.GetSessionFactory().getStatistics();
|
||||
// stats.logSummary();
|
||||
// stats.clear();
|
||||
List<AVMStoreDescriptor> descriptors = fService.getAVMStores();
|
||||
for (AVMStoreDescriptor desc : descriptors)
|
||||
{
|
||||
fService.purgeAVMStore(desc.getName());
|
||||
}
|
||||
fContext.close();
|
||||
File alfData = new File("alf_data");
|
||||
File target = new File("alf_data" + now);
|
||||
alfData.renameTo(target);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user