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.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));
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
|
Reference in New Issue
Block a user