mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user