mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
58756: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3) 58733: Merged DEV to V4.2-BUG-FIX (4.2.1) 58696: MNT-9111 : MS SQL Server 2008 R2 where user's default schema is not 'dbo', schema validator fails on subsequent restarts and application fails startup Fixed SchemaBootstrap to use the required schema from db.schema.name property if set. 58712: MNT-9111 : MS SQL Server 2008 R2 where user's default schema is not 'dbo', schema validator fails on subsequent restarts and application fails startup Corrected the fix from r58696. Added the db.schema.name to repository.properties. Corrected property handling. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62030 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2012 Alfresco Software Limited.
|
||||
* Copyright (C) 2005-2013 Alfresco Software Limited.
|
||||
*
|
||||
* This file is part of Alfresco
|
||||
*
|
||||
@@ -61,14 +61,14 @@ public class MultiFileDumperTest
|
||||
public void exceptionThrownWhenZeroPrefixesUsed()
|
||||
{
|
||||
// Shouldn't be able to construct a dumper with no prefixes to dump.
|
||||
new MultiFileDumper(new String[] {}, TempFileProvider.getTempDir(), "", dbToXMLFactory);
|
||||
new MultiFileDumper(new String[] {}, TempFileProvider.getTempDir(), "", dbToXMLFactory, null);
|
||||
}
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
public void exceptionThrownWhenNullPrefixListUsed()
|
||||
{
|
||||
// Shouldn't be able to construct a dumper with no prefixes to dump.
|
||||
new MultiFileDumper(null, TempFileProvider.getTempDir(), "", dbToXMLFactory);
|
||||
new MultiFileDumper(null, TempFileProvider.getTempDir(), "", dbToXMLFactory, null);
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ public class MultiFileDumperTest
|
||||
File directory = TempFileProvider.getTempDir();
|
||||
String fileNamePattern = "SchemaDump-MySQL-{0}-";
|
||||
|
||||
MultiFileDumper dumper = new MultiFileDumper(prefixes, directory, fileNamePattern, dbToXMLFactory);
|
||||
MultiFileDumper dumper = new MultiFileDumper(prefixes, directory, fileNamePattern, dbToXMLFactory, null);
|
||||
|
||||
when(dbToXMLFactory.create(argThat(isFileNameStartingWith("SchemaDump-MySQL-a_-")), eq("a_"))).
|
||||
thenReturn(dbToXMLForA);
|
||||
@@ -106,7 +106,7 @@ public class MultiFileDumperTest
|
||||
File directory = TempFileProvider.getTempDir();
|
||||
String fileNamePattern = "SchemaDump-MySQL-{0}-";
|
||||
|
||||
MultiFileDumper dumper = new MultiFileDumper(directory, fileNamePattern, dbToXMLFactory);
|
||||
MultiFileDumper dumper = new MultiFileDumper(directory, fileNamePattern, dbToXMLFactory, null);
|
||||
|
||||
Map<String, DbToXML> xmlExporters = new HashMap<String, DbToXML>(MultiFileDumper.DEFAULT_PREFIXES.length);
|
||||
|
||||
|
Reference in New Issue
Block a user