com.stratelia.webactiv.beans.admin
Class AssignRightTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.DatabaseTestCase
              extended by org.dbunit.DBTestCase
                  extended by org.dbunit.JndiBasedDBTestCase
                      extended by com.silverpeas.components.model.AbstractTestDao
                          extended by com.stratelia.webactiv.beans.admin.AssignRightTest
All Implemented Interfaces:
junit.framework.Test

public class AssignRightTest
extends AbstractTestDao

Author:
ehugonnet

Field Summary
 
Fields inherited from class com.silverpeas.components.model.AbstractTestDao
datasource
 
Constructor Summary
AssignRightTest()
           
 
Method Summary
protected  String getDatasetFileName()
           
protected  String getTableCreationFileName()
           
 void setUp()
           
 void tearDown()
           
 void testAssignFromGroup1ToGroup2AByCopyModeButNotObjectRights()
           
 void testAssignFromGroup1ToGroup2AByCopyModeWithObjectRights()
           
 void testAssignFromGroup1ToGroup2AByReplaceModeWithObjectRights()
           
 void testAssignFromGroup1ToUserAByCopyModeButNotObjectRights()
           
 void testAssignFromGroup1ToUserAByCopyModeWithObjectRights()
           
 void testAssignFromGroup1ToUserBByReplaceModeButNotObjectRights()
           
 void testAssignFromGroup1ToUserBByReplaceModeWithObjectRights()
           
 void testAssignFromGroup2ToGroup1AByReplaceModeButNotObjectRights()
           
 void testAssignFromGroupNoRightsToGroupG1ByCopyModeButNotObjectRights()
           
 void testAssignFromGroupNoRightsToGroupG1ByReplaceModeButNotObjectRights()
           
 void testAssignFromGroupNoRightsToUserAByCopyModeButNotObjectRights()
           
 void testAssignFromGroupNoRightsToUserBByReplaceModeButNotObjectRights()
           
 void testAssignFromNotDefinedEmptySource()
           
 void testAssignFromNotDefinedEmptyTarget()
           
 void testAssignFromNotDefinedNullSource()
           
 void testAssignFromNotDefinedNullStringSource()
           
 void testAssignFromNotDefinedNullStringTarget()
           
 void testAssignFromNotDefinedNullTarget()
           
 void testAssignFromNotDefinedSpacesSource()
           
 void testAssignFromNotDefinedSpacesTarget()
           
 void testAssignFromUserAToUserBByReplaceModeButNotObjectRights()
           
 void testAssignFromUserBToGroupG1ByReplaceModeButNotObjectRights()
           
 void testAssignFromUserBToGroupG1ByReplaceModeWithObjectRights()
           
 void testAssignFromUserBToGroupG2ByCopyModeButNotObjectRights()
           
 void testAssignFromUserBToGroupG2ByCopyModeWithObjectRights()
           
 void testAssignFromUserBToUserAByCopyModeButNotObjectRights()
           
 void testAssignFromUserBToUserAByCopyModeWithObjectRights()
           
 void testAssignFromUserBToUserAByReplaceModeWithObjectRights()
           
 void testAssignFromUserNoRightsToGroupG1ByReplaceModeButNotObjectRights()
           
 void testAssignFromUserNoRightsToGroupG2ByCopyModeButNotObjectRights()
           
 void testAssignFromUserNoRightsToUserBByCopyModeButNotObjectRights()
           
 void testAssignFromUserNoRightsToUserBByReplaceModeButNotObjectRights()
           
 void testDirectKmeliaSubNodeRightMustBeDeletedIfUserHasNoMoreAccessOnKmelia()
           
 void testDirectKmeliaSubNodeRightMustNotBeDeletedIfUserIsInGroupThatHasKmeliaAccess()
           
 void testSameSourceAndTarget()
           
 
Methods inherited from class com.silverpeas.components.model.AbstractTestDao
cleanData, configureJNDIDatasource, getDataSet, getLookupName, getTableCreationScript, getTearDownOperation, prepareData, setUpClass, tearDownClass
 
Methods inherited from class org.dbunit.JndiBasedDBTestCase
getJNDIProperties, newDatabaseTester
 
Methods inherited from class org.dbunit.DBTestCase
getConnection
 
Methods inherited from class org.dbunit.DatabaseTestCase
closeConnection, getDatabaseTester, getOperationListener, getSetUpOperation, setUpDatabaseConfig
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssignRightTest

public AssignRightTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class AbstractTestDao
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class AbstractTestDao
Throws:
Exception

getDatasetFileName

protected String getDatasetFileName()
Specified by:
getDatasetFileName in class AbstractTestDao

getTableCreationFileName

protected String getTableCreationFileName()
Specified by:
getTableCreationFileName in class AbstractTestDao

testDirectKmeliaSubNodeRightMustNotBeDeletedIfUserIsInGroupThatHasKmeliaAccess

public void testDirectKmeliaSubNodeRightMustNotBeDeletedIfUserIsInGroupThatHasKmeliaAccess()
                                                                                    throws AdminException
Throws:
AdminException

testDirectKmeliaSubNodeRightMustBeDeletedIfUserHasNoMoreAccessOnKmelia

public void testDirectKmeliaSubNodeRightMustBeDeletedIfUserHasNoMoreAccessOnKmelia()
                                                                            throws AdminException
Throws:
AdminException

testAssignFromGroup1ToUserAByCopyModeButNotObjectRights

public void testAssignFromGroup1ToUserAByCopyModeButNotObjectRights()
                                                             throws AdminException
Throws:
AdminException

testAssignFromGroup1ToUserAByCopyModeWithObjectRights

public void testAssignFromGroup1ToUserAByCopyModeWithObjectRights()
                                                           throws AdminException
Throws:
AdminException

testAssignFromGroup1ToUserBByReplaceModeButNotObjectRights

public void testAssignFromGroup1ToUserBByReplaceModeButNotObjectRights()
                                                                throws AdminException
Throws:
AdminException

testAssignFromGroup1ToUserBByReplaceModeWithObjectRights

public void testAssignFromGroup1ToUserBByReplaceModeWithObjectRights()
                                                              throws AdminException
Throws:
AdminException

testAssignFromGroupNoRightsToUserAByCopyModeButNotObjectRights

public void testAssignFromGroupNoRightsToUserAByCopyModeButNotObjectRights()
                                                                    throws AdminException
Throws:
AdminException

testAssignFromGroupNoRightsToUserBByReplaceModeButNotObjectRights

public void testAssignFromGroupNoRightsToUserBByReplaceModeButNotObjectRights()
                                                                       throws AdminException
Throws:
AdminException

testAssignFromGroup1ToGroup2AByCopyModeButNotObjectRights

public void testAssignFromGroup1ToGroup2AByCopyModeButNotObjectRights()
                                                               throws AdminException
Throws:
AdminException

testAssignFromGroup1ToGroup2AByCopyModeWithObjectRights

public void testAssignFromGroup1ToGroup2AByCopyModeWithObjectRights()
                                                             throws AdminException
Throws:
AdminException

testAssignFromGroup2ToGroup1AByReplaceModeButNotObjectRights

public void testAssignFromGroup2ToGroup1AByReplaceModeButNotObjectRights()
                                                                  throws AdminException
Throws:
AdminException

testAssignFromGroup1ToGroup2AByReplaceModeWithObjectRights

public void testAssignFromGroup1ToGroup2AByReplaceModeWithObjectRights()
                                                                throws AdminException
Throws:
AdminException

testAssignFromGroupNoRightsToGroupG1ByCopyModeButNotObjectRights

public void testAssignFromGroupNoRightsToGroupG1ByCopyModeButNotObjectRights()
                                                                      throws AdminException
Throws:
AdminException

testAssignFromGroupNoRightsToGroupG1ByReplaceModeButNotObjectRights

public void testAssignFromGroupNoRightsToGroupG1ByReplaceModeButNotObjectRights()
                                                                         throws AdminException
Throws:
AdminException

testAssignFromUserBToGroupG2ByCopyModeButNotObjectRights

public void testAssignFromUserBToGroupG2ByCopyModeButNotObjectRights()
                                                              throws AdminException
Throws:
AdminException

testAssignFromUserBToGroupG2ByCopyModeWithObjectRights

public void testAssignFromUserBToGroupG2ByCopyModeWithObjectRights()
                                                            throws AdminException
Throws:
AdminException

testAssignFromUserBToGroupG1ByReplaceModeButNotObjectRights

public void testAssignFromUserBToGroupG1ByReplaceModeButNotObjectRights()
                                                                 throws AdminException
Throws:
AdminException

testAssignFromUserBToGroupG1ByReplaceModeWithObjectRights

public void testAssignFromUserBToGroupG1ByReplaceModeWithObjectRights()
                                                               throws AdminException
Throws:
AdminException

testAssignFromUserNoRightsToGroupG2ByCopyModeButNotObjectRights

public void testAssignFromUserNoRightsToGroupG2ByCopyModeButNotObjectRights()
                                                                     throws AdminException
Throws:
AdminException

testAssignFromUserNoRightsToGroupG1ByReplaceModeButNotObjectRights

public void testAssignFromUserNoRightsToGroupG1ByReplaceModeButNotObjectRights()
                                                                        throws AdminException
Throws:
AdminException

testAssignFromUserBToUserAByCopyModeButNotObjectRights

public void testAssignFromUserBToUserAByCopyModeButNotObjectRights()
                                                            throws AdminException
Throws:
AdminException

testAssignFromUserBToUserAByCopyModeWithObjectRights

public void testAssignFromUserBToUserAByCopyModeWithObjectRights()
                                                          throws AdminException
Throws:
AdminException

testAssignFromUserAToUserBByReplaceModeButNotObjectRights

public void testAssignFromUserAToUserBByReplaceModeButNotObjectRights()
                                                               throws AdminException
Throws:
AdminException

testAssignFromUserBToUserAByReplaceModeWithObjectRights

public void testAssignFromUserBToUserAByReplaceModeWithObjectRights()
                                                             throws AdminException
Throws:
AdminException

testAssignFromUserNoRightsToUserBByCopyModeButNotObjectRights

public void testAssignFromUserNoRightsToUserBByCopyModeButNotObjectRights()
                                                                   throws AdminException
Throws:
AdminException

testAssignFromUserNoRightsToUserBByReplaceModeButNotObjectRights

public void testAssignFromUserNoRightsToUserBByReplaceModeButNotObjectRights()
                                                                      throws AdminException
Throws:
AdminException

testSameSourceAndTarget

public void testSameSourceAndTarget()
                             throws AdminException
Throws:
AdminException

testAssignFromNotDefinedNullSource

public void testAssignFromNotDefinedNullSource()
                                        throws AdminException
Throws:
AdminException

testAssignFromNotDefinedEmptySource

public void testAssignFromNotDefinedEmptySource()
                                         throws AdminException
Throws:
AdminException

testAssignFromNotDefinedSpacesSource

public void testAssignFromNotDefinedSpacesSource()
                                          throws AdminException
Throws:
AdminException

testAssignFromNotDefinedNullStringSource

public void testAssignFromNotDefinedNullStringSource()
                                              throws AdminException
Throws:
AdminException

testAssignFromNotDefinedNullTarget

public void testAssignFromNotDefinedNullTarget()
                                        throws AdminException
Throws:
AdminException

testAssignFromNotDefinedEmptyTarget

public void testAssignFromNotDefinedEmptyTarget()
                                         throws AdminException
Throws:
AdminException

testAssignFromNotDefinedSpacesTarget

public void testAssignFromNotDefinedSpacesTarget()
                                          throws AdminException
Throws:
AdminException

testAssignFromNotDefinedNullStringTarget

public void testAssignFromNotDefinedNullStringTarget()
                                              throws AdminException
Throws:
AdminException


Copyright © 2016 Silverpeas. All Rights Reserved.