mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed ALF-10541: Test disabled: BlogServiceImplTest findBlogPostsByPublishedDate and testCreateDraftPostWithTagsAndComment
Fixed underlying issue and re-instated the tests. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30825 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -310,6 +310,7 @@ public class BlogServiceImpl implements BlogService
|
||||
{
|
||||
luceneResults = searchService.query(sp);
|
||||
final ResultSet finalLuceneResults = luceneResults;
|
||||
final List<NodeRef> nodeRefs = finalLuceneResults.getNodeRefs();
|
||||
|
||||
results = new PagingResults<BlogPostInfo>()
|
||||
{
|
||||
@@ -317,7 +318,6 @@ public class BlogServiceImpl implements BlogService
|
||||
@Override
|
||||
public List<BlogPostInfo> getPage()
|
||||
{
|
||||
List<NodeRef> nodeRefs = finalLuceneResults.getNodeRefs();
|
||||
List<BlogPostInfo> blogPostInfos = new ArrayList<BlogPostInfo>(nodeRefs.size());
|
||||
for (NodeRef nodeRef : nodeRefs)
|
||||
{
|
||||
|
@@ -354,7 +354,7 @@ public class BlogServiceImplTest
|
||||
/**
|
||||
* This test method uses the eventually consistent find*() method and so may fail if Lucene is disabled.
|
||||
*/
|
||||
public void findBlogPostsByPublishedDate() throws Exception
|
||||
@Test public void findBlogPostsByPublishedDate() throws Exception
|
||||
{
|
||||
final List<String> tags = Arrays.asList(new String[]{"hello", "goodbye"});
|
||||
|
||||
|
Reference in New Issue
Block a user