Fix to SiteService test related to ability to restore deleted sites

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28935 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2011-07-12 08:44:19 +00:00
parent c0eea3ae95
commit 149b729ab1

View File

@@ -690,9 +690,8 @@ public class SiteServiceImplTest extends BaseAlfrescoSpringTest
// Delete the site // Delete the site
this.siteService.deleteSite(siteShortName); this.siteService.deleteSite(siteShortName);
assertNull(this.siteService.getSite(siteShortName)); assertNull(this.siteService.getSite(siteShortName));
// See ALF-7888. Deleted sites should go straight to /dev/null (via the SiteService)
NodeRef archivedNodeRef = nodeArchiveService.getArchivedNode(siteInfo.getNodeRef()); NodeRef archivedNodeRef = nodeArchiveService.getArchivedNode(siteInfo.getNodeRef());
assertFalse("Deleted sites should not appear in the Trash.", nodeService.exists(archivedNodeRef)); assertTrue("Deleted sites can be recovered from the Trash.", nodeService.exists(archivedNodeRef));
// Ensure that all the related site groups are deleted // Ensure that all the related site groups are deleted
assertFalse(authorityService.authorityExists(((SiteServiceImpl)smallSiteService).getSiteGroup(siteShortName, true))); assertFalse(authorityService.authorityExists(((SiteServiceImpl)smallSiteService).getSiteGroup(siteShortName, true)));