diff --git a/source/java/org/alfresco/repo/tenant/MultiTDemoSystemTest.java b/source/java/org/alfresco/repo/tenant/MultiTDemoTest.java old mode 100755 new mode 100644 similarity index 95% rename from source/java/org/alfresco/repo/tenant/MultiTDemoSystemTest.java rename to source/java/org/alfresco/repo/tenant/MultiTDemoTest.java index b417fb8622..5f09c8ff40 --- a/source/java/org/alfresco/repo/tenant/MultiTDemoSystemTest.java +++ b/source/java/org/alfresco/repo/tenant/MultiTDemoTest.java @@ -62,13 +62,16 @@ import org.alfresco.util.ApplicationContextHelper; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.context.ApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; -public class MultiTDemoSystemTest extends TestCase +public class MultiTDemoTest extends TestCase { - private static Log logger = LogFactory.getLog(MultiTDemoSystemTest.class); - - private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext(); + private static Log logger = LogFactory.getLog(MultiTDemoTest.class); + private static ApplicationContext ctx =new ClassPathXmlApplicationContext( + new String[] {ApplicationContextHelper.CONFIG_LOCATIONS[0], "classpath:tenant/mt-*context.xml"} + ); + private NodeService nodeService; private AuthenticationService authenticationService; private PersonService personService; @@ -105,7 +108,7 @@ public class MultiTDemoSystemTest extends TestCase public static StoreRef SPACES_STORE = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore"); - public MultiTDemoSystemTest() + public MultiTDemoTest() { } @@ -559,7 +562,7 @@ public class MultiTDemoSystemTest extends TestCase public static void main(String args[]) { System.out.println(new Date()); - junit.textui.TestRunner.run(MultiTDemoSystemTest.class); + junit.textui.TestRunner.run(MultiTDemoTest.class); System.out.println(new Date()); } diff --git a/source/test-resources/tenant/mt-admin-context.xml b/source/test-resources/tenant/mt-admin-context.xml new file mode 100644 index 0000000000..318d3bee71 --- /dev/null +++ b/source/test-resources/tenant/mt-admin-context.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + alfresco.messages.tenant-interpreter-help + + + + + diff --git a/source/test-resources/tenant/mt-contentstore-context.xml b/source/test-resources/tenant/mt-contentstore-context.xml new file mode 100644 index 0000000000..dec5bd5289 --- /dev/null +++ b/source/test-resources/tenant/mt-contentstore-context.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + org.alfresco.cache.tenantFileStoresCache + + + + + + + + + + + + ${dir.contentstore} + + + + + + + + + + + + + + + + + + + + + + + + + + 14 + + + + + + + + + + + + + + + + + + + + + diff --git a/source/test-resources/tenant/mt-context.xml b/source/test-resources/tenant/mt-context.xml new file mode 100644 index 0000000000..d2a1d3f43a --- /dev/null +++ b/source/test-resources/tenant/mt-context.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + org.alfresco.cache.tenantsCache + + + + + + + + + + + + + + + + org.alfresco.tenantsTransactionalCache + + + 10 + + + + + + + + + + + + + + + + +