mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-9153 Convert the discussions single post update webscript to de-lucened java backed
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29772 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -426,9 +426,11 @@ public class DiscussionServiceImplTest
|
||||
// Check them
|
||||
assertEquals(topic.getTitle(), post.getTitle());
|
||||
assertEquals(contents, post.getContents());
|
||||
assertEquals(null, post.getUpdatedAt());
|
||||
|
||||
assertEquals(null, reply.getTitle());
|
||||
assertEquals(replyContents, reply.getContents());
|
||||
assertEquals(null, reply.getUpdatedAt());
|
||||
|
||||
|
||||
// Fetch and re-check
|
||||
@@ -437,9 +439,11 @@ public class DiscussionServiceImplTest
|
||||
|
||||
assertEquals(topic.getTitle(), post.getTitle());
|
||||
assertEquals(contents, post.getContents());
|
||||
assertEquals(null, post.getUpdatedAt());
|
||||
|
||||
assertEquals(null, reply.getTitle());
|
||||
assertEquals(replyContents, reply.getContents());
|
||||
assertEquals(null, reply.getUpdatedAt());
|
||||
|
||||
|
||||
// Edit them
|
||||
@@ -461,6 +465,12 @@ public class DiscussionServiceImplTest
|
||||
assertEquals(rTitle, reply.getTitle());
|
||||
assertEquals(rContents, reply.getContents());
|
||||
|
||||
// Check that the modified and updated dates were set
|
||||
assertNotNull(post.getUpdatedAt());
|
||||
assertNotNull(post.getModifiedAt());
|
||||
assertNotNull(reply.getUpdatedAt());
|
||||
assertNotNull(reply.getModifiedAt());
|
||||
|
||||
|
||||
// Check the changes were taken
|
||||
post = DISCUSSION_SERVICE.getPost(topic, post.getSystemName());
|
||||
@@ -472,6 +482,12 @@ public class DiscussionServiceImplTest
|
||||
assertEquals(rTitle, reply.getTitle());
|
||||
assertEquals(rContents, reply.getContents());
|
||||
|
||||
// Check that the modified and updated dates were set
|
||||
assertNotNull(post.getUpdatedAt());
|
||||
assertNotNull(post.getModifiedAt());
|
||||
assertNotNull(reply.getUpdatedAt());
|
||||
assertNotNull(reply.getModifiedAt());
|
||||
|
||||
|
||||
// Remove the title from the topic manually
|
||||
String oldTitle = topic.getTitle();
|
||||
|
Reference in New Issue
Block a user