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:
Gavin Cornwell
2011-09-30 23:01:45 +00:00
parent c5f94ae12e
commit e61f82058f
2 changed files with 5 additions and 5 deletions

View File

@@ -793,12 +793,12 @@ public class SiteServiceImpl extends AbstractLifecycleBean implements SiteServic
sp.addStore(siteRoot.getStoreRef()); sp.addStore(siteRoot.getStoreRef());
sp.setLanguage(SearchService.LANGUAGE_LUCENE); sp.setLanguage(SearchService.LANGUAGE_LUCENE);
sp.setQuery(query.toString()); sp.setQuery(query.toString());
if (size != 0) if (size > 0)
{ {
sp.setLimit(size); sp.setLimit(size);
sp.setLimitBy(LimitBy.FINAL_SIZE); sp.setLimitBy(LimitBy.FINAL_SIZE);
} }
ResultSet results = this.searchService.query(sp); ResultSet results = this.searchService.query(sp);
try try
{ {
result = new ArrayList<SiteInfo>(results.length()); 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" // Ignore any node type that is not a "site"
QName siteClassName = this.nodeService.getType(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)); result.add(createSiteInfo(site));
} }

View File

@@ -280,8 +280,8 @@ function testSiteCustomProperties()
// Execute test's // Execute test's
testCRUD(); testCRUD();
testListSites(); testListSites();
//testFindSites(); testFindSites();
//testGetSites(); testGetSites();
testMembership(); testMembership();
testContainer(); testContainer();
testPermissions(); testPermissions();