|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
pt.digitalis.dif.utils.identity.tests.AbstractIdentityManagerImplTest
public abstract class AbstractIdentityManagerImplTest
Defines unit tests for the identity manager implementation.
Field Summary | |
---|---|
protected static String |
A_BULK_ATTRIBUTE_NAME
A bulk parameter name. |
protected static String |
A_BULK_ATTRIBUTE_VALUE
A bulk parameter value. |
protected static String |
A_CHANGED_ATTRIBUTE_VALUE
A changed attribute value. |
protected static String |
A_CHANGED_BULK_ATTRIBUTE_VALUE
A changed bulk parameter value. |
protected static String |
AN_ATTRIBUTE_NAME
An attribute name. |
protected static String |
AN_ATTRIBUTE_VALUE
An attribute value. |
protected static String |
ANOTHER_ATTRIBUTE_NAME
Another attribute name. |
protected static String |
ANOTHER_ATTRIBUTE_VALUE
Another parameter value. |
protected static String |
ANOTHER_BULK_ATTRIBUTE_NAME
Another bulk parameter name. |
protected static String |
ANOTHER_BULK_ATTRIBUTE_VALUE
Another bulk parameter value. |
protected static String |
ANOTHER_CHANGED_ATTRIBUTE_VALUE
Another changed parameter value. |
protected static String |
ANOTHER_CHANGED_BULK_PARAMETER_VALUE
Another changed bulk parameter value. |
protected IIdentityManager |
identityManagerImpl
The test object. |
protected String |
MAIN_GROUP_NAME
Main group name. |
static String |
N_A
The 'N/A' String literal. |
Constructor Summary | |
---|---|
AbstractIdentityManagerImplTest()
|
Method Summary | |
---|---|
protected void |
createGroup()
Creates a group and adds it to the identity manager. |
protected void |
createGroup(String groupName)
Creates a group and adds it to the identity manager. |
protected void |
createGroup(String groupName,
String parentGroup)
Creates a group and adds it to the identity manager. |
protected void |
createUser()
Creates a user and adds it to the identity manager. |
protected void |
createUser(String userID)
Creates a user and adds it to the identity manager. |
protected void |
removeGroup()
Removes the group NEW_GROUP_NAME from the identity manager. |
protected void |
removeGroup(String groupId)
Removes a group from the identity manager. |
protected void |
removeUser(String userId)
Removes a user from the identity manager. |
protected void |
setUp()
|
void |
tearDown()
|
void |
testFindAllGroups()
Tests if the obtainance of all groups in the system work correctly |
void |
testFindllUsers()
Tests if the obtainance of all users in the system work correctly |
void |
testFindUserGroups()
Test the find user groups methods |
void |
testGroupGroups()
Tests searching for groups with a given parent. |
void |
testGroupOperations()
Tests the group operations. |
void |
testGroupOperationsInFailureBehaviour()
Tests the group operations forcing failure behavior. |
void |
testIllegalOperations()
Tests the illegal operations. |
void |
testInitialization()
Tests the static Identity Manager Initialization |
void |
testNotAvailable()
Not available test condition |
void |
testRelationOperations()
Tests the identity manager's relation operations. |
void |
testUserAttributes()
Tests the finders by attributes |
void |
testUserOperations()
Tests the user operations. |
void |
testUserOperationsInFailureBehaviour()
Tests the user operations forcing failure behavior. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, 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 |
Field Detail |
---|
protected static final String A_BULK_ATTRIBUTE_NAME
protected static final String A_BULK_ATTRIBUTE_VALUE
protected static final String A_CHANGED_ATTRIBUTE_VALUE
protected static final String A_CHANGED_BULK_ATTRIBUTE_VALUE
protected static final String AN_ATTRIBUTE_NAME
protected static final String AN_ATTRIBUTE_VALUE
protected static final String ANOTHER_ATTRIBUTE_NAME
protected static final String ANOTHER_ATTRIBUTE_VALUE
protected static final String ANOTHER_BULK_ATTRIBUTE_NAME
protected static final String ANOTHER_BULK_ATTRIBUTE_VALUE
protected static final String ANOTHER_CHANGED_ATTRIBUTE_VALUE
protected static final String ANOTHER_CHANGED_BULK_PARAMETER_VALUE
public static final String N_A
protected IIdentityManager identityManagerImpl
protected String MAIN_GROUP_NAME
Constructor Detail |
---|
public AbstractIdentityManagerImplTest()
Method Detail |
---|
protected void createGroup() throws IdentityManagerException
IdentityManagerException
- if the user can't be createdprotected void createGroup(String groupName) throws IdentityManagerException
groupName
-
IdentityManagerException
- if the user can't be createdprotected void createGroup(String groupName, String parentGroup) throws IdentityManagerException
groupName
- the group nameparentGroup
- the group parent group
IdentityManagerException
- if the user can't be createdprotected void createUser() throws IdentityManagerException, InternalFrameworkException
IdentityManagerException
- if the user can't be created
InternalFrameworkException
protected void createUser(String userID) throws IdentityManagerException, InternalFrameworkException
userID
- the user ID
IdentityManagerException
- if the user can't be created
InternalFrameworkException
protected void removeGroup() throws IdentityManagerException
IdentityManagerException
- if the user can't be createdprotected void removeGroup(String groupId) throws IdentityManagerException
groupId
- the group ID to remove
IdentityManagerException
protected void removeUser(String userId) throws IdentityManagerException
userId
- the id of the user to remove
IdentityManagerException
- if the user can't be createdprotected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
TestCase.setUp()
public void tearDown()
tearDown
in class junit.framework.TestCase
TestCase.tearDown()
public void testFindAllGroups() throws IdentityManagerException
IdentityManagerException
public void testFindllUsers() throws IdentityManagerException
IdentityManagerException
public void testFindUserGroups()
public void testGroupGroups() throws IdentityManagerException
IdentityManagerException
- if the identity manager can't be accessedpublic void testGroupOperations()
public void testGroupOperationsInFailureBehaviour() throws IdentityManagerException
IdentityManagerException
- if the identity manager can't be accessedpublic void testIllegalOperations() throws InternalFrameworkException
InternalFrameworkException
public void testInitialization()
public void testNotAvailable() throws IdentityManagerException
IdentityManagerException
public void testRelationOperations() throws IdentityManagerException, InternalFrameworkException
IdentityManagerException
- if the operation can't be executed
InternalFrameworkException
public void testUserAttributes() throws IdentityManagerException, InternalFrameworkException
InternalFrameworkException
IdentityManagerException
public void testUserOperations() throws IdentityManagerException, InternalFrameworkException
IdentityManagerException
- if the attribute values can't be changed
InternalFrameworkException
public void testUserOperationsInFailureBehaviour() throws IdentityManagerException
IdentityManagerException
- if the identity manager can't be accessed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |