mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
REPO-2774: add the correct ApplicationContextHelper.getApplicationContext method call for getting the context in the setUp method
This commit is contained in:
@@ -39,8 +39,7 @@ public class AppContextExtra02TestSuite extends TestSuite
|
||||
AllRepositoryTestsCatalogue.applicationContext_testSubscriptionsContext(suite);
|
||||
AllRepositoryTestsCatalogue.applicationContext_openCmisContext(suite);
|
||||
AllRepositoryTestsCatalogue.applicationContext_cacheTestContext(suite);
|
||||
// TODO Uncomment the following line after REPO-2790 is implemented
|
||||
// AllRepositoryTestsCatalogue.applicationContext_mtAllContext(suite);
|
||||
AllRepositoryTestsCatalogue.applicationContext_mtAllContext(suite);
|
||||
|
||||
return suite;
|
||||
}
|
||||
|
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Repository
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2017 Alfresco Software Limited
|
||||
* %%
|
||||
* This file is part of the Alfresco software.
|
||||
* If the software was purchased under a paid Alfresco license, the terms of
|
||||
* the paid license agreement will prevail. Otherwise, the software is
|
||||
* provided under the following open source license terms:
|
||||
*
|
||||
* 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/>.
|
||||
* #L%
|
||||
*/
|
||||
package org.alfresco;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* Temporary class. Please read the comments on {@link AppContextExtra02TestSuite}
|
||||
*
|
||||
* Tests were split just because the limitation on the bamboo agents DB config see REPO-2790
|
||||
*/
|
||||
public class AppContextExtra03TestSuite extends TestSuite
|
||||
{
|
||||
public static Test suite()
|
||||
{
|
||||
TestSuite suite = new TestSuite();
|
||||
|
||||
AllRepositoryTestsCatalogue.applicationContext_mtAllContext(suite);
|
||||
|
||||
return suite;
|
||||
}
|
||||
}
|
@@ -182,8 +182,7 @@ public class MultiTDemoTest extends TestCase
|
||||
protected void setUp() throws Exception
|
||||
{
|
||||
super.setUp();
|
||||
ctx = new ClassPathXmlApplicationContext(
|
||||
new String[] { ApplicationContextHelper.CONFIG_LOCATIONS[0], "classpath:tenant/mt-*context.xml" });
|
||||
ctx = ApplicationContextHelper.getApplicationContext(new String[] { ApplicationContextHelper.CONFIG_LOCATIONS[0], "classpath:tenant/mt-*context.xml" });
|
||||
|
||||
nodeService = (NodeService) ctx.getBean("NodeService");
|
||||
nodeArchiveService = (NodeArchiveService) ctx.getBean("nodeArchiveService");
|
||||
|
Reference in New Issue
Block a user