org.apache.commons.modeler
Class RegistryTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.modeler.RegistryTestCase
All Implemented Interfaces:
junit.framework.Test

public class RegistryTestCase
extends junit.framework.TestCase

Test Case for the Registry class.

Version:
$Revision: 480402 $ $Date: 2006-11-29 04:43:23 +0000 (Wed, 29 Nov 2006) $
Author:
Craig R. McClanahan

Field Summary
protected  org.apache.commons.modeler.Registry registry
          The Registry we will be testing.
 
Constructor Summary
RegistryTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkDescriptor(javax.management.Descriptor desc, java.lang.String name, java.lang.Object value)
           
protected  void checkField(java.util.List fields, java.lang.String name, java.lang.Object value)
           
 void setUp()
          Set up instance variables required by this test case.
static junit.framework.Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testDescriptorEntries()
          Test descriptor entries.
 void testModelMBeanAttributeInfo()
          Test ModelMBeanAttributeInfo information.
 void testModelMBeanConstructorInfo()
          Test ModelMBeanConstructorInfo information.
 void testModelMBeanInfo()
          Test ModelMBeanInfo information.
 void testModelMBeanNotificationInfo()
          Test ModelMBeanNotificationInfo information.
 void testModelMBeanOperationInfo()
          Test ModelMBeanOperationInfo information.
 void testRegistryCreation()
          Test registry creation.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

registry

protected org.apache.commons.modeler.Registry registry
The Registry we will be testing.

Constructor Detail

RegistryTestCase

public RegistryTestCase(java.lang.String name)
Construct a new instance of this test case.

Parameters:
name - Name of the test case
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Set up instance variables required by this test case.

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

suite

public static junit.framework.Test suite()
Return the tests included in this test suite.


tearDown

public void tearDown()
Tear down instance variables required by this test case.

Overrides:
tearDown in class junit.framework.TestCase

testModelMBeanAttributeInfo

public void testModelMBeanAttributeInfo()
                                 throws java.lang.Exception
Test ModelMBeanAttributeInfo information.

Throws:
java.lang.Exception

testModelMBeanConstructorInfo

public void testModelMBeanConstructorInfo()
                                   throws java.lang.Exception
Test ModelMBeanConstructorInfo information.

Throws:
java.lang.Exception

testDescriptorEntries

public void testDescriptorEntries()
Test descriptor entries.


testModelMBeanInfo

public void testModelMBeanInfo()
                        throws java.lang.Exception
Test ModelMBeanInfo information.

Throws:
java.lang.Exception

testModelMBeanNotificationInfo

public void testModelMBeanNotificationInfo()
                                    throws java.lang.Exception
Test ModelMBeanNotificationInfo information.

Throws:
java.lang.Exception

testModelMBeanOperationInfo

public void testModelMBeanOperationInfo()
                                 throws java.lang.Exception
Test ModelMBeanOperationInfo information.

Throws:
java.lang.Exception

testRegistryCreation

public void testRegistryCreation()
Test registry creation.


checkDescriptor

protected void checkDescriptor(javax.management.Descriptor desc,
                               java.lang.String name,
                               java.lang.Object value)

checkField

protected void checkField(java.util.List fields,
                          java.lang.String name,
                          java.lang.Object value)


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.