mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-30 18:15:39 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20917 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
100 lines
3.2 KiB
Java
100 lines
3.2 KiB
Java
/*
|
|
* Copyright (C) 2005-2010 Alfresco Software Limited.
|
|
*
|
|
* This file is part of Alfresco
|
|
*
|
|
* Alfresco is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Alfresco is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
package org.alfresco.repo.avm;
|
|
|
|
import junit.framework.Test;
|
|
import junit.framework.TestSuite;
|
|
|
|
import org.alfresco.repo.avm.locking.AVMLockingServiceTest;
|
|
import org.alfresco.repo.avm.util.VersionPathTest;
|
|
import org.alfresco.util.ApplicationContextHelper;
|
|
import org.springframework.context.ApplicationContext;
|
|
|
|
/**
|
|
* AVM test suite
|
|
*
|
|
* @author brittp, janv
|
|
*/
|
|
public class AVMTestSuite extends TestSuite
|
|
{
|
|
public static ApplicationContext getContext()
|
|
{
|
|
ApplicationContextHelper.setUseLazyLoading(false);
|
|
ApplicationContextHelper.setNoAutoStart(true);
|
|
|
|
/*
|
|
return ApplicationContextHelper.getApplicationContext(
|
|
new String[] { "classpath:alfresco/minimal-context.xml" }
|
|
);
|
|
*/
|
|
|
|
return ApplicationContextHelper.getApplicationContext();
|
|
}
|
|
|
|
/**
|
|
* Creates the test suite
|
|
*
|
|
* @return the test suite
|
|
*/
|
|
public static Test suite()
|
|
{
|
|
// Setup the context
|
|
getContext();
|
|
|
|
TestSuite suite = new TestSuite();
|
|
|
|
|
|
// Add the tests to be run
|
|
|
|
suite.addTestSuite(AVMNodeConverterTest.class);
|
|
suite.addTestSuite(AVMExpiredContentTest.class);
|
|
suite.addTestSuite(AVMDeploymentAttemptCleanerTest.class);
|
|
|
|
suite.addTestSuite(PurgeTestP.class);
|
|
|
|
suite.addTestSuite(AVMServiceTestBase.class);
|
|
suite.addTestSuite(AVMServiceTest.class);
|
|
suite.addTestSuite(AVMServiceLocalTest.class);
|
|
suite.addTestSuite(AVMLockingServiceTest.class);
|
|
|
|
suite.addTestSuite(AVMServicePermissionsTest.class);
|
|
suite.addTestSuite(AVMServiceIndexTest.class);
|
|
suite.addTestSuite(AVMServicePerfTest.class);
|
|
suite.addTestSuite(AVMCrawlTestP.class);
|
|
suite.addTestSuite(AVMScaleTestP.class);
|
|
suite.addTestSuite(AVMStressTestP.class);
|
|
|
|
//suite.addTestSuite(PurgeTestP.class);
|
|
|
|
suite.addTestSuite(SimultaneousLoadTest.class);
|
|
suite.addTestSuite(AVMDiffPerformanceTest.class);
|
|
suite.addTestSuite(AVMChildNamePatternMatchPerformanceTest.class);
|
|
|
|
suite.addTestSuite(VersionPathTest.class);
|
|
suite.addTestSuite(WCMInheritPermissionsTest.class);
|
|
|
|
/*
|
|
// note:to test remotely need running repo (otherwise effectively repeats AVMServiceLocalTest)
|
|
suite.addTestSuite(AVMServiceRemoteSystemTest.class);
|
|
*/
|
|
|
|
return suite;
|
|
}
|
|
}
|