mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed ALF-10539: Test disabled: SiteServiceImplTest testJSAPI
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -793,12 +793,12 @@ public class SiteServiceImpl extends AbstractLifecycleBean implements SiteServic
|
||||
sp.addStore(siteRoot.getStoreRef());
|
||||
sp.setLanguage(SearchService.LANGUAGE_LUCENE);
|
||||
sp.setQuery(query.toString());
|
||||
if (size != 0)
|
||||
if (size > 0)
|
||||
{
|
||||
sp.setLimit(size);
|
||||
sp.setLimitBy(LimitBy.FINAL_SIZE);
|
||||
}
|
||||
ResultSet results = this.searchService.query(sp);
|
||||
ResultSet results = this.searchService.query(sp);
|
||||
try
|
||||
{
|
||||
result = new ArrayList<SiteInfo>(results.length());
|
||||
@@ -806,7 +806,7 @@ public class SiteServiceImpl extends AbstractLifecycleBean implements SiteServic
|
||||
{
|
||||
// Ignore any node type that is not a "site"
|
||||
QName siteClassName = this.nodeService.getType(site);
|
||||
if (this.dictionaryService.isSubClass(siteClassName, SiteModel.TYPE_SITE))
|
||||
if (this.dictionaryService.isSubClass(siteClassName, SiteModel.TYPE_SITE))
|
||||
{
|
||||
result.add(createSiteInfo(site));
|
||||
}
|
||||
|
Reference in New Issue
Block a user