public class SiteServiceImplMoreTest
extends java.lang.Object
SiteServiceImpl - in addition to those already
included in SiteServiceImplTest. This uses JUnit 4 annotations and JUnit Rules.
TODO Refactor the two classes together into one common approach.| Modifier and Type | Field and Description |
|---|---|
static ApplicationContextInit |
APP_CONTEXT_INIT |
org.junit.rules.RuleChain |
ruleChain |
RunAsFullyAuthenticatedRule |
runAllTestsAsAdmin |
static TemporarySites |
STATIC_TEST_SITES |
static org.junit.rules.RuleChain |
staticRuleChain |
AlfrescoPerson |
testUser |
| Constructor and Description |
|---|
SiteServiceImplMoreTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
anySiteManagerShouldBeAbleToDeleteASite()
This method ensures that sites can be deleted by any SiteManager, not just the Site Creator (ALF-15257).
|
static void |
initStaticData() |
void |
listSitesIncludingSubTypesOfSite()
This method ensures that
SiteService.listSites(String) includes content subtypes of st:site. |
public static ApplicationContextInit APP_CONTEXT_INIT
public static TemporarySites STATIC_TEST_SITES
public static org.junit.rules.RuleChain staticRuleChain
public RunAsFullyAuthenticatedRule runAllTestsAsAdmin
public AlfrescoPerson testUser
public org.junit.rules.RuleChain ruleChain
public static void initStaticData()
throws java.lang.Exception
java.lang.Exceptionpublic void listSitesIncludingSubTypesOfSite()
throws java.lang.Exception
SiteService.listSites(String) includes content subtypes of st:site.java.lang.Exceptionpublic void anySiteManagerShouldBeAbleToDeleteASite()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.