RM-4199: finalised unit tests for RMSiteEntityResource started on unit

tests for RMSitesImpl, made some minor fixes
This commit is contained in:
Silviu Dinuta
2016-10-26 17:52:50 +03:00
parent 77031f9b42
commit efa830881c
4 changed files with 400 additions and 19 deletions

View File

@@ -62,7 +62,7 @@ public class RMSite extends Site
this.title = site.getTitle();
this.description = site.getDescription();
this.visibility = site.getVisibility();
this.role = getRole();
this.role = site.getRole();
this.compliance = compliance;
}

View File

@@ -38,7 +38,6 @@ import org.alfresco.rest.framework.resource.parameters.Parameters;
import org.alfresco.rm.rest.api.RMSites;
import org.alfresco.rm.rest.api.model.RMSite;
import org.alfresco.rm.rest.api.model.SiteUpdate;
import org.alfresco.service.cmr.site.SiteVisibility;
/**
* RM Site operations
@@ -120,7 +119,7 @@ public class RMSiteEntityResource implements EntityResourceAction.Delete, Entity
// Bind valid fields to a SiteUpdate instance.
final String title = site.getTitle();
final String description = site.getDescription();
SiteUpdate update = new SiteUpdate(title, description, SiteVisibility.PUBLIC);
SiteUpdate update = new SiteUpdate(title, description, null);
return sites.updateRMSite(siteId, update, parameters);
}