From ee8bd08296b5820e7075148119195425d4024bbd Mon Sep 17 00:00:00 2001 From: Tom Page Date: Mon, 30 Nov 2015 08:51:28 +0000 Subject: [PATCH] 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 --- .../repo/model/filefolder/RemoteFileFolderLoaderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/test-java/org/alfresco/repo/model/filefolder/RemoteFileFolderLoaderTest.java b/source/test-java/org/alfresco/repo/model/filefolder/RemoteFileFolderLoaderTest.java index f9f3b8e0e5..d9c694c097 100644 --- a/source/test-java/org/alfresco/repo/model/filefolder/RemoteFileFolderLoaderTest.java +++ b/source/test-java/org/alfresco/repo/model/filefolder/RemoteFileFolderLoaderTest.java @@ -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); } }