/*
 * Copyright (C) 2003-2012 eXo Platform SAS.
 *
 * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see<http://www.gnu.org/licenses/>.
 */
package org.exoplatform.services.wcm;

import org.exoplatform.commons.testing.BaseExoContainerTestSuite;
import org.exoplatform.commons.testing.ConfigTestCase;
import org.exoplatform.services.cms.clipboard.TestClipboardService;
import org.exoplatform.services.cms.documents.TestDocumentTypeService;
import org.exoplatform.services.cms.lock.impl.TestLockService;
import org.exoplatform.services.deployment.TestWCMContentInitializerService;
import org.exoplatform.services.ecm.dms.cms.TestCmsService;
import org.exoplatform.services.ecm.dms.comment.TestCommentService;
import org.exoplatform.services.ecm.dms.configuration.TestDMSConfigurationService;
import org.exoplatform.services.ecm.dms.documents.TestFavoriteService;
import org.exoplatform.services.ecm.dms.documents.TestTrashService;
import org.exoplatform.services.ecm.dms.drive.TestDriveService;
import org.exoplatform.services.ecm.dms.folksonomy.TestNewFolksonomyService;
import org.exoplatform.services.ecm.dms.i18n.TestMultiLanguageService;
import org.exoplatform.services.ecm.dms.link.TestLinkManager;
import org.exoplatform.services.ecm.dms.metadata.TestMetadataService;
import org.exoplatform.services.ecm.dms.queries.TestQueryService;
import org.exoplatform.services.ecm.dms.relation.TestRelationsService;
import org.exoplatform.services.ecm.dms.scripts.TestScriptService;
import org.exoplatform.services.ecm.dms.taxonomy.TestTaxonomyService;
import org.exoplatform.services.ecm.dms.template.TestTemplateService;
import org.exoplatform.services.ecm.dms.test.LinkUtilsTest;
import org.exoplatform.services.ecm.dms.test.TestSymLink;
import org.exoplatform.services.ecm.dms.thumbnail.TestThumbnailService;
import org.exoplatform.services.ecm.dms.timeline.TestTimelineService;
import org.exoplatform.services.ecm.dms.view.TestApplicationTemplateManagerService;
import org.exoplatform.services.ecm.dms.view.TestManageViewService;
import org.exoplatform.services.ecm.dms.voting.TestVotingService;
import org.exoplatform.services.ecm.dms.watchdocument.TestWatchDocumentService;
import org.exoplatform.services.pdfviewer.TestPDFViewerService;
import org.exoplatform.services.portletcache.TestFragmentCacheService;
import org.exoplatform.services.portletcache.TestPortletFutureCache;
import org.exoplatform.services.seo.TestSEOService;
import org.exoplatform.services.wcm.core.TestWCMConfigurationService;
import org.exoplatform.services.wcm.core.TestWCMService;
import org.exoplatform.services.wcm.core.TestWebSchemaConfigService;
import org.exoplatform.services.wcm.core.link.TestLiveLinkManagerService;
import org.exoplatform.services.wcm.friendly.TestFriendlyService;
import org.exoplatform.services.wcm.javascript.TestXJavaScriptService;
import org.exoplatform.services.wcm.portal.artifacts.TestCreatePortalArtifactsService;
import org.exoplatform.services.wcm.skin.TestXSkinService;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;

/**
 * Created by The eXo Platform SAS
 * Author : Pham Duy Dong
 *          dongpd@exoplatform.com
 */
@RunWith(Suite.class)
@SuiteClasses({ 
  TestWCMContentInitializerService.class,
  TestXJavaScriptService.class,
  TestWCMService.class,
  TestWebSchemaConfigService.class,
        /**  To be activated later
  TestLiveLinkManagerService.class,
         /** END**/
  TestWCMConfigurationService.class,
  TestFriendlyService.class,
  TestCreatePortalArtifactsService.class,
  TestXSkinService.class,
  TestFragmentCacheService.class,
  TestPortletFutureCache.class,
  TestDocumentTypeService.class,
  TestLockService.class,
  TestTrashService.class,
  TestFavoriteService.class,
  TestNewFolksonomyService.class,
  TestRelationsService.class,
  TestDriveService.class,
  TestTimelineService.class,
  TestMultiLanguageService.class,
  TestWatchDocumentService.class,
  TestTemplateService.class,
  TestScriptService.class,
  TestVotingService.class,
  TestCmsService.class,
  TestManageViewService.class,
  TestApplicationTemplateManagerService.class,
  TestCommentService.class,
  TestMetadataService.class,
  TestQueryService.class,
  TestLinkManager.class,
  TestTaxonomyService.class,
  LinkUtilsTest.class,
  TestSymLink.class,
  TestDMSConfigurationService.class,
  TestThumbnailService.class,
  TestSEOService.class,
  TestClipboardService.class,
  TestPDFViewerService.class
})
@ConfigTestCase(BaseWCMTestCase.class)
public class BaseWCMTestSuite extends BaseExoContainerTestSuite {

  @BeforeClass
  public static void setUp() throws Exception {
    initConfiguration(BaseWCMTestSuite.class);
    beforeSetup();
  }

  @AfterClass
  public static void tearDown() {
    afterTearDown();
  }
}
