ACE-4766 Fix intermittent unit test.

Previous fix for this issue changed the unit test to be consistent with the
alfresco-text-gen library, so that they both counted characters. Actually both
should count bytes. Fix the library to count bytes, update the dependency and
revert the change to the testLoad_15_default unit test.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@118819 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tom Page
2015-11-30 08:51:28 +00:00
parent 98db032925
commit ee8bd08296

View File

@@ -195,7 +195,7 @@ public class RemoteFileFolderLoaderTest extends BaseWebScriptTest
// We also expect the default language description to be present
String description = (String) nodeService.getProperty(fileNodeRef, ContentModel.PROP_DESCRIPTION);
assertNotNull("No description", description);
assertEquals("Description length incorrect: \"" + description + "\"", 128L, description.length());
assertEquals("Description length incorrect: \"" + description + "\"", 128L, description.getBytes("UTF-8").length);
}
}