mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
108040: Merged 5.0.N (5.0.3) to HEAD-BUG-FIX (5.1/Cloud) 107606: Merged V4.2-BUG-FIX (4.2.5) to 5.0.N (5.0.3) 107460: Merged V4.1-BUG-FIX (4.1.11) to V4.2-BUG-FIX (4.2.5) 107307: Merged DEV to V4.1-BUG-FIX (4.1.11) 107064 : MNT-13719 : CLONE - Comments' counter is working incorrectly after reversion major version of the uploaded document. - Added a test git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@108071 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -250,6 +250,22 @@ public class VersionServiceImplTest extends BaseVersionStoreTest
|
||||
return false;
|
||||
}
|
||||
|
||||
// MNT-13647, MNT-13719 check for comment count in node property
|
||||
public void testCommentsCountProperty() {
|
||||
final String COMMENT = "<p>Comment</p>";
|
||||
|
||||
NodeRef versionableNode = createNewVersionableNode();
|
||||
addComment(versionableNode, COMMENT, false);
|
||||
|
||||
// Test scenario 1
|
||||
Version v1 = createVersion(versionableNode);
|
||||
addComment(versionableNode, COMMENT, false);
|
||||
Version v2 = createVersion(versionableNode);
|
||||
this.versionService.revert(versionableNode, v1);
|
||||
|
||||
assertEquals("Incorrect comments count:", 2, nodeService.getProperty(versionableNode, ForumModel.PROP_COMMENT_COUNT));
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the creation of the initial version of a versionable node
|
||||
*/
|
||||
|
Reference in New Issue
Block a user