test.compliance.relation
Class RelationServiceTestCase

java.lang.Object
  extended byTestCase
      extended bytest.compliance.relation.RelationServiceTestCase

public class RelationServiceTestCase
extends TestCase

Relation Service tests //TODO test internal relations //TODO test relations as mbeans in roles //TODO test multiple relation services (avoid future mods adding static data)

See Also:
Serialized Form

Constructor Summary
RelationServiceTestCase(java.lang.String s)
          Construct the test
 
Method Summary
 void testAddRelation()
          Test add a relation
 void testAddRelationErrors()
          Test add a relation errors
 void testAddRelationType()
          Test add a relation type
 void testAddRelationTypeErrors()
          Test create relation type errors
 void testCheckRoleReadingErrors()
          Test check role reading errors
 void testCheckRoleReadingExternal()
          Test check role reading
 void testCheckRoleWritingErrors()
          Test check role writing errors
 void testCheckRoleWritingExternal()
          Test check role writing
 void testConstructor()
          Test the constructor
 void testCreateRelation()
          Test create relation
 void testCreateRelationErrors()
          Test create relation errors
 void testCreateRelationTypeErrors()
          Test create relation type errors
 void testCreationRelationType()
          Test create relation type, getRoleInfo and getRoleInfos
 void testFindAssociatedMBeansErrors()
          Test find associated mbeans errors
 void testFindAssociatedMBeansExternal()
          Test find associated mbeans REVIEW: This test needs more thought
 void testFindReferencingRelationsErrors()
          Test find referencing relations errors
 void testFindReferencingRelationsExternal()
          Test find referencing relations REVIEW: This test needs more thought
 void testFindRelationsOfTypeErrors()
          Test find relations of type errors
 void testFindRelationsOfTypeExternal()
          Test find relations of types REVIEW: This test needs more thought
 void testGetAllRelationsIdsExternal()
          Test get all relations ids REVIEW: This test needs more thought
 void testGetAllRelationTypeNames()
          Test get all relation type names
 void testGetAllRolesErrors()
          Test get all roles errors
 void testGetAllRolesExternal()
          Test get all roles
 void testGetNotificationInfo()
          Test get Notification info
 void testGetReferencedMBeansErrors()
          Test get referenced mbeans errors
 void testGetReferencedMBeansExternal()
          Test get Referenced MBeans
 void testGetRelationTypeNameErrors()
          Test get relation type name errors
 void testGetRelationTypeNameExternal()
          Test get Relation Type Names
 void testGetRoleCardinalityErrors()
          Test get role cardinality errors
 void testGetRoleCardinalityExternal()
          Test get Role Cardinality
 void testGetRoleErrors()
          Test get role errors
 void testGetRoleExternal()
          Test get Role
 void testGetRoleInfoErrors()
          Test getRoleInfo errors
 void testGetRoleInfosErrors()
          Test getRoleInfos errors
 void testGetRolesErrors()
          Test get roles errors
 void testGetRolesExternal()
          Test get Roles
 void testGetSetPurgeFlag()
          Test get/set Purge Flag
 void testHasRelationErrors()
          Test Has Relation Errors
 void testHasRelationExternal()
          Test Has Relation
 void testIsActive()
          Test Is Active
 void testIsRelationErrors()
          Test Is Relation Errors
 void testIsRelationExternal()
          Test Is Relation
 void testIsRelationMBeanErrors()
          Test Is Relation MBean Errors
 void testIsRelationMBeanExternal()
          Test Is Relation MBean
 void testPurgeRelationsAutomaticExternal()
          Test purge Relations Automatically
 void testPurgeRelationsErrors()
          Test purge relations errors
 void testPurgeRelationsManuallyExternal()
          Test purge Relations Manually
 void testRemoveRelationErrors()
          Test remove relation errors
 void testRemoveRelationExternal()
          Test remove relation
 void testRemoveRelationType()
          Test remove relation type
 void testRemoveRelationTypeErrors()
          Test remove relation type errors
 void testSendRelationCreationNotificationErrors()
          Test send relation removal notification errors
 void testSendRelationCreationNotificationExternal()
          Test send relation creation notification
 void testSendRelationRemovalNotificationErrors()
          Test send relation removal notification errors
 void testSendRelationRemovalNotificationExternal()
          Test send relation removal notification
 void testSendRoleUpdateNotificationErrors()
          Test send role update notification errors
 void testSendRoleUpdateNotificationExternal()
          Test send role update notification
 void testSetRoleErrors()
          Test set role errors
 void testSetRoleExternal()
          Test set a role
 void testSetRolesErrors()
          Test set roles errors
 void testSetRolesExternal()
          Test set roles
 void testUpdateRoleMapErrors()
          Test update role map errors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationServiceTestCase

public RelationServiceTestCase(java.lang.String s)
Construct the test

Method Detail

testConstructor

public void testConstructor()
                     throws java.lang.Exception
Test the constructor

Throws:
java.lang.Exception

testAddRelation

public void testAddRelation()
                     throws java.lang.Exception
Test add a relation

Throws:
java.lang.Exception

testAddRelationErrors

public void testAddRelationErrors()
                           throws java.lang.Exception
Test add a relation errors

Throws:
java.lang.Exception

testAddRelationType

public void testAddRelationType()
                         throws java.lang.Exception
Test add a relation type

Throws:
java.lang.Exception

testAddRelationTypeErrors

public void testAddRelationTypeErrors()
                               throws java.lang.Exception
Test create relation type errors

Throws:
java.lang.Exception

testCheckRoleReadingExternal

public void testCheckRoleReadingExternal()
                                  throws java.lang.Exception
Test check role reading

Throws:
java.lang.Exception

testCheckRoleReadingErrors

public void testCheckRoleReadingErrors()
                                throws java.lang.Exception
Test check role reading errors

Throws:
java.lang.Exception

testCheckRoleWritingExternal

public void testCheckRoleWritingExternal()
                                  throws java.lang.Exception
Test check role writing

Throws:
java.lang.Exception

testCheckRoleWritingErrors

public void testCheckRoleWritingErrors()
                                throws java.lang.Exception
Test check role writing errors

Throws:
java.lang.Exception

testCreateRelation

public void testCreateRelation()
                        throws java.lang.Exception
Test create relation

Throws:
java.lang.Exception

testCreateRelationErrors

public void testCreateRelationErrors()
                              throws java.lang.Exception
Test create relation errors

Throws:
java.lang.Exception

testCreationRelationType

public void testCreationRelationType()
                              throws java.lang.Exception
Test create relation type, getRoleInfo and getRoleInfos

Throws:
java.lang.Exception

testCreateRelationTypeErrors

public void testCreateRelationTypeErrors()
                                  throws java.lang.Exception
Test create relation type errors

Throws:
java.lang.Exception

testGetRoleInfoErrors

public void testGetRoleInfoErrors()
                           throws java.lang.Exception
Test getRoleInfo errors

Throws:
java.lang.Exception

testGetRoleInfosErrors

public void testGetRoleInfosErrors()
                            throws java.lang.Exception
Test getRoleInfos errors

Throws:
java.lang.Exception

testFindAssociatedMBeansExternal

public void testFindAssociatedMBeansExternal()
                                      throws java.lang.Exception
Test find associated mbeans REVIEW: This test needs more thought

Throws:
java.lang.Exception

testFindAssociatedMBeansErrors

public void testFindAssociatedMBeansErrors()
                                    throws java.lang.Exception
Test find associated mbeans errors

Throws:
java.lang.Exception

testFindReferencingRelationsExternal

public void testFindReferencingRelationsExternal()
                                          throws java.lang.Exception
Test find referencing relations REVIEW: This test needs more thought

Throws:
java.lang.Exception

testFindReferencingRelationsErrors

public void testFindReferencingRelationsErrors()
                                        throws java.lang.Exception
Test find referencing relations errors

Throws:
java.lang.Exception

testFindRelationsOfTypeExternal

public void testFindRelationsOfTypeExternal()
                                     throws java.lang.Exception
Test find relations of types REVIEW: This test needs more thought

Throws:
java.lang.Exception

testFindRelationsOfTypeErrors

public void testFindRelationsOfTypeErrors()
                                   throws java.lang.Exception
Test find relations of type errors

Throws:
java.lang.Exception

testGetAllRelationsIdsExternal

public void testGetAllRelationsIdsExternal()
                                    throws java.lang.Exception
Test get all relations ids REVIEW: This test needs more thought

Throws:
java.lang.Exception

testGetAllRelationTypeNames

public void testGetAllRelationTypeNames()
                                 throws java.lang.Exception
Test get all relation type names

Throws:
java.lang.Exception

testGetAllRolesExternal

public void testGetAllRolesExternal()
                             throws java.lang.Exception
Test get all roles

Throws:
java.lang.Exception

testGetAllRolesErrors

public void testGetAllRolesErrors()
                           throws java.lang.Exception
Test get all roles errors

Throws:
java.lang.Exception

testGetNotificationInfo

public void testGetNotificationInfo()
Test get Notification info


testGetSetPurgeFlag

public void testGetSetPurgeFlag()
                         throws java.lang.Exception
Test get/set Purge Flag

Throws:
java.lang.Exception

testGetReferencedMBeansExternal

public void testGetReferencedMBeansExternal()
                                     throws java.lang.Exception
Test get Referenced MBeans

Throws:
java.lang.Exception

testGetReferencedMBeansErrors

public void testGetReferencedMBeansErrors()
                                   throws java.lang.Exception
Test get referenced mbeans errors

Throws:
java.lang.Exception

testGetRelationTypeNameExternal

public void testGetRelationTypeNameExternal()
                                     throws java.lang.Exception
Test get Relation Type Names

Throws:
java.lang.Exception

testGetRelationTypeNameErrors

public void testGetRelationTypeNameErrors()
                                   throws java.lang.Exception
Test get relation type name errors

Throws:
java.lang.Exception

testGetRoleExternal

public void testGetRoleExternal()
                         throws java.lang.Exception
Test get Role

Throws:
java.lang.Exception

testGetRoleErrors

public void testGetRoleErrors()
                       throws java.lang.Exception
Test get role errors

Throws:
java.lang.Exception

testGetRoleCardinalityExternal

public void testGetRoleCardinalityExternal()
                                    throws java.lang.Exception
Test get Role Cardinality

Throws:
java.lang.Exception

testGetRoleCardinalityErrors

public void testGetRoleCardinalityErrors()
                                  throws java.lang.Exception
Test get role cardinality errors

Throws:
java.lang.Exception

testGetRolesExternal

public void testGetRolesExternal()
                          throws java.lang.Exception
Test get Roles

Throws:
java.lang.Exception

testGetRolesErrors

public void testGetRolesErrors()
                        throws java.lang.Exception
Test get roles errors

Throws:
java.lang.Exception

testHasRelationExternal

public void testHasRelationExternal()
                             throws java.lang.Exception
Test Has Relation

Throws:
java.lang.Exception

testHasRelationErrors

public void testHasRelationErrors()
                           throws java.lang.Exception
Test Has Relation Errors

Throws:
java.lang.Exception

testIsActive

public void testIsActive()
                  throws java.lang.Exception
Test Is Active

Throws:
java.lang.Exception

testIsRelationExternal

public void testIsRelationExternal()
                            throws java.lang.Exception
Test Is Relation

Throws:
java.lang.Exception

testIsRelationErrors

public void testIsRelationErrors()
                          throws java.lang.Exception
Test Is Relation Errors

Throws:
java.lang.Exception

testIsRelationMBeanExternal

public void testIsRelationMBeanExternal()
                                 throws java.lang.Exception
Test Is Relation MBean

Throws:
java.lang.Exception

testIsRelationMBeanErrors

public void testIsRelationMBeanErrors()
                               throws java.lang.Exception
Test Is Relation MBean Errors

Throws:
java.lang.Exception

testPurgeRelationsAutomaticExternal

public void testPurgeRelationsAutomaticExternal()
                                         throws java.lang.Exception
Test purge Relations Automatically

Throws:
java.lang.Exception

testPurgeRelationsManuallyExternal

public void testPurgeRelationsManuallyExternal()
                                        throws java.lang.Exception
Test purge Relations Manually

Throws:
java.lang.Exception

testPurgeRelationsErrors

public void testPurgeRelationsErrors()
                              throws java.lang.Exception
Test purge relations errors

Throws:
java.lang.Exception

testRemoveRelationExternal

public void testRemoveRelationExternal()
                                throws java.lang.Exception
Test remove relation

Throws:
java.lang.Exception

testRemoveRelationErrors

public void testRemoveRelationErrors()
                              throws java.lang.Exception
Test remove relation errors

Throws:
java.lang.Exception

testRemoveRelationType

public void testRemoveRelationType()
                            throws java.lang.Exception
Test remove relation type

Throws:
java.lang.Exception

testRemoveRelationTypeErrors

public void testRemoveRelationTypeErrors()
                                  throws java.lang.Exception
Test remove relation type errors

Throws:
java.lang.Exception

testSendRelationCreationNotificationExternal

public void testSendRelationCreationNotificationExternal()
                                                  throws java.lang.Exception
Test send relation creation notification

Throws:
java.lang.Exception

testSendRelationCreationNotificationErrors

public void testSendRelationCreationNotificationErrors()
                                                throws java.lang.Exception
Test send relation removal notification errors

Throws:
java.lang.Exception

testSendRelationRemovalNotificationExternal

public void testSendRelationRemovalNotificationExternal()
                                                 throws java.lang.Exception
Test send relation removal notification

Throws:
java.lang.Exception

testSendRelationRemovalNotificationErrors

public void testSendRelationRemovalNotificationErrors()
                                               throws java.lang.Exception
Test send relation removal notification errors

Throws:
java.lang.Exception

testSendRoleUpdateNotificationExternal

public void testSendRoleUpdateNotificationExternal()
                                            throws java.lang.Exception
Test send role update notification

Throws:
java.lang.Exception

testSendRoleUpdateNotificationErrors

public void testSendRoleUpdateNotificationErrors()
                                          throws java.lang.Exception
Test send role update notification errors

Throws:
java.lang.Exception

testSetRoleExternal

public void testSetRoleExternal()
                         throws java.lang.Exception
Test set a role

Throws:
java.lang.Exception

testSetRoleErrors

public void testSetRoleErrors()
                       throws java.lang.Exception
Test set role errors

Throws:
java.lang.Exception

testSetRolesExternal

public void testSetRolesExternal()
                          throws java.lang.Exception
Test set roles

Throws:
java.lang.Exception

testSetRolesErrors

public void testSetRolesErrors()
                        throws java.lang.Exception
Test set roles errors

Throws:
java.lang.Exception

testUpdateRoleMapErrors

public void testUpdateRoleMapErrors()
                             throws java.lang.Exception
Test update role map errors

Throws:
java.lang.Exception