org.jboss.test.jmx.compliance.relation
Class RelationServiceTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.test.jmx.compliance.relation.RelationServiceTestCase
All Implemented Interfaces:
junit.framework.Test

public class RelationServiceTestCase
extends junit.framework.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)

Author:
Adrian Brock.

Constructor Summary
RelationServiceTestCase(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 junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelationServiceTestCase

public RelationServiceTestCase(String s)
Construct the test

Method Detail

testConstructor

public void testConstructor()
                     throws Exception
Test the constructor

Throws:
Exception

testAddRelation

public void testAddRelation()
                     throws Exception
Test add a relation

Throws:
Exception

testAddRelationErrors

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

Throws:
Exception

testAddRelationType

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

Throws:
Exception

testAddRelationTypeErrors

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

Throws:
Exception

testCheckRoleReadingExternal

public void testCheckRoleReadingExternal()
                                  throws Exception
Test check role reading

Throws:
Exception

testCheckRoleReadingErrors

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

Throws:
Exception

testCheckRoleWritingExternal

public void testCheckRoleWritingExternal()
                                  throws Exception
Test check role writing

Throws:
Exception

testCheckRoleWritingErrors

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

Throws:
Exception

testCreateRelation

public void testCreateRelation()
                        throws Exception
Test create relation

Throws:
Exception

testCreateRelationErrors

public void testCreateRelationErrors()
                              throws Exception
Test create relation errors

Throws:
Exception

testCreationRelationType

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

Throws:
Exception

testCreateRelationTypeErrors

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

Throws:
Exception

testGetRoleInfoErrors

public void testGetRoleInfoErrors()
                           throws Exception
Test getRoleInfo errors

Throws:
Exception

testGetRoleInfosErrors

public void testGetRoleInfosErrors()
                            throws Exception
Test getRoleInfos errors

Throws:
Exception

testFindAssociatedMBeansExternal

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

Throws:
Exception

testFindAssociatedMBeansErrors

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

Throws:
Exception

testFindReferencingRelationsExternal

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

Throws:
Exception

testFindReferencingRelationsErrors

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

Throws:
Exception

testFindRelationsOfTypeExternal

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

Throws:
Exception

testFindRelationsOfTypeErrors

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

Throws:
Exception

testGetAllRelationsIdsExternal

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

Throws:
Exception

testGetAllRelationTypeNames

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

Throws:
Exception

testGetAllRolesExternal

public void testGetAllRolesExternal()
                             throws Exception
Test get all roles

Throws:
Exception

testGetAllRolesErrors

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

Throws:
Exception

testGetNotificationInfo

public void testGetNotificationInfo()
Test get Notification info


testGetSetPurgeFlag

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

Throws:
Exception

testGetReferencedMBeansExternal

public void testGetReferencedMBeansExternal()
                                     throws Exception
Test get Referenced MBeans

Throws:
Exception

testGetReferencedMBeansErrors

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

Throws:
Exception

testGetRelationTypeNameExternal

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

Throws:
Exception

testGetRelationTypeNameErrors

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

Throws:
Exception

testGetRoleExternal

public void testGetRoleExternal()
                         throws Exception
Test get Role

Throws:
Exception

testGetRoleErrors

public void testGetRoleErrors()
                       throws Exception
Test get role errors

Throws:
Exception

testGetRoleCardinalityExternal

public void testGetRoleCardinalityExternal()
                                    throws Exception
Test get Role Cardinality

Throws:
Exception

testGetRoleCardinalityErrors

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

Throws:
Exception

testGetRolesExternal

public void testGetRolesExternal()
                          throws Exception
Test get Roles

Throws:
Exception

testGetRolesErrors

public void testGetRolesErrors()
                        throws Exception
Test get roles errors

Throws:
Exception

testHasRelationExternal

public void testHasRelationExternal()
                             throws Exception
Test Has Relation

Throws:
Exception

testHasRelationErrors

public void testHasRelationErrors()
                           throws Exception
Test Has Relation Errors

Throws:
Exception

testIsActive

public void testIsActive()
                  throws Exception
Test Is Active

Throws:
Exception

testIsRelationExternal

public void testIsRelationExternal()
                            throws Exception
Test Is Relation

Throws:
Exception

testIsRelationErrors

public void testIsRelationErrors()
                          throws Exception
Test Is Relation Errors

Throws:
Exception

testIsRelationMBeanExternal

public void testIsRelationMBeanExternal()
                                 throws Exception
Test Is Relation MBean

Throws:
Exception

testIsRelationMBeanErrors

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

Throws:
Exception

testPurgeRelationsAutomaticExternal

public void testPurgeRelationsAutomaticExternal()
                                         throws Exception
Test purge Relations Automatically

Throws:
Exception

testPurgeRelationsManuallyExternal

public void testPurgeRelationsManuallyExternal()
                                        throws Exception
Test purge Relations Manually

Throws:
Exception

testPurgeRelationsErrors

public void testPurgeRelationsErrors()
                              throws Exception
Test purge relations errors

Throws:
Exception

testRemoveRelationExternal

public void testRemoveRelationExternal()
                                throws Exception
Test remove relation

Throws:
Exception

testRemoveRelationErrors

public void testRemoveRelationErrors()
                              throws Exception
Test remove relation errors

Throws:
Exception

testRemoveRelationType

public void testRemoveRelationType()
                            throws Exception
Test remove relation type

Throws:
Exception

testRemoveRelationTypeErrors

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

Throws:
Exception

testSendRelationCreationNotificationExternal

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

Throws:
Exception

testSendRelationCreationNotificationErrors

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

Throws:
Exception

testSendRelationRemovalNotificationExternal

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

Throws:
Exception

testSendRelationRemovalNotificationErrors

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

Throws:
Exception

testSendRoleUpdateNotificationExternal

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

Throws:
Exception

testSendRoleUpdateNotificationErrors

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

Throws:
Exception

testSetRoleExternal

public void testSetRoleExternal()
                         throws Exception
Test set a role

Throws:
Exception

testSetRoleErrors

public void testSetRoleErrors()
                       throws Exception
Test set role errors

Throws:
Exception

testSetRolesExternal

public void testSetRolesExternal()
                          throws Exception
Test set roles

Throws:
Exception

testSetRolesErrors

public void testSetRolesErrors()
                        throws Exception
Test set roles errors

Throws:
Exception

testUpdateRoleMapErrors

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

Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.