Nick Burch 60573f6fdb Merge the two Model tests suites together
Merging should save a little bit of startup time.
Also, add a few more checks inthe the MultilingualContentServiceImpl test,
 along with more comments explaining what it does.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19199 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-03-10 17:46:41 +00:00

68 lines
2.5 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.model;
import org.alfresco.repo.model.filefolder.FileFolderDuplicateChildTest;
import org.alfresco.repo.model.filefolder.FileFolderServiceImplTest;
import org.alfresco.repo.model.ml.tools.ContentFilterLanguagesMapTest;
import org.alfresco.repo.model.ml.tools.EditionServiceImplTest;
import org.alfresco.repo.model.ml.tools.EmptyTranslationAspectTest;
import org.alfresco.repo.model.ml.tools.MLContainerTypeTest;
import org.alfresco.repo.model.ml.tools.MultilingualContentServiceImplTest;
import org.alfresco.repo.model.ml.tools.MultilingualDocumentAspectTest;
import org.alfresco.util.ApplicationContextHelper;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* Model test suite
*/
public class ModelTestSuite extends TestSuite
{
/**
* Creates the test suite
*
* @return the test suite
*/
public static Test suite()
{
TestSuite suite = new TestSuite();
// Ensure that the default context is available
ApplicationContextHelper.getApplicationContext();
// Add the multilingual tests
suite.addTestSuite( ContentFilterLanguagesMapTest.class );
suite.addTestSuite( EmptyTranslationAspectTest.class );
suite.addTestSuite( MLContainerTypeTest.class );
suite.addTestSuite( MultilingualContentServiceImplTest.class );
suite.addTestSuite( MultilingualDocumentAspectTest.class );
suite.addTestSuite( EditionServiceImplTest.class );
// Add the file folder tests
// These need to come afterwards, as they insert extra
// interceptors which would otherwise confuse things
suite.addTestSuite( FileFolderServiceImplTest.class );
suite.addTestSuite( FileFolderDuplicateChildTest.class );
return suite;
}
}