diff --git a/src/test/java/org/alfresco/AppContextExtra02TestSuite.java b/src/test/java/org/alfresco/AppContextExtra02TestSuite.java index eb5ead45ab..d3c1d45f34 100644 --- a/src/test/java/org/alfresco/AppContextExtra02TestSuite.java +++ b/src/test/java/org/alfresco/AppContextExtra02TestSuite.java @@ -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; } diff --git a/src/test/java/org/alfresco/AppContextExtra03TestSuite.java b/src/test/java/org/alfresco/AppContextExtra03TestSuite.java deleted file mode 100644 index af7b44b488..0000000000 --- a/src/test/java/org/alfresco/AppContextExtra03TestSuite.java +++ /dev/null @@ -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 . - * #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; - } -} diff --git a/src/test/java/org/alfresco/repo/tenant/MultiTDemoTest.java b/src/test/java/org/alfresco/repo/tenant/MultiTDemoTest.java index 4bd11b5ad9..a8af439ea7 100644 --- a/src/test/java/org/alfresco/repo/tenant/MultiTDemoTest.java +++ b/src/test/java/org/alfresco/repo/tenant/MultiTDemoTest.java @@ -181,9 +181,8 @@ public class MultiTDemoTest extends TestCase @Override protected void setUp() throws Exception { - super.setUp(); - ctx = new ClassPathXmlApplicationContext( - new String[] { ApplicationContextHelper.CONFIG_LOCATIONS[0], "classpath:tenant/mt-*context.xml" }); + super.setUp(); + ctx = ApplicationContextHelper.getApplicationContext(new String[] { ApplicationContextHelper.CONFIG_LOCATIONS[0], "classpath:tenant/mt-*context.xml" }); nodeService = (NodeService) ctx.getBean("NodeService"); nodeArchiveService = (NodeArchiveService) ctx.getBean("nodeArchiveService");