REPO-2434: Fix testGetPersistentType

- Renamed to testGetPersistentTypeForStrings
 - divorce the test from any dialect that happens to set the string length by setting and resetting the string length
 - Test explicitly around 2000 chars rather than the default


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137722 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2017-06-21 08:52:55 +00:00
parent cf2240d301
commit 4191e3beed
2 changed files with 31 additions and 9 deletions

View File

@@ -189,7 +189,7 @@ public class SchemaBootstrap extends AbstractLifecycleBean
/**
* @see #DEFAULT_MAX_STRING_LENGTH
*/
private static final void setMaxStringLength(int length, Dialect dialect)
public static final void setMaxStringLength(int length, Dialect dialect)
{
int max = (dialect instanceof AlfrescoMySQLClusterNDBDialect ? DEFAULT_MAX_STRING_LENGTH_NDB : DEFAULT_MAX_STRING_LENGTH);