/* * 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 . */ 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(AVMServiceTestBase.class); suite.addTestSuite(AVMServiceTest.class); suite.addTestSuite(AVMServiceLocalTest.class); suite.addTestSuite(AVMLockingServiceTest.class); suite.addTestSuite(PurgeTestP.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; } }