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:
Gavin Cornwell
2011-09-28 15:29:41 +00:00
parent 41600c95ba
commit acb0bbf7ee
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
{

View File

@@ -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"});