org.alfresco.repo.site
Class SiteServiceImplTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.springframework.test.ConditionalTestCase
org.springframework.test.AbstractSpringContextTests
org.springframework.test.AbstractSingleSpringContextTests
org.springframework.test.AbstractDependencyInjectionSpringContextTests
org.springframework.test.AbstractTransactionalSpringContextTests
org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
org.alfresco.util.BaseSpringTest
org.alfresco.util.BaseAlfrescoSpringTest
org.alfresco.repo.site.SiteServiceImplTest
- All Implemented Interfaces:
- junit.framework.Test
public class SiteServiceImplTest
- extends BaseAlfrescoSpringTest
Site service implementation unit test
Fields inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
jdbcTemplate |
Fields inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
transactionDefinition, transactionManager, transactionStatus |
Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO |
Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests |
applicationContext |
Fields inherited from class org.springframework.test.ConditionalTestCase |
logger |
Methods inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setDataSource, setSqlScriptEncoding |
Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
endTransaction, isDefaultRollback, isRollback, onSetUp, onSetUpBeforeTransaction, onTearDown, onTearDownAfterTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction |
Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables |
Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests |
contextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigPath, getConfigPaths, getLoadCount, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDown |
Methods inherited from class org.springframework.test.AbstractSpringContextTests |
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty |
Methods inherited from class org.springframework.test.ConditionalTestCase |
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SiteServiceImplTest
public SiteServiceImplTest()
onSetUpInTransaction
protected void onSetUpInTransaction()
throws java.lang.Exception
- Called during the transaction setup
- Overrides:
onSetUpInTransaction
in class BaseAlfrescoSpringTest
- Throws:
java.lang.Exception
testCreateSite
public void testCreateSite()
throws java.lang.Exception
- Throws:
java.lang.Exception
testETHREEOH_2133
public void testETHREEOH_2133()
throws java.lang.Exception
- Test for duplicate site exception where the duplicate is a private site.
- Throws:
java.lang.Exception
testETHREEOH_15
public void testETHREEOH_15()
throws java.lang.Exception
- Throws:
java.lang.Exception
testListSites
public void testListSites()
throws java.lang.Exception
- Test listSite methods.
- Throws:
java.lang.Exception
testGetSite
public void testGetSite()
testUpdateSite
public void testUpdateSite()
testDeleteSite
public void testDeleteSite()
testIsPublic
public void testIsPublic()
testMembership
public void testMembership()
testJoinLeave
public void testJoinLeave()
testContainer
public void testContainer()
testSiteGetRoles
public void testSiteGetRoles()
testCustomSiteProperties
public void testCustomSiteProperties()
testGroupMembership
public void testGroupMembership()
testSiteVisibility
public void testSiteVisibility()
- Tests the visibility of a site
See https://issues.alfresco.com/jira/browse/JAWS-291
testALFCOM_3109
public void testALFCOM_3109()
- Create a site with a USER manager.
Add Group manager membership.
Lower User membership - should be O.K. because of Group Membership
Lower Group membership - should be prevented (last manager)
Reset User membership to Manager
Lower Group membership - should be O.K. because of User Membership
Lower User membership - should be prevented (last manager)
testALFCOM_3111
public void testALFCOM_3111()
- Create a site with a USER manager.
Add Group manager membership.
Remove User membership - should be O.K. because of Group Membership
Remove Group membership - should be prevented (last manager)
Add User membership to Manager
Remove Group membership - should be O.K. because of User Membership
Remove User membership - should be prevented (last manager)
testETHREEOH_1268
public void testETHREEOH_1268()
- Create a private site.
Attempt to access a private site by someone that is not a consumer of that site.
testJSAPI
public void testJSAPI()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.