[Jboss-cvs] JBossAS SVN: r55846 - in branches/Branch_4_0/system: . src src/main/org/jboss/system src/resources src/resources/tests src/resources/tests/org src/resources/tests/org/jboss src/resources/tests/org/jboss/test src/resources/tests/org/jboss/test/system src/resources/tests/org/jboss/test/system/controller src/resources/tests/org/jboss/test/system/controller/basic src/resources/tests/org/jboss/test/system/controller/basic/test src/resources/tests/org/jboss/test/system/controller/configure src/resources/tests/org/jboss/test/system/controller/configure/attribute src/resources/tests/org/jboss/test/system/controller/configure/attribute/test src/resources/tests/org/jboss/test/system/controller/configure/binding src/resources/tests/org/jboss/test/system/controller/configure/binding/test src/resources/tests/org/jboss/test/system/controller/configure/test src/resources/tests/org/jboss/test/system/controller/configure/value src/resources/tests/org/jboss/test/system/controller/co! nfigure/value/depends src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test src/resources/tests/org/jboss/test/system/controller/configure/value/element src/resources/tests/org/jboss/test/system/controller/configure/value/element/test src/resources/tests/org/jboss/test/system/controller/configure/value/javabean src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test src/resources/tests/org/jboss/test/system/controller/configure/value/text src/resources/tests/org/jboss/test/system/controller/configure/value/text/test src/resources/tests/org/jboss/test/system/controller/instantiate src/resources/tests/org/jb! oss/test/system/controller/instantiate/plain src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test src/resources/tests/org/jboss/test/system/controller/instantiate/standard src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test src/resources/tests/org/jboss/test/system/controller

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Aug 12 13:36:32 EDT 2006


Author: adrian at jboss.org
Date: 2006-08-12 13:35:26 -0400 (Sat, 12 Aug 2006)
New Revision: 55846

Added:
   branches/Branch_4_0/system/build-test.xml
   branches/Branch_4_0/system/src/resources/tests/
   branches/Branch_4_0/system/src/resources/tests/org/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/basic/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/basic/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/basic/test/Basic.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/basic/test/DoubleInstall.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenGetAttributes_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenSetAttribute_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyName_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyValue_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoName_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoValue_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNone_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOne_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTwo_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeBrokenSetAttribute_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeEmptyValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeInvalidValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNested_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNoValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNone_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOne_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributePatternValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTwo_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeUnknownElement_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeBrokenSetAttribute_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeEmptyValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeInvalidValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeMultiple_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNested_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNoValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNone_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOne_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributePatternValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTwo_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeUnknownElement_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/binding/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingError_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBinding_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterError_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/AttributeInfoTypeNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/BrokenSetAttribute_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyNested_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/Dependency_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/EmptyValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ExplicitProxyType_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ImplicitProxyType_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/InvalidValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoAttributeInfoType_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/PatternValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotInterface_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/UnknownElement_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/BrokenSetAttribute_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/EmptyValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/InvalidValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Nested_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/NoValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/None_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/One_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/PatternValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Two_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/UnknownElement_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/element/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/element/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/element/test/Element_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AbstractAttributeClass_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeClassNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeInfoTypeNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/EmptyPropertyName_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInConstructor_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInProperty_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ExplicitClass_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ImplicitClass_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoAttributeInfoType_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyEditor_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyName_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyValue_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/PropertyNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/AbstractClass_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/Basic_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ClassNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/EmptyPropertyName_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInConstructor_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInProperty_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyEditor_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyName_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyValue_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/PropertyNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/AttributeInfoTypeNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoAttributeInfoType_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoPropertyEditor_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/PropertyEditors_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanAbstractClass_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeClassNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeEmpty_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeMissing_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorException_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorInvalidType_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorInvalidValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorTypeNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanGetMBeanInfoError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanNotMBean_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostDeregisterError_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostRegisterError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreDeregisterError_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreRegisterError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBean_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanAbstractClass_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeClassNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeEmpty_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeMissing_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorException_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorInvalidType_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorInvalidValue_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorTypeNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterfaceNotFound_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterfaceNotImplemented_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterface_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBean_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeEmpty_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeMissing_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgValueMissing_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanNoArg_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanOneArg_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanTwoArg_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeEmpty_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeMissing_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgValueMissing_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanNoArg_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanOneArg_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanTwoArg_install.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureJMXFromMCUnitTestCase-mc.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureJMXFromMCUnitTestCase.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase-mc.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase-mc.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase-mc.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase-mc.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXDependsMCUnitTestCase-mc.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXDependsMCUnitTestCase.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/MCDependsJMXUnitTestCase-mc.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/MCDependsJMXUnitTestCase.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase-mc.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListNested_NotAutomatic.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsList_NotAutomatic.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsNested_NotAutomatic.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListNested_NotAutomatic.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeList_NotAutomatic.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeNested_NotAutomatic.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttribute_NotAutomatic.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDepends_NotAutomatic.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycle_NotAutomatic.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDepends_1.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDepends_2.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_bad.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_good.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameEmpty.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameInvalid.xml
   branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameMissing.xml
   branches/Branch_4_0/system/src/tests/
   branches/Branch_4_0/system/src/tests/org/
   branches/Branch_4_0/system/src/tests/org/jboss/
   branches/Branch_4_0/system/src/tests/org/jboss/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/AbstractSystemTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/SystemAllTestSuite.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/SystemTestSuite.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/AbstractControllerTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/OldControllerTestDelegate.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/SimpleSARDeployer.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/TestClassLoader.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/TestClassLoaderMBean.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/BasicOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/BasicTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/ControllerBasicTestSuite.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/DoubleInstallOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/DoubleInstallTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/support/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/support/TestServiceBinding.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ControllerConfigureTestSuite.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/ControllerConfigureValueTestSuite.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/depends/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/depends/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/dependslist/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/element/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/element/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/javabean/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/text/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/text/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ControllerInstantiateTestSuite.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListNestedOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsNestedOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListNestedOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeNestedOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycleOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycleTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/ControllerLifecycleBasicTestSuite.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/ControllerLifecycleSeperatedTestSuite.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDependsOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/ControllerLifecycleTestSuite.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ControllerParseTestSuite.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseOldUnitTestCase.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseTest.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractRegistration.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractRegistrationMBean.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractSimple.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBean.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributeInfoTypeNotFound.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributes.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanNoAttributeInfoType.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBean.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorConstructor.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorProperty.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/NotSimpleStandardMBeanInterface.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/Order.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PostDeregisterError.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PostRegisterError.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PreDeregisterError.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PreRegisterError.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/Simple.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/SimpleMBean.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/SimpleStandardMBeanInterface.java
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/test/
   branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/test/ControllerTestSuite.java
Modified:
   branches/Branch_4_0/system/.classpath
   branches/Branch_4_0/system/src/main/org/jboss/system/ServiceConfigurator.java
   branches/Branch_4_0/system/src/main/org/jboss/system/ServiceContext.java
   branches/Branch_4_0/system/src/main/org/jboss/system/ServiceController.java
Log:
[JBAS-3510] - Backport fixes from JBAS-1841, including testsuite.

Modified: branches/Branch_4_0/system/.classpath
===================================================================
--- branches/Branch_4_0/system/.classpath	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/.classpath	2006-08-12 17:35:26 UTC (rev 55846)
@@ -1,13 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" path="src/main"/>
+	<classpathentry output="output/eclipse-test-classes" kind="src" path="src/tests"/>
+	<classpathentry kind="lib" path="src/resources/tests"/>
 	<classpathentry kind="lib" path="/thirdparty/jboss/common/lib/jboss-common.jar"/>
 	<classpathentry kind="src" path="/jmx"/>
+	<classpathentry kind="src" path="/test"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="lib" path="/thirdparty/gnu-getopt/lib/getopt.jar"/>
 	<classpathentry kind="lib" path="/thirdparty/apache-log4j/lib/log4j.jar"/>
 	<classpathentry kind="lib" path="/thirdparty/oswego-concurrent/lib/concurrent.jar"/>
 	<classpathentry kind="lib" path="/thirdparty/dom4j/lib/dom4j.jar"/>
 	<classpathentry kind="lib" path="/thirdparty/jboss/jbossxb/lib/jboss-xml-binding.jar"/>
+	<classpathentry kind="lib" path="/thirdparty/junit/lib/junit.jar"/>
+	<classpathentry kind="lib" path="/thirdparty/apache-xerces/lib/resolver.jar"/>
+	<classpathentry kind="lib" path="/thirdparty/apache-xerces/lib/xercesImpl.jar"/>
+	<classpathentry kind="lib" path="/thirdparty/apache-xerces/lib/xml-apis.jar"/>
 	<classpathentry kind="output" path="output/eclipse-classes"/>
 </classpath>

Added: branches/Branch_4_0/system/build-test.xml
===================================================================
--- branches/Branch_4_0/system/build-test.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/build-test.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE project [
+   <!ENTITY buildmagic SYSTEM "../tools/etc/buildmagic/buildmagic.ent">
+   <!ENTITY libraries  SYSTEM "../thirdparty/libraries.ent">
+   <!ENTITY modules SYSTEM "../tools/etc/buildmagic/modules.ent">
+   <!ENTITY targets SYSTEM "../tools/etc/buildmagic/targets.ent">
+]>
+
+<!-- $Id$ -->
+
+<project default="main" name="JBoss/System Tests">
+
+   <!-- ================================================================== -->
+   <!-- Setup                                                              -->
+   <!-- ================================================================== -->
+
+   <!--
+     | Include the common Buildmagic elements.
+     |
+     | This defines several different targets, properties and paths.
+     | It also sets up the basic extention tasks amoung other things.
+   -->
+
+  &buildmagic;
+
+  <!--
+     | Include the normal targets.
+   -->
+  &targets;
+
+  <!-- ================================================================== -->
+   <!-- Configuration                                                      -->
+   <!-- ================================================================== -->
+
+   <!--
+     | Configure the build system.
+     |
+     | This target is invoked by the Buildmagic initialization logic and
+     | should contain module specific configuration elements.
+   -->
+
+   <target name="configure" unless="configure.disable">
+
+      <!-- =================== -->
+      <!-- Basic Configuration -->
+      <!-- =================== -->
+
+      <!-- Module name(s) & version -->
+      <property name="module.name" value="system" />
+      <property name="source.java" value="${module.source}/tests" />
+      <property name="javac.target" value="1.4" />
+      <property name="javac.source" value="1.4" />
+      <property name="build.classes" value="${module.output}/classes-tests" />
+      <property name="build.testlog" value="${module.output}/log" />
+      <property name="build-bypass.disabled" value="true" />
+
+      <!-- ========= -->
+      <!-- Libraries -->
+      <!-- ========= -->
+
+    &libraries;
+
+    <!-- The combined library classpath -->
+      <path id="library.classpath">
+         <path refid="junit.junit.classpath" />
+         <path refid="gnu.getopt.classpath" />
+         <path refid="javassist.classpath" />
+         <path refid="apache.log4j.classpath" />
+         <path refid="oswego.concurrent.classpath" />
+         <path refid="jboss.jbossxb.classpath" />
+         <path refid="jboss.common.classpath" />
+         <path refid="apache.xerces.classpath" />
+         <path refid="dom4j.dom4j.classpath" />
+      </path>
+
+      <!-- ======= -->
+      <!-- Modules -->
+      <!-- ======= -->
+
+    &modules;
+	<!-- this -->
+      <property name="jboss.this.root" value="${module.root}/output" />
+      <property name="jboss.this.lib" value="${jboss.this.root}/lib" />
+      <path id="jboss.this.classpath">
+         <fileset dir="${jboss.this.lib}">
+            <include name="*.jar" />
+            <exclude name="run.jar" />
+         </fileset>
+      </path>
+
+      <!-- The combined dependant module classpath -->
+      <path id="dependentmodule.classpath">
+         <path refid="jboss.jmx.classpath" />
+         <path refid="jboss.test.classpath" />
+         <pathelement location="output/classes" />
+      </path>
+
+      <!-- ===== -->
+      <!-- Tasks -->
+      <!-- ===== -->
+
+      <call target="_default:task-init" />
+
+      <path id="thirdparty.classpath">
+         <path refid="library.classpath" />
+         <path refid="dependentmodule.classpath" />
+      </path>
+
+   </target>
+   <patternset id="compile-resources.pattern">
+      <include name="${src.resources}/**" />
+   </patternset>
+
+   <!-- ================================================================== -->
+   <!-- Compile                                                            -->
+   <!-- ================================================================== -->
+
+   <!--
+     | Compile everything.
+     |
+     | This target should depend on other compile-* targets for each
+     | different type of compile that needs to be performed, short of
+     | documentation compiles.
+   -->
+
+   <target name="compile" description="Compile all source files." depends="_default:compile-classes, _default:compile-resources" />
+
+   <!-- ================================================================== -->
+   <!-- Archives                                                           -->
+   <!-- ================================================================== -->
+
+   <target name="module-jars" depends="init">
+       <!-- Build jboss-system-test.jar -->
+       <jar jarfile="${build.lib}/jboss-system-test.jar" manifest="${build.etc}/default.mf">
+          <fileset dir="${build.classes}"/>
+          <fileset dir="${build.resources}/tests">
+             <include name="org/**"/>
+          </fileset>
+       </jar>
+   </target>
+
+   <!-- ================================================================== -->
+   <!-- Tests                                                              -->
+   <!-- ================================================================== -->
+
+   <target name="tests" depends="most"
+      description="Execute all tests in the given test directory.">
+      <mkdir dir="${build.reports}" />
+      <mkdir dir="${build.testlog}" />
+      <!-- Remove the test.log so each run has a fresh log -->
+      <delete file="${build.testlog}/test.log" />
+      <junit dir="${module.output}" printsummary="yes" haltonerror="false" haltonfailure="false" fork="true">
+
+         <sysproperty key="build.testlog" value="${build.testlog}" />
+         <syspropertyset id="jbosstest-properties">
+            <propertyref prefix="jbosstest" />
+         </syspropertyset>
+
+         <classpath>
+            <pathelement location="${build.classes}" />
+            <pathelement location="${build.resources}/tests" />
+            <path refid="javac.classpath" />
+            <path refid="apache.xerces.classpath" />
+         </classpath>
+
+         <formatter type="plain" usefile="true" />
+         <formatter type="xml" usefile="true" />
+
+         <batchtest todir="${build.reports}" haltonerror="false" haltonfailure="false" fork="true">
+
+            <fileset dir="${build.classes}">
+               <include name="org/jboss/test/**/*TestCase.class" />
+            </fileset>
+         </batchtest>
+      </junit>
+   </target>
+
+   <target name="one-test" depends="init"
+      description="Execute the test defined by ${test}">
+      <mkdir dir="${build.reports}" />
+      <mkdir dir="${build.testlog}" />
+      <!-- Remove the test.log so each run has a fresh log -->
+      <delete file="${build.testlog}/test.log" />
+      <junit dir="${module.output}" printsummary="yes" haltonerror="false" haltonfailure="false" fork="true">
+
+         <sysproperty key="build.testlog" value="${build.testlog}" />
+         <syspropertyset id="jbosstest-properties">
+            <propertyref prefix="jbosstest" />
+         </syspropertyset>
+
+         <classpath>
+            <pathelement location="${build.classes}" />
+            <pathelement location="${build.resources}/tests" />
+            <path refid="thirdparty.classpath" />
+            <path refid="apache.xerces.classpath"/>
+         </classpath>
+
+         <formatter type="plain" usefile="true" />
+         <formatter type="xml" usefile="true" />
+
+         <test todir="${build.reports}" name="${test}" haltonerror="${junit.batchtest.haltonerror}" haltonfailure="${junit.batchtest.haltonfailure}" fork="${junit.batchtest.fork}" />
+      </junit>
+   </target>
+
+</project>

Modified: branches/Branch_4_0/system/src/main/org/jboss/system/ServiceConfigurator.java
===================================================================
--- branches/Branch_4_0/system/src/main/org/jboss/system/ServiceConfigurator.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/main/org/jboss/system/ServiceConfigurator.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -461,7 +461,7 @@
                ctx.state = ServiceContext.CONFIGURED;
                ctx.problem = null;
             }
-            catch (Exception e)
+            catch (Throwable e)
             {
                ctx.state = ServiceContext.FAILED;
                ctx.problem = e;

Modified: branches/Branch_4_0/system/src/main/org/jboss/system/ServiceContext.java
===================================================================
--- branches/Branch_4_0/system/src/main/org/jboss/system/ServiceContext.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/main/org/jboss/system/ServiceContext.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -81,6 +81,16 @@
 
    /** Cause for failure */
    public Throwable problem;
+   
+   public String getStateString()
+   {
+      return getStateString(state);
+   }
+   
+   public static String getStateString(int stateInt)
+   {
+      return stateNames[stateInt];
+   }
 
    // Object overrides ----------------------------------------------
    

Modified: branches/Branch_4_0/system/src/main/org/jboss/system/ServiceController.java
===================================================================
--- branches/Branch_4_0/system/src/main/org/jboss/system/ServiceController.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/main/org/jboss/system/ServiceController.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -604,7 +604,7 @@
       ServiceContext ctx = (ServiceContext) nameToServiceMap.get(objectName);
       if (ctx == null)
       {
-         log.debug("Ignoring request to remove nonexistent service: " + objectName);
+         log.trace("Ignoring request to remove nonexistent service: " + objectName);
          return;
       }
       log.debug("removing service: " + objectName);

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/basic/test/Basic.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/basic/test/Basic.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/basic/test/Basic.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/basic/test/DoubleInstall.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/basic/test/DoubleInstall.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/basic/test/DoubleInstall.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenGetAttributes_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenGetAttributes_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenGetAttributes_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=BrokenDynamicMBeanAttributes" code="org.jboss.test.system.controller.support.BrokenDynamicMBeanAttributes">
+      <attribute name="Dummy">dummy</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenSetAttribute_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenSetAttribute_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenSetAttribute_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="BrokenAttribute">value1</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyName_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyName_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyName_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="">value1</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyValue_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyValue_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyValue_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="Attribute1"></attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoName_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoName_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoName_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute>value1</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoValue_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoValue_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoValue_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="Attribute1"/>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNone_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNone_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNone_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="AttributeDoesNotExist">value1</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOne_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOne_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOne_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="Attribute1">value1</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTwo_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTwo_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTwo_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="Attribute1">value1</attribute>
+      <attribute name="Attribute2">value2</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeBrokenSetAttribute_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeBrokenSetAttribute_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeBrokenSetAttribute_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="BrokenObjectNameAttribute">jboss.test:type=depends1</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeEmptyValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeEmptyValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeEmptyValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectNameAttribute1"></depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeInvalidValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeInvalidValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeInvalidValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectNameAttribute1">INVALIDOBJECTNAME</depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNested_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNested_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNested_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectNameAttribute1">
+         <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+      </depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNoValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNoValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNoValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectNameAttribute1"/>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNone_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNone_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNone_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="AttributeDoesNotExist">jboss.test:type=depends1</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOne_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOne_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOne_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectNameAttribute1">jboss.test:type=depends1</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributePatternValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributePatternValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributePatternValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectNameAttribute1">*:*</depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTwo_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTwo_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTwo_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectNameAttribute1">jboss.test:type=depends1</depends>
+      <depends optional-attribute-name="ObjectNameAttribute2">jboss.test:type=depends2</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+   <mbean name="jboss.test:type=depends2" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeUnknownElement_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeUnknownElement_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeUnknownElement_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectNameAttribute1"><unknown/></depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeBrokenSetAttribute_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeBrokenSetAttribute_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeBrokenSetAttribute_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="BrokenObjectNamesAttribute">
+         <depends-list-element>jboss.test:type=depends1</depends-list-element>
+       </depends-list>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeEmptyValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeEmptyValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeEmptyValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNamesAttribute1">
+         <depends-list-element></depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeInvalidValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeInvalidValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeInvalidValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNamesAttribute1">
+         <depends-list-element>INVALIDOBJECTNAME</depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeMultiple_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeMultiple_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeMultiple_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNamesAttribute1">
+         <depends-list-element>jboss.test:type=depends1</depends-list-element>
+         <depends-list-element>jboss.test:type=depends2</depends-list-element>
+      </depends-list>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+   <mbean name="jboss.test:type=depends2" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNested_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNested_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNested_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNamesAttribute1">
+         <depends-list-element>
+            <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+         </depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNoValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNoValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNoValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNamesAttribute1">
+         <depends-list-element/>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNone_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNone_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNone_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="AttributeDoesNotExist">
+         <depends-list-element>jboss.test:type=depends1</depends-list-element>
+      </depends-list>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOne_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOne_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOne_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNamesAttribute1">
+         <depends-list-element>jboss.test:type=depends1</depends-list-element>
+      </depends-list>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributePatternValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributePatternValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributePatternValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNamesAttribute1">
+         <depends-list-element>*:*</depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTwo_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTwo_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTwo_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNamesAttribute1">
+         <depends-list-element>jboss.test:type=depends1</depends-list-element>
+      </depends-list>
+      <depends-list optional-attribute-name="ObjectNamesAttribute2">
+         <depends-list-element>jboss.test:type=depends2</depends-list-element>
+      </depends-list>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+   <mbean name="jboss.test:type=depends2" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeUnknownElement_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeUnknownElement_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeUnknownElement_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNamesAttribute1">
+         <depends-list-element><unknown/></depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingError_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingError_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingError_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="Attribute1">fromxml</attribute>
+      <attribute name="Attribute2">fromxml</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBinding_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBinding_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBinding_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="Attribute1">fromxml</attribute>
+      <attribute name="Attribute2">fromxml</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="AString">ERRORINPROPERTY</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterError_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterError_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterError_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/AttributeInfoTypeNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/AttributeInfoTypeNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/AttributeInfoTypeNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.BrokenDynamicMBeanAttributeInfoTypeNotFound">
+      <depends optional-attribute-name="Name" proxy-type="attribute">jboss.test:type=depends</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/BrokenSetAttribute_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/BrokenSetAttribute_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/BrokenSetAttribute_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="BrokenObjectNameAttribute">jboss.test:type=depends</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyNested_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyNested_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyNested_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectName">
+         <mbean name="jboss.test:type=depends" code="org.jboss.test.system.controller.support.Simple"/>
+      </depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/Dependency_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/Dependency_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/Dependency_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectName">jboss.test:type=depends</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/EmptyValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/EmptyValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/EmptyValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectName"></depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ExplicitProxyType_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ExplicitProxyType_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ExplicitProxyType_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="Proxy" proxy-type="org.jboss.test.system.controller.support.SimpleStandardMBeanInterface">jboss.test:type=depends</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleStandardMBeanInterface"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ImplicitProxyType_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ImplicitProxyType_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ImplicitProxyType_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="Proxy" proxy-type="attribute">jboss.test:type=depends</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleStandardMBeanInterface"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/InvalidValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/InvalidValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/InvalidValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectName">INVALIDOBJECTNAME</depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoAttributeInfoType_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoAttributeInfoType_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoAttributeInfoType_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.BrokenDynamicMBeanNoAttributeInfoType">
+      <depends optional-attribute-name="Name" proxy-type="attribute">jboss.test:type=depends</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectName"/>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/PatternValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/PatternValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/PatternValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectName">*:*</depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="Proxy" proxy-type="TYPEDOESNOTEXIST">jboss.test:type=depends</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotInterface_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotInterface_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotInterface_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="Proxy" proxy-type="org.jboss.test.system.controller.support.Simple">jboss.test:type=depends</depends>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/UnknownElement_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/UnknownElement_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/UnknownElement_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectName"><unknown/></depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/BrokenSetAttribute_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/BrokenSetAttribute_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/BrokenSetAttribute_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="BrokenObjectNamesAttribute">
+         <depends-list-element>jboss.test:type=depends1</depends-list-element>
+       </depends-list>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/EmptyValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/EmptyValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/EmptyValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+         <depends-list-element></depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/InvalidValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/InvalidValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/InvalidValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+         <depends-list-element>INVALIDOBJECTNAME</depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Nested_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Nested_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Nested_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+         <depends-list-element>
+            <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+         </depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/NoValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/NoValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/NoValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+         <depends-list-element/>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/None_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/None_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/None_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/One_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/One_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/One_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+         <depends-list-element>jboss.test:type=depends1</depends-list-element>
+      </depends-list>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/PatternValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/PatternValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/PatternValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+         <depends-list-element>*:*</depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Two_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Two_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Two_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+         <depends-list-element>jboss.test:type=depends1</depends-list-element>
+         <depends-list-element>jboss.test:type=depends2</depends-list-element>
+      </depends-list>
+   </mbean>
+   
+   <mbean name="jboss.test:type=depends1" code="org.jboss.test.system.controller.support.Simple"/>
+   <mbean name="jboss.test:type=depends2" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/UnknownElement_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/UnknownElement_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/UnknownElement_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+         <depends-list-element><unknown/></depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/element/test/Element_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/element/test/Element_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/element/test/Element_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="Element"><dummy/></attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AbstractAttributeClass_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AbstractAttributeClass_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AbstractAttributeClass_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean"
+                 attributeClass="org.jboss.test.system.controller.support.SimpleMBean">
+         <property name="property1">property1</property>
+         <property name="property2">10</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeClassNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeClassNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeClassNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean"
+                 attributeClass="TYPEDOESNOTEXIST">
+         <property name="property1">property1</property>
+         <property name="property2">10</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeInfoTypeNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeInfoTypeNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeInfoTypeNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=BrokenDynamicMBeanAttributeInfoTypeNotFound" code="org.jboss.test.system.controller.support.BrokenDynamicMBeanAttributeInfoTypeNotFound">
+      <attribute name="Name" 
+                 serialDataType="javaBean">
+         <property name="property1">property1</property>
+         <property name="property2">10</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/EmptyPropertyName_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/EmptyPropertyName_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/EmptyPropertyName_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean">
+         <property name="">property1</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInConstructor_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInConstructor_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInConstructor_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean"
+                 attributeClass="org.jboss.test.system.controller.support.JavaBeanErrorConstructor">
+         <property name="property1">property1</property>
+         <property name="property2">10</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInProperty_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInProperty_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInProperty_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean"
+                 attributeClass="org.jboss.test.system.controller.support.JavaBeanErrorConstructor">
+         <property name="property1">property1</property>
+         <property name="property2">10</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ExplicitClass_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ExplicitClass_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ExplicitClass_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean"
+                 attributeClass="org.jboss.test.system.controller.support.JavaBean">
+         <property name="property1">property1</property>
+         <property name="property2">10</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ImplicitClass_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ImplicitClass_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ImplicitClass_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean">
+         <property name="property1">property1</property>
+         <property name="property2">10</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoAttributeInfoType_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoAttributeInfoType_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoAttributeInfoType_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=BrokenDynamicMBeanNoAttributeInfoType" code="org.jboss.test.system.controller.support.BrokenDynamicMBeanNoAttributeInfoType">
+      <attribute name="Name" 
+                 serialDataType="javaBean">
+         <property name="property1">property1</property>
+         <property name="property2">10</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyEditor_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyEditor_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyEditor_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean">
+         <property name="property3">property3</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyName_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyName_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyName_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean">
+         <property>property1</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyValue_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyValue_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyValue_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean">
+         <property name="property1"></property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/PropertyNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/PropertyNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/PropertyNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" 
+                 serialDataType="javaBean">
+         <property name="DOESNOTEXIST">property1</property>
+      </attribute>
+   </mbean>
+</server> 
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/AbstractClass_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/AbstractClass_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/AbstractClass_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" serialDataType="jbxb">
+         <javabean xmlns="urn:jboss:javabean:1.0" 
+                   class="org.jboss.test.system.controller.support.SimpleMBean">
+            <property name="property1">property1</property>
+            <property name="property2">10</property>
+         </javabean>
+      </attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/Basic_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/Basic_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/Basic_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" serialDataType="jbxb">
+         <javabean xmlns="urn:jboss:javabean:1.0" 
+                   class="org.jboss.test.system.controller.support.JavaBean">
+            <property name="property1">property1</property>
+            <property name="property2">10</property>
+         </javabean>
+      </attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ClassNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ClassNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ClassNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" serialDataType="jbxb">
+         <javabean xmlns="urn:jboss:javabean:1.0" 
+                   class="TYPEDOESNOTEXIST">
+            <property name="property1">property1</property>
+            <property name="property2">10</property>
+         </javabean>
+      </attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/EmptyPropertyName_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/EmptyPropertyName_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/EmptyPropertyName_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" serialDataType="jbxb">
+         <javabean xmlns="urn:jboss:javabean:1.0" 
+                   class="org.jboss.test.system.controller.support.JavaBean">
+            <property name="">property1</property>
+            <property name="property2">10</property>
+         </javabean>
+      </attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInConstructor_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInConstructor_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInConstructor_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" serialDataType="jbxb">
+         <javabean xmlns="urn:jboss:javabean:1.0" 
+                   class="org.jboss.test.system.controller.support.JavaBeanErrorConstructor">
+            <property name="property1">property1</property>
+            <property name="property2">10</property>
+         </javabean>
+      </attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInProperty_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInProperty_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInProperty_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" serialDataType="jbxb">
+         <javabean xmlns="urn:jboss:javabean:1.0" 
+                   class="org.jboss.test.system.controller.support.JavaBeanErrorProperty">
+            <property name="property1">property1</property>
+            <property name="property2">10</property>
+         </javabean>
+      </attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyEditor_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyEditor_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyEditor_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" serialDataType="jbxb">
+         <javabean xmlns="urn:jboss:javabean:1.0" 
+                   class="org.jboss.test.system.controller.support.JavaBean">
+            <property name="property3">property1</property>
+            <property name="property2">10</property>
+         </javabean>
+      </attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyName_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyName_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyName_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" serialDataType="jbxb">
+         <javabean xmlns="urn:jboss:javabean:1.0" 
+                   class="org.jboss.test.system.controller.support.JavaBean">
+            <property>property1</property>
+            <property name="property2">10</property>
+         </javabean>
+      </attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyValue_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyValue_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyValue_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" serialDataType="jbxb">
+         <javabean xmlns="urn:jboss:javabean:1.0" 
+                   class="org.jboss.test.system.controller.support.JavaBean">
+            <property name="property1"></property>
+         </javabean>
+      </attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/PropertyNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/PropertyNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/PropertyNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="JavaBean" serialDataType="jbxb">
+         <javabean xmlns="urn:jboss:javabean:1.0" 
+                   class="org.jboss.test.system.controller.support.JavaBean">
+            <property name="DOESNOTEXIST">property1</property>
+            <property name="property2">10</property>
+         </javabean>
+      </attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/AttributeInfoTypeNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/AttributeInfoTypeNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/AttributeInfoTypeNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=BrokenDynamicMBeanAttributeInfoTypeNotFound" code="org.jboss.test.system.controller.support.BrokenDynamicMBeanAttributeInfoTypeNotFound">
+      <attribute name="Name">Value</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoAttributeInfoType_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoAttributeInfoType_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoAttributeInfoType_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=BrokenDynamicMBeanNoAttributeInfoType" code="org.jboss.test.system.controller.support.BrokenDynamicMBeanNoAttributeInfoType">
+      <attribute name="Name">Value</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoPropertyEditor_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoPropertyEditor_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoPropertyEditor_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="Object">Value</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/PropertyEditors_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/PropertyEditors_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/PropertyEditors_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="AString">StringValue</attribute>
+      <attribute name="AByte">12</attribute>
+      <attribute name="ABoolean">true</attribute>
+      <attribute name="AShort">123</attribute>
+      <attribute name="AnInt">1234</attribute>
+      <attribute name="ALong">12345</attribute>
+      <attribute name="AFloat">3.14</attribute>
+      <attribute name="ADouble">3.14e12</attribute>
+      <attribute name="ADate">Mon Jan 01 00:00:00 CET 2001</attribute>
+      <attribute name="ABigDecimal">12e4</attribute>
+      <!--attribute name="ABigInteger">123456</attribute-->
+      <attribute name="Abyte">12</attribute>
+      <attribute name="Aboolean">true</attribute>
+      <attribute name="Ashort">123</attribute>
+      <attribute name="Anint">1234</attribute>
+      <attribute name="Along">12345</attribute>
+      <attribute name="Afloat">3.14</attribute>
+      <attribute name="Adouble">3.14e12</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanAbstractClass_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanAbstractClass_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanAbstractClass_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.AbstractSimple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeClassNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeClassNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeClassNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="THIS_CLASS_DOES_NOT_EXIST"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeEmpty_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeEmpty_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeEmpty_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code=""/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeMissing_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeMissing_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeMissing_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="java.lang.String" value="error"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorException_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorException_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorException_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="java.lang.String" value="exception"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorInvalidType_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorInvalidType_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorInvalidType_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="java.lang.Object" value="unused"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorInvalidValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorInvalidValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorInvalidValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="int" value="INVALID"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorTypeNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorTypeNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanConstructorTypeNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="THIS_CLASS_DOES_NOT_EXIST" value="unused"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanGetMBeanInfoError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanGetMBeanInfoError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanGetMBeanInfoError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=BrokenDynamicMBean" code="org.jboss.test.system.controller.support.BrokenDynamicMBean"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanNotMBean_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanNotMBean_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanNotMBean_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="java.lang.Object"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostDeregisterError_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostDeregisterError_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostDeregisterError_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=PostDeregisterError" code="org.jboss.test.system.controller.support.PostDeregisterError"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostRegisterError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostRegisterError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostRegisterError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=PostRegisterError" code="org.jboss.test.system.controller.support.PostRegisterError"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreDeregisterError_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreDeregisterError_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreDeregisterError_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=PreDeregisterError" code="org.jboss.test.system.controller.support.PreDeregisterError"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreRegisterError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreRegisterError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreRegisterError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=PreRegisterError" code="org.jboss.test.system.controller.support.PreRegisterError"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="java.lang.String" value="error"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBean_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBean_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBean_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanAbstractClass_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanAbstractClass_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanAbstractClass_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.AbstractSimple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeClassNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeClassNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeClassNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="THIS_CLASS_DOES_NOT_EXIST"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeEmpty_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeEmpty_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeEmpty_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code=""
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeMissing_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeMissing_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeMissing_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code=""
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg type="java.lang.String" value="error"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorException_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorException_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorException_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg type="java.lang.String" value="exception"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorInvalidType_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorInvalidType_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorInvalidType_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg type="java.lang.Object" value="unused"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorInvalidValue_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorInvalidValue_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorInvalidValue_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg type="int" value="INVALID"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorTypeNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorTypeNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanConstructorTypeNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg type="THIS_CLASS_DOES_NOT_EXIST" value="unused"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterfaceNotFound_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterfaceNotFound_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterfaceNotFound_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="THIS_CLASS_DOES_NOT_EXIST">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterfaceNotImplemented_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterfaceNotImplemented_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterfaceNotImplemented_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.NotSimpleStandardMBeanInterface">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterface_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterface_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanInterface_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleStandardMBeanInterface">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg type="java.lang.String" value="error"/>
+      </constructor>
+   </mbean>
+      
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBean_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBean_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBean_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeEmpty_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeEmpty_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeEmpty_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="" value="dummy"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeMissing_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeMissing_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeMissing_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg value="dummy"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgValueMissing_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgValueMissing_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgValueMissing_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="java.lang.Integer"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanNoArg_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanNoArg_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanNoArg_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanOneArg_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanOneArg_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanOneArg_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="int" value="5"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanTwoArg_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanTwoArg_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanTwoArg_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="int" value="5"/>
+         <arg type="float" value="3.14"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeEmpty_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeEmpty_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeEmpty_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg type="" value="dummy"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeMissing_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeMissing_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeMissing_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg value="dummy"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgValueMissing_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgValueMissing_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgValueMissing_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg type="java.lang.Integer"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanNoArg_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanNoArg_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanNoArg_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanOneArg_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanOneArg_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanOneArg_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg type="int" value="5"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanTwoArg_install.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanTwoArg_install.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanTwoArg_install.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"
+          interface="org.jboss.test.system.controller.support.SimpleMBean">
+      <constructor>
+         <arg type="int" value="5"/>
+         <arg type="float" value="3.14"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureJMXFromMCUnitTestCase-mc.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureJMXFromMCUnitTestCase-mc.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureJMXFromMCUnitTestCase-mc.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean"/>
+</deployment>

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureJMXFromMCUnitTestCase.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureJMXFromMCUnitTestCase.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureJMXFromMCUnitTestCase.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="SimpleBean"><inject bean="Test"/></attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase-mc.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase-mc.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase-mc.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean">
+      <property name="simple"><inject bean="jboss.test:type=test"/></property>
+   </bean>
+</deployment>

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/ConfigureMCFromJMXUnitTestCase.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase-mc.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase-mc.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase-mc.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean">
+      <create method="create">
+         <parameter class="org.jboss.test.system.controller.support.Simple">
+            <inject bean="jboss.test:type=test"/>
+         </parameter>
+      </create>
+   </bean>
+</deployment>

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/CreateMCFromJMXUnitTestCase.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase-mc.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase-mc.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase-mc.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean">
+      <install method="install">
+         <parameter class="org.jboss.test.system.controller.support.Simple">
+            <inject bean="jboss.test:type=test"/>
+         </parameter>
+      </install>
+   </bean>
+</deployment>

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstallMCFromJMXUnitTestCase.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase-mc.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase-mc.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase-mc.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean">
+      <constructor>
+         <parameter class="org.jboss.test.system.controller.support.Simple">
+            <inject bean="jboss.test:type=test"/>
+         </parameter>
+      </constructor>
+   </bean>
+</deployment>

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/InstantiateMCFromJMXUnitTestCase.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXDependsMCUnitTestCase-mc.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXDependsMCUnitTestCase-mc.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXDependsMCUnitTestCase-mc.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean"/>
+</deployment>

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXDependsMCUnitTestCase.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXDependsMCUnitTestCase.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXDependsMCUnitTestCase.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <depends>Test</depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/MCDependsJMXUnitTestCase-mc.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/MCDependsJMXUnitTestCase-mc.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/MCDependsJMXUnitTestCase-mc.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean">
+      <depends>jboss.test:type=test</depends>
+   </bean>
+</deployment>

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/MCDependsJMXUnitTestCase.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/MCDependsJMXUnitTestCase.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/MCDependsJMXUnitTestCase.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase-mc.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase-mc.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase-mc.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="Test" class="org.jboss.test.system.controller.integration.support.SimpleBean">
+      <start method="start">
+         <parameter class="org.jboss.test.system.controller.support.Simple">
+            <inject bean="jboss.test:type=test"/>
+         </parameter>
+      </start>
+   </bean>
+</deployment>

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/integration/test/StartMCFromJMXUnitTestCase.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListNested_NotAutomatic.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListNested_NotAutomatic.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListNested_NotAutomatic.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list>
+         <depends-list-element>
+            <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple"/>
+         </depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsList_NotAutomatic.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsList_NotAutomatic.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsList_NotAutomatic.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list>
+         <depends-list-element>test:name=2</depends-list-element>
+      </depends-list>
+   </mbean>
+   <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsNested_NotAutomatic.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsNested_NotAutomatic.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsNested_NotAutomatic.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <depends>
+         <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple"/>
+      </depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListNested_NotAutomatic.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListNested_NotAutomatic.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListNested_NotAutomatic.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+         <depends-list-element>
+            <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple"/>
+         </depends-list-element>
+      </depends-list>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeList_NotAutomatic.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeList_NotAutomatic.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeList_NotAutomatic.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <depends-list optional-attribute-name="ObjectNames">
+         <depends-list-element>test:name=2</depends-list-element>
+      </depends-list>
+   </mbean>
+   <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeNested_NotAutomatic.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeNested_NotAutomatic.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeNested_NotAutomatic.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectName">
+         <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple"/>
+      </depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttribute_NotAutomatic.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttribute_NotAutomatic.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttribute_NotAutomatic.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <depends optional-attribute-name="ObjectName">test:name=2</depends>
+   </mbean>
+   <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDepends_NotAutomatic.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDepends_NotAutomatic.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDepends_NotAutomatic.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <depends>test:name=2</depends>
+   </mbean>
+   <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycle_NotAutomatic.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycle_NotAutomatic.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycle_NotAutomatic.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="AString">ERRORINPROPERTY</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple">
+      <depends>test:name=1</depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="AString">ERRORINCREATE</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple">
+      <depends>test:name=1</depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <constructor>
+         <arg type="java.lang.String" value="error"/>
+      </constructor>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple">
+      <depends>test:name=1</depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="AString">ERRORINSTART</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple">
+      <depends>test:name=1</depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDepends_1.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDepends_1.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDepends_1.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=1" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDepends_2.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDepends_2.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDepends_2.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="test:name=2" code="org.jboss.test.system.controller.support.Simple">
+      <depends>test:name=1</depends>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="AString">ERRORINCREATE</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="AString">ERRORINDESTROY</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="AString">ERRORINSTART</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_bad.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_bad.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_bad.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple">
+      <attribute name="AString">ERRORINSTOP</attribute>
+   </mbean>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_good.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_good.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_good.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.test:type=test" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameEmpty.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameEmpty.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameEmpty.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameInvalid.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameInvalid.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameInvalid.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="InvalidObjectName" code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameMissing.xml
===================================================================
--- branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameMissing.xml	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/resources/tests/org/jboss/test/system/controller/parse/test/NameMissing.xml	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean code="org.jboss.test.system.controller.support.Simple"/>
+</server>
\ No newline at end of file

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/AbstractSystemTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/AbstractSystemTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/AbstractSystemTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,96 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test;
+
+import org.jboss.logging.Logger;
+import org.jboss.util.UnexpectedThrowable;
+
+/**
+ * A SystemTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.2 $
+ */
+public abstract class AbstractSystemTest extends AbstractTestCaseWithSetup
+{
+   private static Logger staticLog = Logger.getLogger(AbstractSystemTest.class);
+   
+   // @fixme move to AbstractTestCase
+   public static void checkThrowableDeep(Class expected, Throwable throwable) throws Exception
+   {
+      assertNotNull(expected);
+      assertNotNull(throwable);
+      
+      Throwable original = throwable;
+      
+      while (throwable.getCause() != null)
+         throwable = throwable.getCause();
+      
+      if (expected.equals(throwable.getClass()) == false)
+      {
+         if (original instanceof Exception)
+            throw (Exception) original;
+         else if (original instanceof Error)
+            throw (Error) original;
+         else
+            throw new UnexpectedThrowable("UnexpectedThrowable", original);
+      }
+      else
+      {
+         staticLog.debug("Got expected " + expected.getName() + "(" + throwable + ")");
+      }
+   }
+   
+   // @fixme move to AbstractTestCase
+   public static Object assertInstanceOf(Class expected, Object object) throws Exception
+   {
+      if (object == null)
+         return null;
+      assertTrue(object.getClass(). getName() + " is not an instance of " + expected.getName(), expected.isInstance(object));
+      return object;
+   }
+   
+
+   /**
+    * Create a new ContainerTest.
+    * 
+    * @param name the test name
+    */
+   public AbstractSystemTest(String name)
+   {
+      super(name);
+   }
+   
+   /**
+    * Default setup with security manager enabled
+    * 
+    * @param clazz the class
+    * @return the delegate
+    * @throws Exception for any error
+    */
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      AbstractTestDelegate delegate = new AbstractTestDelegate(clazz);
+      delegate.enableSecurity = true;
+      return delegate;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/SystemAllTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/SystemAllTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/SystemAllTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,51 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test;
+
+import org.jboss.test.system.SystemTestSuite;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * All Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class SystemAllTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("All Tests");
+
+      suite.addTest(SystemTestSuite.suite());
+      
+      return suite;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/SystemTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/SystemTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/SystemTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,51 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.system.controller.test.ControllerTestSuite;
+
+/**
+ * System Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class SystemTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("System Tests");
+
+      suite.addTest(ControllerTestSuite.suite());
+      
+      return suite;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/AbstractControllerTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/AbstractControllerTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/AbstractControllerTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,377 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller;
+
+import java.io.IOException;
+import java.net.URL;
+import java.util.Collections;
+import java.util.List;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+import org.jboss.system.ServiceContext;
+import org.jboss.system.ServiceControllerMBean;
+import org.jboss.test.AbstractSystemTest;
+import org.jboss.test.AbstractTestDelegate;
+import org.jboss.test.system.controller.support.Order;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * A Controller Test.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.2 $
+ */
+public abstract class AbstractControllerTest extends AbstractSystemTest
+{
+   public static boolean OLD_NOT_REGISTERED = false; 
+   public static boolean OLD_REGISTERED = true;
+   
+   /**
+    * Create a new ContainerTest.
+    * 
+    * @param name the test name
+    */
+   public AbstractControllerTest(String name)
+   {
+      super(name);
+   }
+   
+   public static AbstractTestDelegate getOldControllerDelegate(Class clazz) throws Exception
+   {
+      ControllerTestDelegate delegate = new OldControllerTestDelegate(clazz);
+      // @todo delegate.enableSecurity = true;
+      return delegate;
+   }
+   
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+      Order.reset();
+   }
+
+   protected void tearDown() throws Exception
+   {
+      getControllerDelegate().uninstallTemporary();
+      super.tearDown();
+   }
+
+   protected ControllerTestDelegate getControllerDelegate()
+   {
+      return (ControllerTestDelegate) getDelegate();
+   }
+   
+   protected MBeanServer getServer()
+   {
+      return getControllerDelegate().getServer();
+   }
+   
+   protected ServiceControllerMBean getController()
+   {
+      return getControllerDelegate().getController();
+   }
+   
+   protected List deploy(URL url) throws Exception
+   {
+      return getControllerDelegate().deploy(url, true);
+   }
+   
+   protected List deploy(String resource) throws Exception
+   {
+      URL url = getResourceURL(resource);
+      return deploy(url);
+   }
+   
+   protected void undeploy(List objectNames)
+   {
+      getControllerDelegate().undeploy(objectNames);
+   }
+   
+   protected List install(String resource) throws Exception
+   {
+      URL url = getResourceURL(resource);
+      return install(url);
+   }
+   
+   protected List install(URL url) throws Exception
+   {
+      return getControllerDelegate().install(url);
+   }
+   
+   protected void uninstall(List objectNames)
+   {
+      getControllerDelegate().uninstall(objectNames);
+   }
+
+   protected void assertInstall(ObjectName name) throws Exception
+   {
+      
+      String resource = getName();
+      resource = resource.substring(4) + "_install.xml";
+      install(resource);
+      
+      assertServiceConfigured(name);
+      assertRegistered(name);
+   }
+
+   protected void assertUninstall(ObjectName name) throws Exception
+   {
+      uninstall(Collections.singletonList(name));
+      assertNoService(name);
+      assertNotRegistered(name);
+   }
+
+   protected List assertDeploy(ObjectName name) throws Exception
+   {
+      
+      String resource = getName();
+      resource = resource.substring(4) + "_install.xml";
+      List result = deploy(resource);
+      
+      assertServiceRunning(name);
+      assertRegistered(name);
+      
+      return result;
+   }
+
+   protected void assertUndeploy(ObjectName name) throws Exception
+   {
+      assertUndeploy(name, Collections.singletonList(name));
+   }
+
+   protected void assertUndeploy(ObjectName name, List names) throws Exception
+   {
+      uninstall(names);
+      assertNoService(name);
+      assertNotRegistered(name);
+   }
+   
+   protected void validate() throws Exception
+   {
+      getControllerDelegate().validate();
+   }
+   
+   protected void assertInvalidDeployments() throws Exception
+   {
+      getControllerDelegate().assertInvalidDeployments();
+   }
+   
+   protected void assertInitialDeployFailure(String resource, ObjectName name, Class expected) throws Exception
+   {
+      URL url = getResourceURL(resource);
+      getControllerDelegate().assertInitialDeployFailure(url, name, expected);
+   }
+   
+   protected List assertDeployFailure(ObjectName name, Class expected) throws Exception
+   {
+      return assertDeployFailure(name, ServiceContext.FAILED, expected);
+   }
+   
+   protected List assertDeployFailure(ObjectName name, int expectedState, Class expected) throws Exception
+   {
+      String resource = getName();
+      resource = resource.substring(4) + "_bad.xml";
+      return assertDeployFailure(resource, name, expectedState, expected);
+   }
+   
+   protected List assertDeployFailure(String resource, ObjectName name, Class expected) throws Exception
+   {
+      return assertDeployFailure(resource, name, ServiceContext.FAILED, expected);
+   }
+   
+   protected List assertDeployFailure(String resource, ObjectName name, int expectedState, Class expected) throws Exception
+   {
+      URL url = getResourceURL(resource);
+      List result = getControllerDelegate().assertDeployFailure(url, name, expected);
+      if (expectedState == ServiceContext.FAILED)
+         assertServiceFailed(name, OLD_REGISTERED);
+      else
+         assertServiceState(name, expectedState);
+      return result;
+   }
+
+   protected void redeployAfterDeployFailure(ObjectName name, Class expected) throws Exception
+   {
+      String root = getName();
+      root = root.substring(4);
+
+      List names = assertDeployFailure(root + "_bad.xml", SimpleMBean.OBJECT_NAME, expected);
+      undeploy(names);
+      deploy(root + "_good.xml");
+      assertServiceRunning(name);
+   }
+
+   protected void redeployAfterUndeployFailure(ObjectName name) throws Exception
+   {
+      String root = getName();
+      root = root.substring(4);
+
+      List names = deploy(root + "_bad.xml");
+      assertServiceRunning(name);
+      undeploy(names);
+      deploy(root + "_good.xml");
+      assertServiceRunning(name);
+   }
+   
+   protected List assertMaybeDeployFailure(ObjectName name, Class expected) throws Exception
+   {
+      String resource = getName();
+      resource = resource.substring(4) + "_bad.xml";
+      return assertMaybeDeployFailure(resource, name, expected);
+   }
+   
+   protected List assertMaybeDeployFailure(String resource, ObjectName name, Class expected) throws Exception
+   {
+      URL url = getResourceURL(resource);
+      List result = getControllerDelegate().assertMaybeDeployFailure(url, name, expected);
+      assertServiceFailed(name, OLD_NOT_REGISTERED);
+      return result;
+   }
+
+   protected void redeployAfterMaybeDeployFailure(ObjectName name, Class expected) throws Exception
+   {
+      String root = getName();
+      root = root.substring(4);
+
+      List names = assertMaybeDeployFailure(root + "_bad.xml", SimpleMBean.OBJECT_NAME, expected);
+      undeploy(names);
+      deploy(root + "_good.xml");
+      assertServiceRunning(name);
+   }
+
+   protected void assertMaybeParseFailure(ObjectName name, Class expected) throws Exception
+   {
+      String resource = getName();
+      resource = resource.substring(4) + "_bad.xml";
+      assertMaybeParseFailure(resource, name, expected);
+   }
+   
+   protected void assertMaybeParseFailure(String resource, ObjectName name, Class expected) throws Exception
+   {
+      URL url = getResourceURL(resource);
+      getControllerDelegate().assertMaybeParseFailure(url, name, expected);
+      assertServiceFailed(name, OLD_NOT_REGISTERED);
+   }
+   
+   protected ServiceContext getServiceContext(ObjectName name) throws Exception
+   {
+      assertNotNull(name);
+      return getControllerDelegate().getServiceContext(name);
+   }
+   
+   protected void assertServiceFailed(ObjectName name) throws Exception
+   {
+      assertServiceFailed(name, OLD_REGISTERED);
+   }
+   
+   protected void assertServiceFailed(ObjectName name, boolean registered) throws Exception
+   {
+      getControllerDelegate().assertServiceFailed(name, registered);
+   }
+   
+   protected void assertServiceInstalled(ObjectName name) throws Exception
+   {
+      assertServiceState(name, ServiceContext.INSTALLED, true);
+   }
+   
+   protected void assertServiceConfigured(ObjectName name) throws Exception
+   {
+      assertServiceState(name, ServiceContext.CONFIGURED, true);
+   }
+   
+   protected void assertServiceCreated(ObjectName name) throws Exception
+   {
+      assertServiceState(name, ServiceContext.CREATED, true);
+   }
+   
+   protected void assertServiceRunning(ObjectName name) throws Exception
+   {
+      assertServiceState(name, ServiceContext.RUNNING, true);
+   }
+   
+   protected void assertServiceStopped(ObjectName name) throws Exception
+   {
+      assertServiceState(name, ServiceContext.STOPPED, true);
+   }
+   
+   protected void assertServiceDestroyed(ObjectName name) throws Exception
+   {
+      assertServiceState(name, ServiceContext.DESTROYED, true);
+   }
+   
+   protected void assertServiceState(ObjectName name, int expectedState) throws Exception
+   {
+      ServiceContext ctx = getServiceContext(name);
+      assertTrue("Incorrect state for " + name + " expected " + ServiceContext.getStateString(expectedState) + " got " + ctx.getStateString(), expectedState == ctx.state);
+   }
+   
+   protected void assertServiceState(ObjectName name, int expectedState, boolean registered) throws Exception
+   {
+      getControllerDelegate().assertServiceState(name, expectedState, registered);
+   }
+   
+   protected void assertNoService(ObjectName name) throws Exception
+   {
+      ServiceContext ctx = getServiceContext(name);
+      assertNull("Should not be a service context for " + name, ctx);
+   }
+   
+   protected URL getResourceURL(String resource) throws Exception
+   {
+      URL url = getClass().getResource(resource);
+      if (url == null)
+         throw new IOException(resource + " not found");
+      return url;
+   }
+   
+   protected void assertRegistered(ObjectName name) throws Exception
+   {
+      MBeanServer server = getServer();
+      assertTrue(name + " should be registered in the MBeanServer", server.isRegistered(name));
+   }
+   
+   protected void assertNotRegistered(ObjectName name) throws Exception
+   {
+      MBeanServer server = getServer();
+      assertFalse(name + " should NOT be registered in the MBeanServer", server.isRegistered(name));
+   }
+
+   protected Object getMBean(Class expected, ObjectName name, String attribute) throws Exception
+   {
+      MBeanServer server = getServer();
+      Object object = server.getAttribute(name, attribute);
+      assertNotNull(object);
+      return assertInstanceOf(expected, object);
+   }
+
+   protected Simple getSimple() throws Exception
+   {
+      return (Simple) getMBean(Simple.class, SimpleMBean.OBJECT_NAME, "Instance");
+   }
+   
+   protected void FAILS_IN_OLD()
+   {
+      getLog().debug("This test fails with the old service controller, ignoring.");
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,307 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller;
+
+import java.lang.reflect.UndeclaredThrowableException;
+import java.net.URL;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.management.MBeanServer;
+import javax.management.MBeanServerFactory;
+import javax.management.ObjectName;
+
+import junit.framework.AssertionFailedError;
+
+import org.jboss.deployment.IncompleteDeploymentException;
+import org.jboss.mx.server.ServerConstants;
+import org.jboss.system.ServiceContext;
+import org.jboss.system.ServiceControllerMBean;
+import org.jboss.test.AbstractSystemTest;
+import org.jboss.test.AbstractTestDelegate;
+import org.jboss.test.system.controller.support.Order;
+
+/**
+ * ControllerTestDelegate.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class ControllerTestDelegate extends AbstractTestDelegate
+{
+   private MBeanServer server; 
+   
+   private ServiceControllerMBean serviceController;
+
+   private SimpleSARDeployer deployer;
+   
+   public ControllerTestDelegate(Class clazz)
+   {
+      super(clazz);
+   }
+
+   public MBeanServer getServer()
+   {
+      return server;
+   }
+
+   public ServiceControllerMBean getController()
+   {
+      return serviceController;
+   }
+   
+   public void setUp() throws Exception
+   {
+      super.setUp();
+      
+      System.setProperty(ServerConstants.MBEAN_SERVER_BUILDER_CLASS_PROPERTY, ServerConstants.DEFAULT_MBEAN_SERVER_BUILDER_CLASS);
+      server = MBeanServerFactory.newMBeanServer("jboss");
+      serviceController = createServiceController();
+      server.registerMBean(serviceController, ServiceControllerMBean.OBJECT_NAME);
+      
+      deployer = new SimpleSARDeployer(server, serviceController);
+
+      Order.reset();
+      
+      deploy();
+      
+      if (isValidateAtSetUp())
+         validate();
+   }
+
+   // TODO Temporary until the IncompleteDeploymentDescription is integrated 
+   protected boolean isValidateAtSetUp()
+   {
+      return true;
+   }
+   
+   public abstract ServiceControllerMBean createServiceController() throws Exception;
+   
+   public void tearDown() throws Exception
+   {
+      deployer.uninstall();
+      super.tearDown();
+   }
+
+   protected void uninstallTemporary() throws Exception
+   {
+      deployer.uninstallTemporary();
+   }
+   
+   protected void validate() throws Exception
+   {
+      Collection waitingForClasses = new HashSet();
+      Collection waitingForDepends = serviceController.listIncompletelyDeployed();
+      Collection allServices = serviceController.listDeployed();
+      
+      // Weed services that are waiting for other deployments
+      Collection rootCause = new HashSet(waitingForDepends);
+      Collection missing = new HashSet();
+      for (Iterator i = rootCause.iterator(); i.hasNext();)
+      {
+         ServiceContext ctx = (ServiceContext) i.next();
+         for (Iterator j = ctx.iDependOn.iterator(); j.hasNext(); )
+         {
+            ServiceContext dependee = (ServiceContext) j.next();
+            if (dependee.state != ServiceContext.RUNNING)
+            {
+               // Add missing mbean
+               if (allServices.contains(dependee) == false)
+                  missing.add(dependee);
+               // We are not a root cause
+               i.remove();
+               break;
+            }
+         }
+      }
+      // Add missing mbeans to the root cause
+      rootCause.addAll(missing);
+      
+      IncompleteDeploymentException ide = new IncompleteDeploymentException(
+         waitingForClasses,
+         waitingForDepends,
+         rootCause,
+         Collections.EMPTY_LIST,
+         Collections.EMPTY_LIST);
+
+      if (ide.isEmpty() == false)
+         throw ide;
+   }
+   
+   protected void deploy() throws Exception
+   {
+      String testName = clazz.getName();
+      testName = testName.replace('.', '/');
+
+      int index = testName.indexOf("NewUnitTestCase");
+      if (index != -1)
+         testName = testName.substring(0, index);
+      index = testName.indexOf("OldUnitTestCase");
+      if (index != -1)
+         testName = testName.substring(0, index);
+      
+      testName += ".xml";
+      
+      URL url = clazz.getClassLoader().getResource(testName);
+      if (url != null)
+         deploy(url, false);
+      else
+         log.debug("No test specific deployment " + testName);
+   }
+
+   protected List deploy(URL url, boolean temporary) throws Exception
+   {
+      return deployer.deploy(url, temporary);
+   }
+   
+   protected void undeploy(List objectNames)
+   {
+      deployer.undeploy(objectNames);
+   }
+
+   protected List install(URL url) throws Exception
+   {
+      return deployer.install(url);
+   }
+   
+   protected void uninstall(List objectNames)
+   {
+      deployer.uninstall(objectNames);
+   }
+   
+   public abstract void assertMBeanFailed(ObjectName name, boolean registered) throws Exception;
+   
+   protected IncompleteDeploymentException assertInvalidDeployments() throws Exception
+   {
+      try
+      {
+         validate();
+         throw new AssertionFailedError("Deployments should not be valid!");
+      }
+      catch (IncompleteDeploymentException expected)
+      {
+         log.debug("Got expected " + expected.getClass().getName());
+         return expected;
+      }
+   }
+   
+   protected void assertInitialDeployFailure(URL url, ObjectName name, Class expected) throws Exception
+   {
+      try
+      {
+         deploy(url, true);
+         throw new AssertionFailedError("Should have got a " + expected.getName());
+      }
+      catch (Throwable t)
+      {
+         AbstractSystemTest.checkThrowableDeep(expected, t);
+      }
+      if (name != null)
+         assertNoService(name);
+   }
+
+   public List assertDeployFailure(URL url, ObjectName name, Class expected) throws Exception
+   {
+      List result = deploy(url, true);
+      IncompleteDeploymentException e = assertInvalidDeployments();
+      checkIncomplete(e, name, expected);
+      return result;
+   }
+   
+   public List assertMaybeDeployFailure(URL url, ObjectName name, Class expected) throws Exception
+   {
+      return assertDeployFailure(url, name, expected);
+   }
+   
+   public void assertMaybeParseFailure(URL url, ObjectName name, Class expected) throws Exception
+   {
+      assertDeployFailure(url, name, expected);
+      assertServiceFailed(name);
+   }
+   
+   protected void checkIncomplete(IncompleteDeploymentException e, ObjectName name, Class expected) throws Exception
+   {
+      Collection incomplete = e.getMbeansWaitingForDepends();
+      for (Iterator i = incomplete.iterator(); i.hasNext();)
+      {
+         ServiceContext ctx = (ServiceContext) i.next();
+         if (name.equals(ctx.objectName))
+         {
+            if (e != null || expected != null)
+            {
+               if (expected != null && ctx.problem == null)
+                  throw new AssertionFailedError("Did not get expected " + expected.getName() + " for " + ctx);
+               if (expected == null && ctx.problem != null)
+               {
+                  if (ctx.problem instanceof Exception)
+                     throw (Exception) ctx.problem;
+                  if (ctx.problem instanceof Error)
+                     throw (Error) ctx.problem;
+                  throw new UndeclaredThrowableException(ctx.problem);
+               }
+               if (expected != null)
+                  AbstractSystemTest.checkThrowableDeep(expected, ctx.problem);
+            }
+            return;
+         }
+      }
+      
+      throw new AssertionFailedError("Did not find " + name + " in incomplete deployments " + incomplete);
+   }
+   
+   protected ServiceContext getServiceContext(ObjectName name) throws Exception
+   {
+      return getController().getServiceContext(name);
+   }
+   
+   protected void assertNoService(ObjectName name) throws Exception
+   {
+      ServiceContext ctx = getServiceContext(name);
+      if (ctx != null && ctx.state != ServiceContext.NOTYETINSTALLED)
+         throw new AssertionFailedError("Should not be a service context for " + ctx);
+   }
+
+   protected void assertServiceFailed(ObjectName name) throws Exception
+   {
+      assertServiceFailed(name, AbstractControllerTest.OLD_REGISTERED);
+   }
+   
+   protected void assertServiceFailed(ObjectName name, boolean registered) throws Exception
+   {
+      assertServiceState(name, ServiceContext.FAILED, registered);
+      assertMBeanFailed(name, registered);
+   }
+   
+   protected void assertServiceState(ObjectName name, int expectedState, boolean registered) throws Exception
+   {
+      ServiceContext ctx = getServiceContext(name);
+      if (registered == false && ctx == null)
+         return;
+      if (ctx == null)
+         throw new AssertionFailedError("Incorrect state for " + name + " expected " + ServiceContext.getStateString(expectedState) + " but there is no context/state");
+      if (expectedState != ctx.state)
+         throw new AssertionFailedError("Incorrect state for " + name + " expected " + ServiceContext.getStateString(expectedState) + " got " + ctx.getStateString());
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/OldControllerTestDelegate.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/OldControllerTestDelegate.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/OldControllerTestDelegate.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,89 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller;
+
+import java.net.URL;
+import java.util.Collections;
+import java.util.List;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+import junit.framework.AssertionFailedError;
+
+import org.jboss.system.ServiceController;
+import org.jboss.system.ServiceControllerMBean;
+import org.jboss.test.AbstractSystemTest;
+
+/**
+ * ControllerTestDelegate.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class OldControllerTestDelegate extends ControllerTestDelegate
+{
+   public OldControllerTestDelegate(Class clazz)
+   {
+      super(clazz);
+   }
+   
+   public ServiceControllerMBean createServiceController()
+   {
+      return new ServiceController();
+   }
+   
+   public void assertMBeanFailed(ObjectName name, boolean registered) throws Exception
+   {
+      MBeanServer server = getServer();
+      if (registered == false && server.isRegistered(name))
+         throw new AssertionFailedError(name + " should not be registered after a failure");
+      if (registered && server.isRegistered(name) == false)
+         throw new AssertionFailedError(name + " should be registered after a failure");
+   }
+
+   public List assertMaybeDeployFailure(URL url, ObjectName name, Class expected) throws Exception
+   {
+      if (expected != null)
+      {
+         try
+         {
+            deploy(url, true);
+            throw new AssertionFailedError("Should have got a " + expected.getName());
+         }
+         catch (Throwable throwable)
+         {
+            AbstractSystemTest.checkThrowableDeep(expected, throwable);
+            return Collections.EMPTY_LIST;
+         }
+      }
+      else
+      {
+         return super.assertMaybeDeployFailure(url, name, expected);
+      }
+   }
+   
+   public void assertMaybeParseFailure(URL url, ObjectName name, Class expected) throws Exception
+   {
+      assertInitialDeployFailure(url, name, expected);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/SimpleSARDeployer.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/SimpleSARDeployer.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/SimpleSARDeployer.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,244 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller;
+
+import java.io.InputStream;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.List;
+import java.util.ListIterator;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.logging.Logger;
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.system.ServiceControllerMBean;
+import org.jboss.util.xml.JBossEntityResolver;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.xml.sax.InputSource;
+
+import EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList;
+
+/**
+ * SimpleSARDeployer.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class SimpleSARDeployer
+{
+   private static Logger log = Logger.getLogger(SimpleSARDeployer.class);
+   
+   public static ObjectName classLoaderObjectName = ObjectNameFactory.create("test:classloader=test");
+   
+   private ServiceControllerMBean serviceController;
+
+   private List deployed = new CopyOnWriteArrayList();
+
+   private List tempDeployed = new CopyOnWriteArrayList();
+   
+   private DocumentBuilder parser;
+   
+   public SimpleSARDeployer(MBeanServer server, ServiceControllerMBean serviceController) throws Exception
+   {
+      this.serviceController = serviceController;
+      
+      TestClassLoader classLoader = new TestClassLoader();
+      server.registerMBean(classLoader, classLoaderObjectName);
+
+      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
+      parser = factory.newDocumentBuilder();
+   }
+
+   public List deploy(URL url, boolean temporary) throws Exception
+   {
+      long start = System.currentTimeMillis();
+      
+      List result = doInstall(url, temporary);
+
+      try
+      {
+         create(result);
+         try
+         {
+            start(result);
+         }
+         catch (Throwable t)
+         {
+            stop(result);
+            throw t;
+         }
+      }
+      catch (Throwable t)
+      {
+         destroy(result);
+         remove(result);
+         DeploymentException.rethrowAsDeploymentException("Error", t);
+      }
+      
+      log.debug("Deployed " + url + " took " + (System.currentTimeMillis() - start) + "ms");
+      return result;
+   }
+   
+   public void uninstall()
+   {
+      undeploy(deployed);
+   }
+   
+   public void uninstallTemporary()
+   {
+      undeploy(tempDeployed);
+   }
+   
+   public void undeploy(List objectNames)
+   {
+      stop(objectNames);
+      destroy(objectNames);
+      remove(objectNames);
+   }
+   
+   public void create(List services) throws Exception
+   {
+      for (int i = 0; i < services.size(); ++i)
+      {
+         ObjectName name = (ObjectName) services.get(i);
+         serviceController.create(name);
+      }
+   }
+   
+   public void start(List services) throws Exception
+   {
+      for (int i = 0; i < services.size(); ++i)
+      {
+         ObjectName name = (ObjectName) services.get(i);
+         serviceController.start(name);
+      }
+   }
+   
+   public void stop(List services)
+   {
+      for (ListIterator i = services.listIterator(services.size()); i.hasPrevious();)
+      {
+         ObjectName name = (ObjectName) i.previous();
+         try
+         {
+            serviceController.stop(name);
+         }
+         catch (Throwable ignored)
+         {
+            log.debug("Ignored", ignored);
+         }
+      }
+   }
+   
+   public void destroy(List services)
+   {
+      for (ListIterator i = services.listIterator(services.size()); i.hasPrevious();)
+      {
+         ObjectName name = (ObjectName) i.previous();
+         try
+         {
+            serviceController.destroy(name);
+         }
+         catch (Throwable ignored)
+         {
+            log.debug("Ignored", ignored);
+         }
+      }
+   }
+   
+   public void remove(List services)
+   {
+      for (Iterator i = services.iterator(); i.hasNext();)
+      {
+         ObjectName name = (ObjectName) i.next();
+         deployed.remove(name);
+         tempDeployed.remove(name);
+         try
+         {
+            serviceController.remove(name);
+         }
+         catch (Throwable ignored)
+         {
+            log.debug("Ignored", ignored);
+         }
+      }
+   }
+   
+   public List install(URL url) throws Exception
+   {
+      long start = System.currentTimeMillis();
+      
+      List result = doInstall(url, true);
+      
+      log.debug("Deployed " + url + " took " + (System.currentTimeMillis() - start) + "ms");
+      return result;
+   }
+   
+   public void uninstall(List services)
+   {
+      remove(services);
+   }
+   
+   protected List doInstall(URL url, boolean temporary) throws Exception
+   {
+      List result = null;
+      
+      Element element = null;
+
+      try
+      {
+         InputStream stream = url.openStream();
+         try
+         {
+            InputSource is = new InputSource(stream);
+            is.setSystemId(url.toString());
+            parser.setEntityResolver(new JBossEntityResolver());
+
+            Document document = parser.parse(is);
+            element = document.getDocumentElement();
+         }
+         finally
+         {
+            stream.close();
+         }
+
+         result = serviceController.install(element, classLoaderObjectName);
+
+         deployed.addAll(result);
+         if (temporary)
+            tempDeployed.addAll(result);
+      }
+      catch (Exception e)
+      {
+         log.debug("Error deploying: " + url + ": " + e);
+         throw e;
+      }
+      
+      return result;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/TestClassLoader.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/TestClassLoader.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/TestClassLoader.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,39 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller;
+
+import java.net.URL;
+import java.net.URLClassLoader;
+
+/**
+ * TestClassLoader.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class TestClassLoader extends URLClassLoader implements TestClassLoaderMBean
+{
+   public TestClassLoader()
+   {
+      super(new URL[0], Thread.currentThread().getContextClassLoader());
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/TestClassLoaderMBean.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/TestClassLoaderMBean.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/TestClassLoaderMBean.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,26 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller;
+
+public interface TestClassLoaderMBean
+{
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/BasicOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/BasicOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/BasicOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * BasicOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BasicOldUnitTestCase extends BasicTest
+{
+   public static Test suite()
+   {
+      return suite(BasicOldUnitTestCase.class);
+   }
+
+   public BasicOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/BasicTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/BasicTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/BasicTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,55 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.basic.test;
+
+import javax.management.MBeanServer;
+
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * BasicTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class BasicTest extends AbstractControllerTest
+{
+   public BasicTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testBasics() throws Exception
+   {
+      assertServiceRunning(SimpleMBean.OBJECT_NAME);
+      
+      MBeanServer server = getServer();
+      Simple test = (Simple) server.getAttribute(SimpleMBean.OBJECT_NAME, "Instance");
+      assertEquals("()", test.constructorUsed);
+      assertEquals(1, test.createOrder);
+      assertEquals(2, test.startOrder);
+      assertEquals(0, test.stopOrder);
+      assertEquals(0, test.destroyOrder);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/ControllerBasicTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/ControllerBasicTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/ControllerBasicTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.basic.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * Controller Basic Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class ControllerBasicTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Controller Basic Tests");
+
+      suite.addTest(BasicOldUnitTestCase.suite());
+      suite.addTest(DoubleInstallOldUnitTestCase.suite());
+      
+      return suite;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/DoubleInstallOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/DoubleInstallOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/DoubleInstallOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * DoubleInstallOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DoubleInstallOldUnitTestCase extends DoubleInstallTest
+{
+   public static Test suite()
+   {
+      return suite(DoubleInstallOldUnitTestCase.class);
+   }
+
+   public DoubleInstallOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/DoubleInstallTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/DoubleInstallTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/basic/test/DoubleInstallTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,54 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.basic.test;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * DoubleInstallTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class DoubleInstallTest extends AbstractControllerTest
+{
+   public DoubleInstallTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testDoubleInstall() throws Exception
+   {
+      try
+      {
+         deploy("DoubleInstall.xml");
+         fail("Should not be able to deploy twice");
+      }
+      catch (Throwable t)
+      {
+         checkThrowable(DeploymentException.class, t);
+      }
+      assertServiceRunning(SimpleMBean.OBJECT_NAME);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.attribute.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * AttributeOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class AttributeOldUnitTestCase extends AttributeTest
+{
+   public static Test suite()
+   {
+      return suite(AttributeOldUnitTestCase.class);
+   }
+
+   public AttributeOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,149 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.attribute.test;
+
+import javax.management.ObjectName;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.BrokenDynamicMBeanAttributes;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * AttributeTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class AttributeTest extends AbstractControllerTest
+{
+   public AttributeTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testAttributeNone() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertNull(simple.getAttribute1());
+         assertNull(simple.getAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testAttributeOne() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals("value1", simple.getAttribute1());
+         assertNull(simple.getAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testAttributeTwo() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals("value1", simple.getAttribute1());
+         assertEquals("value2", simple.getAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testAttributeNoValue() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertNull(simple.getAttribute1());
+         assertNull(simple.getAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testAttributeEmptyValue() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertNull(simple.getAttribute1());
+         assertNull(simple.getAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testAttributeNoName() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testAttributeEmptyName() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testAttributeBrokenGetAttributes() throws Exception
+   {
+      assertDeployFailure(BrokenDynamicMBeanAttributes.OBJECT_NAME, Error.class);
+   }
+   
+   public void testAttributeNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testAttributeBrokenSetAttribute() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,84 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.attribute.test;
+
+import javax.management.AttributeNotFoundException;
+
+import junit.framework.Test;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.test.AbstractTestDelegate;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * DependsAttributeOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsAttributeOldUnitTestCase extends DependsAttributeTest
+{
+   public static Test suite()
+   {
+      return suite(DependsAttributeOldUnitTestCase.class);
+   }
+
+   public DependsAttributeOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+   
+   public void testDependsAttributeNoValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testDependsAttributeEmptyValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+
+   public void testDependsAttributeInvalidValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+
+   public void testDependsAttributeUnknownElement() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testDependsAttributePatternValue() throws Exception
+   {
+      FAILS_IN_OLD();
+   }
+
+   public void testDependsAttributeNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, AttributeNotFoundException.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,147 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.attribute.test;
+
+import javax.management.MalformedObjectNameException;
+import javax.management.ObjectName;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * DependsAttributeTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class DependsAttributeTest extends AbstractControllerTest
+{
+   static ObjectName DEPENDS1 = ObjectNameFactory.create("jboss.test:type=depends1");
+   static ObjectName DEPENDS2 = ObjectNameFactory.create("jboss.test:type=depends2");
+   
+   public DependsAttributeTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testDependsAttributeNone() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertNull(simple.getObjectNameAttribute1());
+         assertNull(simple.getObjectNameAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testDependsAttributeOne() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDS1, simple.getObjectNameAttribute1());
+         assertNull(simple.getObjectNameAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testDependsAttributeTwo() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDS1, simple.getObjectNameAttribute1());
+         assertEquals(DEPENDS2, simple.getObjectNameAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testDependsAttributeNested() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDS1, simple.getObjectNameAttribute1());
+         assertNull(simple.getObjectNameAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testDependsAttributeNoValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testDependsAttributeEmptyValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testDependsAttributeInvalidValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testDependsAttributeUnknownElement() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testDependsAttributePatternValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testDependsAttributeNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testDependsAttributeBrokenSetAttribute() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,84 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.attribute.test;
+
+import javax.management.AttributeNotFoundException;
+
+import junit.framework.Test;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.test.AbstractTestDelegate;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * DependsListAttributeOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsListAttributeOldUnitTestCase extends DependsListAttributeTest
+{
+   public static Test suite()
+   {
+      return suite(DependsListAttributeOldUnitTestCase.class);
+   }
+
+   public DependsListAttributeOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+   
+   public void testDependsListAttributeNoValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testDependsListAttributeEmptyValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+
+   public void testDependsListAttributeInvalidValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+
+   public void testDependsListAttributeUnknownElement() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testDependsListAttributePatternValue() throws Exception
+   {
+      FAILS_IN_OLD();
+   }
+
+   public void testDependsListAttributeNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, AttributeNotFoundException.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,176 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.attribute.test;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+
+import javax.management.MalformedObjectNameException;
+import javax.management.ObjectName;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * DependsAttributeTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class DependsListAttributeTest extends AbstractControllerTest
+{
+   static ObjectName DEPENDS1 = ObjectNameFactory.create("jboss.test:type=depends1");
+   static ObjectName[] DEPENDSLIST1 = new ObjectName[] { DEPENDS1 };
+   static ObjectName DEPENDS2 = ObjectNameFactory.create("jboss.test:type=depends2");
+   static ObjectName[] DEPENDSLIST2 = new ObjectName[] { DEPENDS2 };
+   static ObjectName[] DEPENDSLIST = new ObjectName[] { DEPENDS1, DEPENDS2 };
+   
+   public DependsListAttributeTest(String name)
+   {
+      super(name);
+   }
+   
+   protected void assertEquals(ObjectName[] expected, Collection actual)
+   {
+      List expectedList = Arrays.asList(expected);
+      assertEquals(expectedList, actual);
+   }
+   
+   public void testDependsListAttributeNone() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertNull(simple.getObjectNamesAttribute1());
+         assertNull(simple.getObjectNamesAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testDependsListAttributeOne() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDSLIST1, simple.getObjectNamesAttribute1());
+         assertNull(simple.getObjectNamesAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testDependsListAttributeTwo() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDSLIST1, simple.getObjectNamesAttribute1());
+         assertEquals(DEPENDSLIST2, simple.getObjectNamesAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testDependsListAttributeMultiple() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDSLIST, simple.getObjectNamesAttribute1());
+         assertNull(simple.getObjectNamesAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testDependsListAttributeNested() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDSLIST1, simple.getObjectNamesAttribute1());
+         assertNull(simple.getObjectNamesAttribute2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testDependsListAttributeNoValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testDependsListAttributeEmptyValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testDependsListAttributeInvalidValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testDependsListAttributeUnknownElement() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+
+   public void testDependsListAttributePatternValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testDependsListAttributeNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testDependsListAttributeBrokenSetAttribute() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/support/TestServiceBinding.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/support/TestServiceBinding.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/support/TestServiceBinding.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,63 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.binding.support;
+
+import javax.management.Attribute;
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+import org.jboss.system.ServiceBinding;
+
+/**
+ * TestServiceBinding.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class TestServiceBinding implements ServiceBinding
+{
+   private MBeanServer server;
+   private boolean error;
+   private ObjectName invoked;
+
+   public TestServiceBinding(MBeanServer server, boolean error)
+   {
+      this.server = server;
+      this.error = error;
+   }
+
+   public ObjectName getInvoked()
+   {
+      return invoked;
+   }
+   
+   public void applyServiceConfig(ObjectName serviceName) throws Exception
+   {
+      this.invoked = serviceName;
+      
+      if (error)
+         throw new RuntimeException("Throwing error as required by test");
+      
+      Attribute attribute = new Attribute("Attribute2", "frombinding");
+      server.setAttribute(serviceName, attribute);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.binding.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * ServiceBindingOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ServiceBindingOldUnitTestCase extends ServiceBindingTest
+{
+   public static Test suite()
+   {
+      return suite(ServiceBindingOldUnitTestCase.class);
+   }
+
+   public ServiceBindingOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,120 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.binding.test;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+import org.jboss.system.ServiceControllerMBean;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.configure.binding.support.TestServiceBinding;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * ServiceBindingTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class ServiceBindingTest extends AbstractControllerTest
+{
+   public ServiceBindingTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testServiceBinding() throws Exception
+   {
+      TestServiceBinding binding = setServiceBinding(false);
+      try
+      {
+         ObjectName name = SimpleMBean.OBJECT_NAME;
+         assertInstall(name);
+         try
+         {
+            assertEquals(name, binding.getInvoked());
+            
+            Simple simple = getSimple();
+            assertEquals("fromxml", simple.getAttribute1());
+            assertEquals("frombinding", simple.getAttribute2());
+         }
+         finally
+         {
+            assertUninstall(name);
+         }
+      }
+      finally
+      {
+         unsetServiceBinding();
+      }
+   }
+   
+   public void testServiceBindingError() throws Exception
+   {
+      TestServiceBinding binding = setServiceBinding(true);
+      try
+      {
+         ObjectName name = SimpleMBean.OBJECT_NAME;
+         assertInstall(name);
+         try
+         {
+            assertEquals(name, binding.getInvoked());
+            
+            Simple simple = getSimple();
+            assertEquals("fromxml", simple.getAttribute1());
+            assertEquals("fromxml", simple.getAttribute2());
+         }
+         finally
+         {
+            assertUninstall(name);
+         }
+      }
+      finally
+      {
+         unsetServiceBinding();
+      }
+   }
+
+   protected Simple getSimple() throws Exception
+   {
+      MBeanServer server = getServer();
+      Simple simple = (Simple) server.getAttribute(SimpleMBean.OBJECT_NAME, "Instance");
+      assertNotNull(simple);
+      return simple;
+   }
+   
+   protected TestServiceBinding setServiceBinding(boolean error)
+   {
+      MBeanServer server = getServer();
+      ServiceControllerMBean controller = getController();
+      TestServiceBinding serviceBinding = new TestServiceBinding(server, error);
+      controller.setServiceBinding(serviceBinding);
+      return serviceBinding;
+   }
+   
+   protected void unsetServiceBinding()
+   {
+      ServiceControllerMBean controller = getController();
+      controller.setServiceBinding(null);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * ConfigureRedeployAfterErrorOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ConfigureRedeployAfterErrorOldUnitTestCase extends ConfigureRedeployAfterErrorTest
+{
+   public static Test suite()
+   {
+      return suite(ConfigureRedeployAfterErrorOldUnitTestCase.class);
+   }
+
+   public ConfigureRedeployAfterErrorOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,44 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.test;
+
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * ConfigureRedeployAfterErrorTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class ConfigureRedeployAfterErrorTest extends AbstractControllerTest
+{
+   public ConfigureRedeployAfterErrorTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testConfigureRedeployAfterError() throws Exception
+   {
+      redeployAfterDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ControllerConfigureTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ControllerConfigureTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/test/ControllerConfigureTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,60 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.system.controller.configure.attribute.test.AttributeOldUnitTestCase;
+import org.jboss.test.system.controller.configure.attribute.test.DependsAttributeOldUnitTestCase;
+import org.jboss.test.system.controller.configure.attribute.test.DependsListAttributeOldUnitTestCase;
+import org.jboss.test.system.controller.configure.binding.test.ServiceBindingOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.ControllerConfigureValueTestSuite;
+
+/**
+ * Controller Configure Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class ControllerConfigureTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Controller Configure Tests");
+
+      suite.addTest(AttributeOldUnitTestCase.suite());
+      suite.addTest(DependsAttributeOldUnitTestCase.suite());
+      suite.addTest(DependsListAttributeOldUnitTestCase.suite());
+      suite.addTest(ServiceBindingOldUnitTestCase.suite());
+      suite.addTest(ControllerConfigureValueTestSuite.suite());
+      suite.addTest(ConfigureRedeployAfterErrorOldUnitTestCase.suite());
+      
+      return suite;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/ControllerConfigureValueTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/ControllerConfigureValueTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/ControllerConfigureValueTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,59 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.system.controller.configure.value.depends.test.DependencyValueOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.dependslist.test.DependencyListValueOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.element.test.ElementValueOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.javabean.test.JavaBeanValueOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.text.test.TextValueOldUnitTestCase;
+
+/**
+ * Controller Configure Value Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class ControllerConfigureValueTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Controller Configure Value Tests");
+
+      suite.addTest(TextValueOldUnitTestCase.suite());
+      suite.addTest(DependencyValueOldUnitTestCase.suite());
+      suite.addTest(DependencyListValueOldUnitTestCase.suite());
+      suite.addTest(ElementValueOldUnitTestCase.suite());
+      suite.addTest(JavaBeanValueOldUnitTestCase.suite());
+      
+      return suite;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,82 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value.depends.test;
+
+import junit.framework.Test;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.test.AbstractTestDelegate;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * DependencyValueOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependencyValueOldUnitTestCase extends DependencyValueTest
+{
+   public static Test suite()
+   {
+      return suite(DependencyValueOldUnitTestCase.class);
+   }
+
+   public DependencyValueOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+   
+   public void testNoValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testEmptyValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+
+   public void testInvalidValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+
+   public void testUnknownElement() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testPatternValue() throws Exception
+   {
+      FAILS_IN_OLD();
+   }
+   
+   public void testNoAttributeInfoType() throws Exception
+   {
+      FAILS_IN_OLD();
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,165 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value.depends.test;
+
+import javax.management.MalformedObjectNameException;
+import javax.management.ObjectName;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * DependencyValueTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class DependencyValueTest extends AbstractControllerTest
+{
+   static ObjectName DEPENDS = ObjectNameFactory.create("jboss.test:type=depends");
+   
+   public DependencyValueTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testDependency() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDS, simple.getObjectName());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testDependencyNested() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDS, simple.getObjectName());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testExplicitProxyType() throws Exception
+   {
+      proxyTest();
+   }
+   
+   public void testImplicitProxyType() throws Exception
+   {
+      proxyTest();
+   }
+   
+   public void testNoValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testEmptyValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testInvalidValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testUnknownElement() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testPatternValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testBrokenSetAttribute() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+   
+   public void testNoAttributeInfoType() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testAttributeInfoTypeNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+   
+   public void testProxyTypeNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+   
+   public void testProxyTypeNotInterface() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, IllegalArgumentException.class);
+   }
+   
+   protected void proxyTest() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         Simple dependency = getDependency();
+
+         assertFalse(simple.isTouched());
+         assertFalse(dependency.isTouched());
+         
+         simple.touchProxy();
+
+         assertFalse(simple.isTouched());
+         assertTrue(dependency.isTouched());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   protected Simple getDependency() throws Exception
+   {
+      return (Simple) getMBean(Simple.class, DEPENDS, "Instance");
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,77 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value.dependslist.test;
+
+import junit.framework.Test;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.test.AbstractTestDelegate;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * DependencyListValueOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependencyListValueOldUnitTestCase extends DependencyListValueTest
+{
+   public static Test suite()
+   {
+      return suite(DependencyListValueOldUnitTestCase.class);
+   }
+
+   public DependencyListValueOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+   
+   public void testNoValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testEmptyValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+
+   public void testInvalidValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+
+   public void testUnknownElement() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testPatternValue() throws Exception
+   {
+      FAILS_IN_OLD();
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,149 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value.dependslist.test;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+
+import javax.management.MalformedObjectNameException;
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * DependencyListValueTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class DependencyListValueTest extends AbstractControllerTest
+{
+   static ObjectName DEPENDS1 = ObjectNameFactory.create("jboss.test:type=depends1");
+   static ObjectName[] DEPENDSLIST1 = new ObjectName[] { DEPENDS1 };
+   static ObjectName DEPENDS2 = ObjectNameFactory.create("jboss.test:type=depends2");
+   static ObjectName[] DEPENDSLIST2 = new ObjectName[] { DEPENDS1, DEPENDS2 };
+   
+   public DependencyListValueTest(String name)
+   {
+      super(name);
+   }
+   
+   protected void assertEquals(ObjectName[] expected, Collection actual)
+   {
+      List expectedList = Arrays.asList(expected);
+      assertEquals(expectedList, actual);
+   }
+   
+   public void testNone() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(new ObjectName[0], simple.getObjectNames());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testOne() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDSLIST1, simple.getObjectNames());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testTwo() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDSLIST2, simple.getObjectNames());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testNested() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      try
+      {
+         Simple simple = getSimple();
+         assertEquals(DEPENDSLIST1, simple.getObjectNames());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testNoValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testEmptyValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testInvalidValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testUnknownElement() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+
+   public void testPatternValue() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, MalformedObjectNameException.class);
+   }
+   
+   public void testBrokenSetAttribute() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value.element.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * ElementValueOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ElementValueOldUnitTestCase extends ElementValueTest
+{
+   public static Test suite()
+   {
+      return suite(ElementValueOldUnitTestCase.class);
+   }
+
+   public ElementValueOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,66 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value.element.test;
+
+import javax.management.ObjectName;
+
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+import org.w3c.dom.Element;
+
+/**
+ * TextValueTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class ElementValueTest extends AbstractControllerTest
+{
+   public ElementValueTest(String name)
+   {
+      super(name);
+   }
+
+   public void testElement() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      
+      assertInstall(name);
+      try
+      {
+         Simple test = getSimple();
+         
+         Element element = test.getElement();
+         assertNotNull(element);
+         
+         String tagName = element.getTagName();
+         assertNotNull(tagName);
+         
+         assertEquals("dummy", tagName);
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,55 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value.javabean.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * JavaBeanValueOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class JavaBeanValueOldUnitTestCase extends JavaBeanValueTest
+{
+   public static Test suite()
+   {
+      return suite(JavaBeanValueOldUnitTestCase.class);
+   }
+
+   public JavaBeanValueOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+
+   public void testNoAttributeInfoType() throws Exception
+   {
+      FAILS_IN_OLD();
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,149 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value.javabean.test;
+
+import java.beans.IntrospectionException;
+
+import javax.management.ObjectName;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.BrokenDynamicMBeanAttributeInfoTypeNotFound;
+import org.jboss.test.system.controller.support.BrokenDynamicMBeanNoAttributeInfoType;
+import org.jboss.test.system.controller.support.JavaBean;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * JavaBeanValueTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class JavaBeanValueTest extends AbstractControllerTest
+{
+   public JavaBeanValueTest(String name)
+   {
+      super(name);
+   }
+
+   public void testExplicitClass() throws Exception
+   {
+      javaBean();
+   }
+
+   public void testImplicitClass() throws Exception
+   {
+      javaBean();
+   }
+
+   public void testAttributeClassNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+
+   public void testAbstractAttributeClass() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, InstantiationException.class);
+   }
+
+   public void testErrorInConstructor() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+
+   public void testNoAttributeInfoType() throws Exception
+   {
+      assertDeployFailure(BrokenDynamicMBeanNoAttributeInfoType.OBJECT_NAME, DeploymentException.class);
+   }
+
+   public void testAttributeInfoTypeNotFound() throws Exception
+   {
+      assertDeployFailure(BrokenDynamicMBeanAttributeInfoTypeNotFound.OBJECT_NAME, ClassNotFoundException.class);
+   }
+
+   public void testNoPropertyName() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, IntrospectionException.class);
+   }
+
+   public void testEmptyPropertyName() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, IntrospectionException.class);
+   }
+
+   public void testPropertyNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, IntrospectionException.class);
+   }
+
+   public void testNoPropertyEditor() throws Exception
+   {
+      /* TODO testNoPropertyEditor 
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, IntrospectionException.class);
+      */
+   }
+
+   public void testNoPropertyValue() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      
+      assertInstall(name);
+      try
+      {
+         Simple test = getSimple();
+
+         JavaBean bean = test.getJavaBean();
+         assertNotNull(bean);
+         assertEquals("", bean.getProperty1());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+
+   public void testErrorInProperty() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+   
+   protected void javaBean() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      
+      assertInstall(name);
+      try
+      {
+         Simple test = getSimple();
+
+         JavaBean bean = test.getJavaBean();
+         assertNotNull(bean);
+         assertEquals("property1", bean.getProperty1());
+         assertEquals(new Integer(10), bean.getProperty2());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,55 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value.text.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * TextValueOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class TextValueOldUnitTestCase extends TextValueTest
+{
+   public static Test suite()
+   {
+      return suite(TextValueOldUnitTestCase.class);
+   }
+
+   public TextValueOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+   
+   public void testNoAttributeInfoType() throws Exception
+   {
+      FAILS_IN_OLD();
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,133 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.configure.value.text.test;
+
+import java.math.BigDecimal;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import javax.management.ObjectName;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.BrokenDynamicMBeanAttributeInfoTypeNotFound;
+import org.jboss.test.system.controller.support.BrokenDynamicMBeanNoAttributeInfoType;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+import org.jboss.util.NestedRuntimeException;
+
+/**
+ * TextValueTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class TextValueTest extends AbstractControllerTest
+{
+   private static final DateFormat dateFormat = new SimpleDateFormat("EEE MMM d HH:mm:ss z yyyy");
+   
+   private static final String stringValue =  new String("StringValue");
+   private static final Byte byteValue = new Byte("12");
+   private static final Boolean booleanValue = Boolean.TRUE;
+   // TODO character
+   // private static final Character characterValue = new Character('a'); 
+   private static final Short shortValue = new Short("123");
+   private static final Integer integerValue = new Integer("1234");
+   private static final Long longValue = new Long("12345");
+   private static final Float floatValue = new Float("3.14");
+   private static final Double doubleValue = new Double("3.14e12");
+   private static final Date dateValue = createDate("Mon Jan 01 00:00:00 CET 2001");
+   private static final BigDecimal bigDecimalValue = new BigDecimal("12e4");
+   //private static final BigInteger bigIntegerValue = new BigInteger("123456");
+
+   public TextValueTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testPropertyEditors() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      
+      assertInstall(name);
+      try
+      {
+         Simple test = getSimple();
+
+         assertEquals(stringValue, test.getAString());
+         assertEquals(byteValue, test.getAByte());
+         assertEquals(booleanValue, test.getABoolean());
+         // TODO character 
+         // assertEquals(characterValue, test.getACharacter());
+         assertEquals(shortValue, test.getAShort());
+         assertEquals(integerValue, test.getAnInt());
+         assertEquals(longValue, test.getALong());
+         assertEquals(floatValue, test.getAFloat());
+         assertEquals(doubleValue, test.getADouble());
+         assertEquals(dateValue, test.getADate());
+         assertEquals(bigDecimalValue, test.getABigDecimal());
+         // TODO BigInteger
+         //assertEquals(bigIntegerValue, test.getABigInteger());
+         assertEquals(byteValue.byteValue(), test.getAbyte());
+         assertEquals(booleanValue.booleanValue(), test.isAboolean());
+         // TODO character
+         // assertEquals(characterValue.charValue(), test.getAchar()); 
+         assertEquals(shortValue.shortValue(), test.getAshort());
+         assertEquals(integerValue.intValue(), test.getAnint());
+         assertEquals(longValue.longValue(), test.getAlong());
+         assertEquals(floatValue.floatValue(), test.getAfloat());
+         assertEquals(doubleValue.doubleValue(), test.getAdouble());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   public void testNoPropertyEditor() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testNoAttributeInfoType() throws Exception
+   {
+      assertDeployFailure(BrokenDynamicMBeanNoAttributeInfoType.OBJECT_NAME, DeploymentException.class);
+   }
+   
+   public void testAttributeInfoTypeNotFound() throws Exception
+   {
+      assertDeployFailure(BrokenDynamicMBeanAttributeInfoTypeNotFound.OBJECT_NAME, ClassNotFoundException.class);
+   }
+
+   private static Date createDate(String date)
+   {
+      try
+      {
+         return dateFormat.parse(date);
+      }
+      catch (Exception e)
+      {
+         throw new NestedRuntimeException(e);
+      }
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.plain.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * PlainMBeanOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class PlainMBeanOldUnitTestCase extends PlainMBeanTest
+{
+   public static Test suite()
+   {
+      return suite(PlainMBeanOldUnitTestCase.class);
+   }
+
+   public PlainMBeanOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.plain.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * PlainMBeanRedeployAfterErrorOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class PlainMBeanRedeployAfterErrorOldUnitTestCase extends PlainMBeanRedeployAfterErrorTest
+{
+   public static Test suite()
+   {
+      return suite(PlainMBeanRedeployAfterErrorOldUnitTestCase.class);
+   }
+
+   public PlainMBeanRedeployAfterErrorOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,44 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.plain.test;
+
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * PlainMBeanRedeployAfterErrorTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class PlainMBeanRedeployAfterErrorTest extends AbstractControllerTest
+{
+   public PlainMBeanRedeployAfterErrorTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testPlainMBeanRedeployAfterError() throws Exception
+   {
+      redeployAfterMaybeDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,138 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.plain.test;
+
+import java.util.Collections;
+
+import javax.management.NotCompliantMBeanException;
+import javax.management.ObjectName;
+
+import org.jboss.system.ConfigurationException;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.BrokenDynamicMBean;
+import org.jboss.test.system.controller.support.PostDeregisterError;
+import org.jboss.test.system.controller.support.PostRegisterError;
+import org.jboss.test.system.controller.support.PreDeregisterError;
+import org.jboss.test.system.controller.support.PreRegisterError;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * PlainMBeanTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class PlainMBeanTest extends AbstractControllerTest
+{
+   public PlainMBeanTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testPlainMBean() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      assertUninstall(name);
+   }
+   
+   public void testPlainMBeanCodeMissing() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+   
+   public void testPlainMBeanCodeEmpty() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+   
+   public void testPlainMBeanCodeClassNotFound() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+   
+   public void testPlainMBeanNotMBean() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, NotCompliantMBeanException.class);
+   }
+   
+   public void testPlainMBeanAbstractClass() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, NotCompliantMBeanException.class);
+   }
+   
+   public void testPlainMBeanConstructorError() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+   
+   public void testPlainMBeanConstructorException() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, RuntimeException.class);
+   }
+   
+   public void testPlainMBeanConstructorTypeNotFound() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+   
+   public void testPlainMBeanConstructorInvalidType() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+   
+   public void testPlainMBeanConstructorInvalidValue() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, NumberFormatException.class);
+   }
+   
+   public void testPlainMBeanGetMBeanInfoError() throws Exception
+   {
+      assertMaybeDeployFailure(BrokenDynamicMBean.OBJECT_NAME, Error.class);
+   }
+   
+   public void testPlainMBeanPreRegisterError() throws Exception
+   {
+      assertMaybeDeployFailure(PreRegisterError.OBJECT_NAME, Error.class);
+   }
+   
+   public void testPlainMBeanPostRegisterError() throws Exception
+   {
+      assertMaybeDeployFailure(PostRegisterError.OBJECT_NAME, Error.class);
+   }
+   
+   public void testPlainMBeanPreDeregisterError() throws Exception
+   {
+      ObjectName name = PreDeregisterError.OBJECT_NAME;
+      assertInstall(name);
+      uninstall(Collections.singletonList(name));
+      assertNoService(name);
+      assertRegistered(name);
+   }
+   
+   public void testPlainMBeanPostDeregisterError() throws Exception
+   {
+      ObjectName name = PostDeregisterError.OBJECT_NAME;
+      assertInstall(name);
+      assertUninstall(name);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.standard.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * StandardMBeanOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class StandardMBeanOldUnitTestCase extends StandardMBeanTest
+{
+   public static Test suite()
+   {
+      return suite(StandardMBeanOldUnitTestCase.class);
+   }
+
+   public StandardMBeanOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.standard.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * StandardMBeanRedeployAfterErrorOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class StandardMBeanRedeployAfterErrorOldUnitTestCase extends StandardMBeanRedeployAfterErrorTest
+{
+   public static Test suite()
+   {
+      return suite(StandardMBeanRedeployAfterErrorOldUnitTestCase.class);
+   }
+
+   public StandardMBeanRedeployAfterErrorOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,44 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.standard.test;
+
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * StandardMBeanRedeployAfterErrorTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class StandardMBeanRedeployAfterErrorTest extends AbstractControllerTest
+{
+   public StandardMBeanRedeployAfterErrorTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testStandardMBeanRedeployAfterError() throws Exception
+   {
+      redeployAfterMaybeDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,114 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.standard.test;
+
+import javax.management.NotCompliantMBeanException;
+import javax.management.ObjectName;
+
+import org.jboss.system.ConfigurationException;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * StandardMBeanTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class StandardMBeanTest extends AbstractControllerTest
+{
+   public StandardMBeanTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testStandardMBean() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      assertUninstall(name);
+   }
+   
+   public void testStandardMBeanInterface() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      assertInstall(name);
+      String result = (String) getServer().invoke(name, "echoReverse", new Object[] { "12345" }, new String[] { String.class.getName() });
+      assertEquals("54321", result);
+      assertUninstall(name);
+   }
+
+   public void testStandardMBeanInterfaceNotFound() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+
+   public void testStandardMBeanInterfaceNotImplemented() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, NotCompliantMBeanException.class);
+   }
+   
+   public void testStandardMBeanCodeMissing() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+   
+   public void testStandardMBeanCodeEmpty() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+
+   public void testStandardMBeanCodeClassNotFound() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+   
+   public void testStandardMBeanAbstractClass() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, InstantiationException.class);
+   }
+
+   public void testStandardMBeanConstructorError() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+   
+   public void testStandardMBeanConstructorException() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, RuntimeException.class);
+   }
+   
+   public void testStandardMBeanConstructorTypeNotFound() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+   
+   public void testStandardMBeanConstructorInvalidType() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+
+   public void testStandardMBeanConstructorInvalidValue() throws Exception
+   {
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, NumberFormatException.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,81 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * ConstructorArgsErrorOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ConstructorArgsErrorOldUnitTestCase extends ConstructorArgsErrorTest
+{
+   public static Test suite()
+   {
+      return suite(ConstructorArgsErrorOldUnitTestCase.class);
+   }
+
+   public ConstructorArgsErrorOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+   
+   public void testPlainMBeanArgTypeMissing() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+   
+   public void testPlainMBeanArgTypeEmpty() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+   
+   public void testPlainMBeanArgValueMissing() throws Exception
+   {
+      FAILS_IN_OLD();
+   }
+   
+   public void testStandardMBeanArgTypeMissing() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+   
+   public void testStandardMBeanArgTypeEmpty() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+   
+   public void testStandardMBeanArgValueMissing() throws Exception
+   {
+      FAILS_IN_OLD();
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,70 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.test;
+
+import org.jboss.system.ConfigurationException;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * ConstructorArgsErrorTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class ConstructorArgsErrorTest extends AbstractControllerTest
+{
+   public ConstructorArgsErrorTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testPlainMBeanArgTypeMissing() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+   
+   public void testPlainMBeanArgTypeEmpty() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+   
+   public void testPlainMBeanArgValueMissing() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+   
+   public void testStandardMBeanArgTypeMissing() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+   
+   public void testStandardMBeanArgTypeEmpty() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+   
+   public void testStandardMBeanArgValueMissing() throws Exception
+   {
+      assertMaybeParseFailure(SimpleMBean.OBJECT_NAME, ConfigurationException.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * ConstructorArgsOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ConstructorArgsOldUnitTestCase extends ConstructorArgsTest
+{
+   public static Test suite()
+   {
+      return suite(ConstructorArgsOldUnitTestCase.class);
+   }
+
+   public ConstructorArgsOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,118 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.test;
+
+import javax.management.MBeanServer;
+
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * ConstructorArgsTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class ConstructorArgsTest extends AbstractControllerTest
+{
+   public ConstructorArgsTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testPlainMBeanNoArg() throws Exception
+   {
+      noArg();
+   }
+   
+   public void testPlainMBeanOneArg() throws Exception
+   {
+      oneArg();
+   }
+   
+   public void testPlainMBeanTwoArg() throws Exception
+   {
+      twoArg();
+   }
+   
+   public void testStandardMBeanNoArg() throws Exception
+   {
+      noArg();
+   }
+   
+   public void testStandardMBeanOneArg() throws Exception
+   {
+      oneArg();
+   }
+   
+   public void testStandardMBeanTwoArg() throws Exception
+   {
+      twoArg();
+   }
+   
+   protected void noArg() throws Exception
+   {
+      Simple simple = getSimple();
+      assertEquals("()", simple.constructorUsed);
+   }
+   
+   protected void oneArg() throws Exception
+   {
+      Simple simple = getSimple();
+      assertEquals("(int)", simple.constructorUsed);
+      assertEquals(5, simple.getAnint());
+   }
+   
+   protected void twoArg() throws Exception
+   {
+      Simple simple = getSimple();
+      assertEquals("(int,float)", simple.constructorUsed);
+      assertEquals(5, simple.getAnint());
+      assertEquals(3.14f, simple.getAfloat());
+   }
+
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+
+      assertInstall(SimpleMBean.OBJECT_NAME);
+   }
+   
+   protected void tearDown() throws Exception
+   {
+      try
+      {
+         assertUninstall(SimpleMBean.OBJECT_NAME);
+      }
+      finally
+      {
+         super.tearDown();
+      }
+   }
+
+   protected Simple getSimple() throws Exception
+   {
+      MBeanServer server = getServer();
+      return (Simple) server.getAttribute(SimpleMBean.OBJECT_NAME, "Instance");
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ControllerInstantiateTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ControllerInstantiateTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/instantiate/test/ControllerInstantiateTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,59 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.instantiate.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.system.controller.instantiate.plain.test.PlainMBeanOldUnitTestCase;
+import org.jboss.test.system.controller.instantiate.plain.test.PlainMBeanRedeployAfterErrorOldUnitTestCase;
+import org.jboss.test.system.controller.instantiate.standard.test.StandardMBeanOldUnitTestCase;
+import org.jboss.test.system.controller.instantiate.standard.test.StandardMBeanRedeployAfterErrorOldUnitTestCase;
+
+/**
+ * Controller Instantiate Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class ControllerInstantiateTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Controller Instantiate Tests");
+
+      suite.addTest(ConstructorArgsOldUnitTestCase.suite());
+      suite.addTest(PlainMBeanOldUnitTestCase.suite());
+      suite.addTest(PlainMBeanRedeployAfterErrorOldUnitTestCase.suite());
+      suite.addTest(StandardMBeanOldUnitTestCase.suite());
+      suite.addTest(StandardMBeanRedeployAfterErrorOldUnitTestCase.suite());
+      suite.addTest(ConstructorArgsErrorOldUnitTestCase.suite());
+      
+      return suite;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListNestedOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListNestedOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListNestedOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * BasicDependencyDependsListNestedOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BasicDependencyDependsListNestedOldUnitTestCase extends BasicDependencyTest
+{
+   public static Test suite()
+   {
+      return suite(BasicDependencyDependsListNestedOldUnitTestCase.class);
+   }
+
+   public BasicDependencyDependsListNestedOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsListOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * BasicDependencyDependsListOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BasicDependencyDependsListOldUnitTestCase extends BasicDependencyTest
+{
+   public static Test suite()
+   {
+      return suite(BasicDependencyDependsListOldUnitTestCase.class);
+   }
+
+   public BasicDependencyDependsListOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsNestedOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsNestedOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsNestedOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * BasicDependencyDependsNestedOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BasicDependencyDependsNestedOldUnitTestCase extends BasicDependencyTest
+{
+   public static Test suite()
+   {
+      return suite(BasicDependencyDependsNestedOldUnitTestCase.class);
+   }
+
+   public BasicDependencyDependsNestedOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * BasicDependencyDependsOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BasicDependencyDependsOldUnitTestCase extends BasicDependencyTest
+{
+   public static Test suite()
+   {
+      return suite(BasicDependencyDependsOldUnitTestCase.class);
+   }
+
+   public BasicDependencyDependsOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListNestedOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListNestedOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListNestedOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * BasicDependencyDependsOptionalAttributeListNestedOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BasicDependencyDependsOptionalAttributeListNestedOldUnitTestCase extends BasicDependencyTest
+{
+   public static Test suite()
+   {
+      return suite(BasicDependencyDependsOptionalAttributeListNestedOldUnitTestCase.class);
+   }
+
+   public BasicDependencyDependsOptionalAttributeListNestedOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeListOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * BasicDependencyDependsOptionalAttributeListOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BasicDependencyDependsOptionalAttributeListOldUnitTestCase extends BasicDependencyTest
+{
+   public static Test suite()
+   {
+      return suite(BasicDependencyDependsOptionalAttributeListOldUnitTestCase.class);
+   }
+
+   public BasicDependencyDependsOptionalAttributeListOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeNestedOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeNestedOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeNestedOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * BasicDependencyDependsOptionalAttributeNestedOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BasicDependencyDependsOptionalAttributeNestedOldUnitTestCase extends BasicDependencyTest
+{
+   public static Test suite()
+   {
+      return suite(BasicDependencyDependsOptionalAttributeNestedOldUnitTestCase.class);
+   }
+
+   public BasicDependencyDependsOptionalAttributeNestedOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyDependsOptionalAttributeOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * BasicDependencyDependsOptionalAttributeOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BasicDependencyDependsOptionalAttributeOldUnitTestCase extends BasicDependencyTest
+{
+   public static Test suite()
+   {
+      return suite(BasicDependencyDependsOptionalAttributeOldUnitTestCase.class);
+   }
+
+   public BasicDependencyDependsOptionalAttributeOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicDependencyTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,390 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import java.util.List;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.system.ServiceControllerMBean;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.Simple;
+
+/**
+ * BasicLifecycleTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class BasicDependencyTest extends AbstractControllerTest
+{
+   private static ObjectName NAME_ONE = ObjectNameFactory.create("test:name=1"); 
+   private static ObjectName NAME_TWO = ObjectNameFactory.create("test:name=2"); 
+   
+   private String resourceName;
+   
+   public BasicDependencyTest(String name)
+   {
+      super(name);
+
+      resourceName = getClass().getName();
+      int index= resourceName.lastIndexOf('.'); 
+      if (index != -1)
+         resourceName= resourceName.substring(index + 1, resourceName.length());
+      index = resourceName.indexOf("NewUnitTestCase");
+      if (index != -1)
+         resourceName = resourceName.substring(0, index);
+      index = resourceName.indexOf("OldUnitTestCase");
+      if (index != -1)
+         resourceName = resourceName.substring(0, index);
+      
+      resourceName = resourceName + "_NotAutomatic.xml";
+   }
+   
+   public void testBasicDependency() throws Exception
+   {
+      Simple test1 = null;
+      Simple test2 = null;
+      
+      boolean error = false;
+      
+      List mbeans = deploy(resourceName);
+      try
+      {
+         assertServiceRunning(NAME_ONE);
+         assertServiceRunning(NAME_TWO);
+         
+         MBeanServer server = getServer();
+         test1 = (Simple) server.getAttribute(NAME_ONE, "Instance");
+         assertEquals("()", test1.constructorUsed);
+         assertEquals(2, test1.createOrder);
+         assertEquals(4, test1.startOrder);
+         assertEquals(0, test1.stopOrder);
+         assertEquals(0, test1.destroyOrder);
+         test2 = (Simple) server.getAttribute(NAME_TWO, "Instance");
+         assertEquals("()", test2.constructorUsed);
+         assertEquals(1, test2.createOrder);
+         assertEquals(3, test2.startOrder);
+         assertEquals(0, test2.stopOrder);
+         assertEquals(0, test2.destroyOrder);
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertEquals(2, test1.createOrder);
+            assertEquals(4, test1.startOrder);
+            assertEquals(5, test1.stopOrder);
+            assertEquals(7, test1.destroyOrder);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+            assertEquals(1, test2.createOrder);
+            assertEquals(3, test2.startOrder);
+            assertEquals(6, test2.stopOrder);
+            assertEquals(8, test2.destroyOrder);
+         }
+      }
+   }
+   
+   public void testBasicRedeploy() throws Exception
+   {
+      Simple test1 = null;
+      Simple test2 = null;
+      
+      boolean error = false;
+      
+      List mbeans = deploy(resourceName);
+      try
+      {
+         assertServiceRunning(NAME_ONE);
+         assertServiceRunning(NAME_TWO);
+         
+         MBeanServer server = getServer();
+         test1 = (Simple) server.getAttribute(NAME_ONE, "Instance");
+         assertEquals("()", test1.constructorUsed);
+         assertEquals(2, test1.createOrder);
+         assertEquals(4, test1.startOrder);
+         assertEquals(0, test1.stopOrder);
+         assertEquals(0, test1.destroyOrder);
+         test2 = (Simple) server.getAttribute(NAME_TWO, "Instance");
+         assertEquals("()", test2.constructorUsed);
+         assertEquals(1, test2.createOrder);
+         assertEquals(3, test2.startOrder);
+         assertEquals(0, test2.stopOrder);
+         assertEquals(0, test2.destroyOrder);
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertEquals(2, test1.createOrder);
+            assertEquals(4, test1.startOrder);
+            assertEquals(5, test1.stopOrder);
+            assertEquals(7, test1.destroyOrder);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+            assertEquals(1, test2.createOrder);
+            assertEquals(3, test2.startOrder);
+            assertEquals(6, test2.stopOrder);
+            assertEquals(8, test2.destroyOrder);
+         }
+      }
+      
+      mbeans = deploy(resourceName);
+      try
+      {
+         assertServiceRunning(NAME_ONE);
+         assertServiceRunning(NAME_TWO);
+         
+         MBeanServer server = getServer();
+         test1 = (Simple) server.getAttribute(NAME_ONE, "Instance");
+         assertEquals("()", test1.constructorUsed);
+         assertEquals(10, test1.createOrder);
+         assertEquals(12, test1.startOrder);
+         assertEquals(0, test1.stopOrder);
+         assertEquals(0, test1.destroyOrder);
+         test2 = (Simple) server.getAttribute(NAME_TWO, "Instance");
+         assertEquals("()", test2.constructorUsed);
+         assertEquals(9, test2.createOrder);
+         assertEquals(11, test2.startOrder);
+         assertEquals(0, test2.stopOrder);
+         assertEquals(0, test2.destroyOrder);
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertEquals(10, test1.createOrder);
+            assertEquals(12, test1.startOrder);
+            assertEquals(13, test1.stopOrder);
+            assertEquals(15, test1.destroyOrder);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+            assertEquals(9, test2.createOrder);
+            assertEquals(11, test2.startOrder);
+            assertEquals(14, test2.stopOrder);
+            assertEquals(16, test2.destroyOrder);
+         }
+      }
+   }
+   
+   public void testBasicDependencyManualLifecycle() throws Exception
+   {
+      Simple test1 = null;
+      Simple test2 = null;
+      
+      boolean error = false;
+      
+      List mbeans = deploy(resourceName);
+      try
+      {
+         assertServiceRunning(NAME_ONE);
+         assertServiceRunning(NAME_TWO);
+         
+         MBeanServer server = getServer();
+         test1 = (Simple) server.getAttribute(NAME_ONE, "Instance");
+         assertEquals("()", test1.constructorUsed);
+         assertEquals(2, test1.createOrder);
+         assertEquals(4, test1.startOrder);
+         assertEquals(0, test1.stopOrder);
+         assertEquals(0, test1.destroyOrder);
+         test2 = (Simple) server.getAttribute(NAME_TWO, "Instance");
+         assertEquals("()", test2.constructorUsed);
+         assertEquals(1, test2.createOrder);
+         assertEquals(3, test2.startOrder);
+         assertEquals(0, test2.stopOrder);
+         assertEquals(0, test2.destroyOrder);
+         
+         ServiceControllerMBean controller = getController();
+         
+         controller.stop(NAME_ONE);
+         assertServiceStopped(NAME_ONE);
+         assertServiceRunning(NAME_TWO);
+         assertEquals(2, test1.createOrder);
+         assertEquals(4, test1.startOrder);
+         assertEquals(5, test1.stopOrder);
+         assertEquals(0, test1.destroyOrder);
+         assertEquals(1, test2.createOrder);
+         assertEquals(3, test2.startOrder);
+         assertEquals(0, test2.stopOrder);
+         assertEquals(0, test2.destroyOrder);
+         
+         controller.destroy(NAME_ONE);
+         assertServiceDestroyed(NAME_ONE);
+         assertServiceRunning(NAME_TWO);
+         assertEquals(2, test1.createOrder);
+         assertEquals(4, test1.startOrder);
+         assertEquals(5, test1.stopOrder);
+         assertEquals(6, test1.destroyOrder);
+         assertEquals(1, test2.createOrder);
+         assertEquals(3, test2.startOrder);
+         assertEquals(0, test2.stopOrder);
+         assertEquals(0, test2.destroyOrder);
+         
+         controller.create(NAME_ONE);
+         assertServiceCreated(NAME_ONE);
+         assertServiceRunning(NAME_TWO);
+         assertEquals(7, test1.createOrder);
+         assertEquals(4, test1.startOrder);
+         assertEquals(5, test1.stopOrder);
+         assertEquals(6, test1.destroyOrder);
+         assertEquals(1, test2.createOrder);
+         assertEquals(3, test2.startOrder);
+         assertEquals(0, test2.stopOrder);
+         assertEquals(0, test2.destroyOrder);
+         
+         controller.start(NAME_ONE);
+         assertServiceRunning(NAME_ONE);
+         assertServiceRunning(NAME_TWO);
+         assertEquals(7, test1.createOrder);
+         assertEquals(8, test1.startOrder);
+         assertEquals(5, test1.stopOrder);
+         assertEquals(6, test1.destroyOrder);
+         assertEquals(1, test2.createOrder);
+         assertEquals(3, test2.startOrder);
+         assertEquals(0, test2.stopOrder);
+         assertEquals(0, test2.destroyOrder);
+         
+         controller.stop(NAME_TWO);
+         assertServiceStopped(NAME_ONE);
+         assertServiceStopped(NAME_TWO);
+         assertEquals(7, test1.createOrder);
+         assertEquals(8, test1.startOrder);
+         assertEquals(9, test1.stopOrder);
+         assertEquals(6, test1.destroyOrder);
+         assertEquals(1, test2.createOrder);
+         assertEquals(3, test2.startOrder);
+         assertEquals(10, test2.stopOrder);
+         assertEquals(0, test2.destroyOrder);
+         
+         controller.destroy(NAME_TWO);
+         assertServiceDestroyed(NAME_ONE);
+         assertServiceDestroyed(NAME_TWO);
+         assertEquals(7, test1.createOrder);
+         assertEquals(8, test1.startOrder);
+         assertEquals(9, test1.stopOrder);
+         assertEquals(11, test1.destroyOrder);
+         assertEquals(1, test2.createOrder);
+         assertEquals(3, test2.startOrder);
+         assertEquals(10, test2.stopOrder);
+         assertEquals(12, test2.destroyOrder);
+         
+         controller.create(NAME_TWO);
+         assertServiceCreated(NAME_ONE);
+         assertServiceCreated(NAME_TWO);
+         assertEquals(14, test1.createOrder);
+         assertEquals(8, test1.startOrder);
+         assertEquals(9, test1.stopOrder);
+         assertEquals(11, test1.destroyOrder);
+         assertEquals(13, test2.createOrder);
+         assertEquals(3, test2.startOrder);
+         assertEquals(10, test2.stopOrder);
+         assertEquals(12, test2.destroyOrder);
+         
+         controller.start(NAME_TWO);
+         assertServiceRunning(NAME_ONE);
+         assertServiceRunning(NAME_TWO);
+         assertEquals(14, test1.createOrder);
+         assertEquals(16, test1.startOrder);
+         assertEquals(9, test1.stopOrder);
+         assertEquals(11, test1.destroyOrder);
+         assertEquals(13, test2.createOrder);
+         assertEquals(15, test2.startOrder);
+         assertEquals(10, test2.stopOrder);
+         assertEquals(12, test2.destroyOrder);
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertEquals(14, test1.createOrder);
+            assertEquals(16, test1.startOrder);
+            assertEquals(17, test1.stopOrder);
+            assertEquals(19, test1.destroyOrder);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+            assertEquals(13, test2.createOrder);
+            assertEquals(15, test2.startOrder);
+            assertEquals(18, test2.stopOrder);
+            assertEquals(20, test2.destroyOrder);
+         }
+      }
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycleOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycleOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycleOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * BasicLifecycleOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BasicLifecycleOldUnitTestCase extends BasicLifecycleTest
+{
+   public static Test suite()
+   {
+      return suite(BasicLifecycleOldUnitTestCase.class);
+   }
+
+   public BasicLifecycleOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycleTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycleTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/BasicLifecycleTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,236 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import java.util.List;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+import org.jboss.system.ServiceControllerMBean;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * BasicLifecycleTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class BasicLifecycleTest extends AbstractControllerTest
+{
+   public BasicLifecycleTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testBasicLifecyle() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      Simple test = null;
+      
+      boolean error = false;
+      
+      List mbeans = deploy("BasicLifecycle_NotAutomatic.xml");
+      try
+      {
+         assertServiceRunning(name);
+         
+         MBeanServer server = getServer();
+         test = (Simple) server.getAttribute(name, "Instance");
+         assertEquals("()", test.constructorUsed);
+         assertEquals(1, test.createOrder);
+         assertEquals(2, test.startOrder);
+         assertEquals(0, test.stopOrder);
+         assertEquals(0, test.destroyOrder);
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans);
+
+         if (error == false)
+         {
+            assertNoService(name);
+            assertNotRegistered(name);
+            
+            assertEquals(1, test.createOrder);
+            assertEquals(2, test.startOrder);
+            assertEquals(3, test.stopOrder);
+            assertEquals(4, test.destroyOrder);
+         }
+      }
+   }
+   
+   public void testBasicRedeploy() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      Simple test = null;
+      
+      boolean error = false;
+      
+      List mbeans = deploy("BasicLifecycle_NotAutomatic.xml");
+      try
+      {
+         assertServiceRunning(name);
+         
+         MBeanServer server = getServer();
+         test = (Simple) server.getAttribute(name, "Instance");
+         assertEquals("()", test.constructorUsed);
+         assertEquals(1, test.createOrder);
+         assertEquals(2, test.startOrder);
+         assertEquals(0, test.stopOrder);
+         assertEquals(0, test.destroyOrder);
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans);
+
+         if (error == false)
+         {
+            assertNoService(name);
+            assertNotRegistered(name);
+            
+            assertEquals(1, test.createOrder);
+            assertEquals(2, test.startOrder);
+            assertEquals(3, test.stopOrder);
+            assertEquals(4, test.destroyOrder);
+         }
+      }
+      
+      mbeans = deploy("BasicLifecycle_NotAutomatic.xml");
+      try
+      {
+         assertServiceRunning(name);
+         
+         MBeanServer server = getServer();
+         test = (Simple) server.getAttribute(name, "Instance");
+         assertEquals("()", test.constructorUsed);
+         assertEquals(5, test.createOrder);
+         assertEquals(6, test.startOrder);
+         assertEquals(0, test.stopOrder);
+         assertEquals(0, test.destroyOrder);
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans);
+
+         if (error == false)
+         {
+            assertNoService(name);
+            assertNotRegistered(name);
+            
+            assertEquals(5, test.createOrder);
+            assertEquals(6, test.startOrder);
+            assertEquals(7, test.stopOrder);
+            assertEquals(8, test.destroyOrder);
+         }
+      }
+   }
+   
+   public void testBasicManualLifecycle() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      Simple test = null;
+      
+      boolean error = false;
+      
+      List mbeans = deploy("BasicLifecycle_NotAutomatic.xml");
+      try
+      {
+         assertServiceRunning(name);
+
+         MBeanServer server = getServer();
+         test = (Simple) server.getAttribute(name, "Instance");
+         assertEquals("()", test.constructorUsed);
+         assertEquals(1, test.createOrder);
+         assertEquals(2, test.startOrder);
+         assertEquals(0, test.stopOrder);
+         assertEquals(0, test.destroyOrder);
+
+         ServiceControllerMBean controller = getController();
+
+         controller.stop(name);
+         assertServiceStopped(name);
+         assertEquals(1, test.createOrder);
+         assertEquals(2, test.startOrder);
+         assertEquals(3, test.stopOrder);
+         assertEquals(0, test.destroyOrder);
+
+         controller.destroy(name);
+         assertServiceDestroyed(name);
+         assertEquals(1, test.createOrder);
+         assertEquals(2, test.startOrder);
+         assertEquals(3, test.stopOrder);
+         assertEquals(4, test.destroyOrder);
+
+         controller.create(name);
+         assertServiceCreated(name);
+         assertEquals(5, test.createOrder);
+         assertEquals(2, test.startOrder);
+         assertEquals(3, test.stopOrder);
+         assertEquals(4, test.destroyOrder);
+
+         controller.start(name);
+         assertServiceRunning(name);
+         assertEquals(5, test.createOrder);
+         assertEquals(6, test.startOrder);
+         assertEquals(3, test.stopOrder);
+         assertEquals(4, test.destroyOrder);
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans);
+
+         if (error == false)
+         {
+            assertNoService(name);
+            assertNotRegistered(name);
+            
+            assertEquals(5, test.createOrder);
+            assertEquals(6, test.startOrder);
+            assertEquals(7, test.stopOrder);
+            assertEquals(8, test.destroyOrder);
+         }
+      }
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/ControllerLifecycleBasicTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/ControllerLifecycleBasicTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/basic/test/ControllerLifecycleBasicTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,57 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.basic.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * Controller Lifecycle Basic Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class ControllerLifecycleBasicTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Controller Lifecycle Basic Tests");
+
+      suite.addTest(BasicLifecycleOldUnitTestCase.suite());
+      suite.addTest(BasicDependencyDependsOldUnitTestCase.suite());
+      suite.addTest(BasicDependencyDependsNestedOldUnitTestCase.suite());
+      suite.addTest(BasicDependencyDependsListOldUnitTestCase.suite());
+      suite.addTest(BasicDependencyDependsListNestedOldUnitTestCase.suite());
+      suite.addTest(BasicDependencyDependsOptionalAttributeOldUnitTestCase.suite());
+      suite.addTest(BasicDependencyDependsOptionalAttributeNestedOldUnitTestCase.suite());
+      suite.addTest(BasicDependencyDependsOptionalAttributeListOldUnitTestCase.suite());
+      suite.addTest(BasicDependencyDependsOptionalAttributeListNestedOldUnitTestCase.suite());
+      
+      return suite;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/ControllerLifecycleSeperatedTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/ControllerLifecycleSeperatedTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/ControllerLifecycleSeperatedTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,53 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * Controller Lifecycle Seperated Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class ControllerLifecycleSeperatedTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Controller Lifecycle Seperated Tests");
+
+      suite.addTest(SeperatedDependencyDependsOldUnitTestCase.suite());
+      suite.addTest(DependsBrokenInstantiateOldUnitTestCase.suite());
+      suite.addTest(DependsBrokenConfigureOldUnitTestCase.suite());
+      suite.addTest(DependsBrokenCreateOldUnitTestCase.suite());
+      suite.addTest(DependsBrokenStartOldUnitTestCase.suite());
+      
+      return suite;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,57 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import junit.framework.Test;
+
+import org.jboss.system.ServiceContext;
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * DependsBrokenConfigureOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsBrokenConfigureOldUnitTestCase extends DependsBrokenConfigureTest
+{
+   public static Test suite()
+   {
+      return suite(DependsBrokenConfigureOldUnitTestCase.class);
+   }
+
+   public DependsBrokenConfigureOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+   
+   // FIXME This is rubbish
+   public void testBrokenConfigureSecond() throws Exception
+   {
+      deployBrokenSecondDeployFailure(ServiceContext.CONFIGURED, ServiceContext.DESTROYED, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import org.jboss.system.ServiceContext;
+
+/**
+ * DependsBrokenConfigureTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class DependsBrokenConfigureTest extends DependsBrokenTest
+{
+   public DependsBrokenConfigureTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testBrokenConfigureFirst() throws Exception
+   {
+      deployBrokenFirstDeployFailure(ServiceContext.CONFIGURED, Error.class);
+   }
+   
+   public void testBrokenConfigureSecond() throws Exception
+   {
+      deployBrokenSecondDeployFailure(ServiceContext.CONFIGURED, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,57 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import junit.framework.Test;
+
+import org.jboss.system.ServiceContext;
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * DependsBrokenCreateOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsBrokenCreateOldUnitTestCase extends DependsBrokenCreateTest
+{
+   public static Test suite()
+   {
+      return suite(DependsBrokenCreateOldUnitTestCase.class);
+   }
+
+   public DependsBrokenCreateOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+   
+   // FIXME This is rubbish
+   public void testBrokenCreateSecond() throws Exception
+   {
+      deployBrokenSecondDeployFailure(ServiceContext.CONFIGURED, ServiceContext.DESTROYED, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import org.jboss.system.ServiceContext;
+
+/**
+ * DependsBrokenCreateTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class DependsBrokenCreateTest extends DependsBrokenTest
+{
+   public DependsBrokenCreateTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testBrokenCreateFirst() throws Exception
+   {
+      deployBrokenFirstDeployFailure(ServiceContext.CONFIGURED, Error.class);
+   }
+   
+   public void testBrokenCreateSecond() throws Exception
+   {
+      deployBrokenSecondDeployFailure(ServiceContext.CONFIGURED, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,56 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import junit.framework.Test;
+
+import org.jboss.system.ServiceContext;
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * DependsBrokenInstantiateOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsBrokenInstantiateOldUnitTestCase extends DependsBrokenInstantiateTest
+{
+   public static Test suite()
+   {
+      return suite(DependsBrokenInstantiateOldUnitTestCase.class);
+   }
+
+   public DependsBrokenInstantiateOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+   
+   public void testBrokenInstantiateSecond() throws Exception
+   {
+      deployBrokenSecondInitialDeployFailure(ServiceContext.CONFIGURED, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import org.jboss.system.ServiceContext;
+
+/**
+ * DependsBrokenInstantiateTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class DependsBrokenInstantiateTest extends DependsBrokenTest
+{
+   public DependsBrokenInstantiateTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testBrokenInstantiateFirst() throws Exception
+   {
+      deployBrokenFirstMaybeDeployFailure(ServiceContext.CONFIGURED, Error.class);
+   }
+   
+   public void testBrokenInstantiateSecond() throws Exception
+   {
+      deployBrokenSecondMaybeDeployFailure(ServiceContext.CONFIGURED, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,57 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import junit.framework.Test;
+
+import org.jboss.system.ServiceContext;
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * DependsBrokenStartOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsBrokenStartOldUnitTestCase extends DependsBrokenStartTest
+{
+   public static Test suite()
+   {
+      return suite(DependsBrokenStartOldUnitTestCase.class);
+   }
+
+   public DependsBrokenStartOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+   
+   // FIXME This is rubbish
+   public void testBrokenStartSecond() throws Exception
+   {
+      deployBrokenSecondDeployFailure(ServiceContext.CONFIGURED, ServiceContext.CREATED, ServiceContext.DESTROYED, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,48 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import org.jboss.system.ServiceContext;
+
+/**
+ * DependsBrokenStartTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class DependsBrokenStartTest extends DependsBrokenTest
+{
+   public DependsBrokenStartTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testBrokenStartFirst() throws Exception
+   {
+      deployBrokenFirstDeployFailure(ServiceContext.CONFIGURED, Error.class);
+   }
+   
+   public void testBrokenStartSecond() throws Exception
+   {
+      deployBrokenSecondDeployFailure(ServiceContext.CONFIGURED, ServiceContext.DESTROYED, ServiceContext.DESTROYED, Error.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,368 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import java.util.List;
+
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.test.system.controller.AbstractControllerTest;
+
+/**
+ * DependsBrokenTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class DependsBrokenTest extends AbstractControllerTest
+{
+   private static ObjectName NAME_ONE = ObjectNameFactory.create("test:name=1"); 
+   private static ObjectName NAME_TWO = ObjectNameFactory.create("test:name=2"); 
+   
+   private String resourceName1;
+   private String resourceName2;
+
+   public DependsBrokenTest(String name)
+   {
+      super(name);
+
+      String resourceName = getClass().getName();
+      int index= resourceName.lastIndexOf('.'); 
+      if (index != -1)
+         resourceName= resourceName.substring(index + 1, resourceName.length());
+      index = resourceName.indexOf("NewUnitTestCase");
+      if (index != -1)
+         resourceName = resourceName.substring(0, index);
+      index = resourceName.indexOf("OldUnitTestCase");
+      if (index != -1)
+         resourceName = resourceName.substring(0, index);
+      
+      resourceName1 = resourceName + "_bad.xml";
+      resourceName2 = resourceName + "_good.xml";
+   }
+   
+   public void deployBrokenFirstMaybeDeployFailure(int expectedState, Class expected) throws Exception
+   {
+      boolean error = false;
+
+      List mbeans1 = assertMaybeDeployFailure(resourceName1, NAME_ONE, expected);
+      try
+      {
+         List mbeans2 = deploy(resourceName2);
+         try
+         {
+            assertServiceState(NAME_TWO, expectedState);
+         }
+         catch (Exception e)
+         {
+            error = true;
+            throw e;
+         }
+         catch (Error e)
+         {
+            error = true;
+            throw e;
+         }
+         finally
+         {
+            undeploy(mbeans2);
+
+            if (error == false)
+            {
+               assertNoService(NAME_TWO);
+               assertNotRegistered(NAME_TWO);
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans1);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+         }
+      }
+   }
+   
+   public void deployBrokenSecondMaybeDeployFailure(int expectedState, Class expected) throws Exception
+   {
+      boolean error = false;
+
+      List mbeans2 = deploy(resourceName2);
+      try
+      {
+         assertServiceState(NAME_TWO, expectedState);
+         assertRegistered(NAME_TWO);
+
+         List mbeans1 = assertMaybeDeployFailure(resourceName1, NAME_ONE, expected);
+         try
+         {
+            assertServiceState(NAME_TWO, expectedState);
+            assertRegistered(NAME_TWO);
+         }
+         catch (Exception e)
+         {
+            error = true;
+            throw e;
+         }
+         catch (Error e)
+         {
+            error = true;
+            throw e;
+         }
+         finally
+         {
+            undeploy(mbeans1);
+
+            if (error == false)
+            {
+               assertServiceState(NAME_TWO, expectedState);
+               assertRegistered(NAME_TWO);
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans2);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+         }
+      }
+   }
+   
+   public void deployBrokenFirstDeployFailure(int expectedState, Class expected) throws Exception
+   {
+      boolean error = false;
+
+      List mbeans1 = assertDeployFailure(resourceName1, NAME_ONE, expected);
+      try
+      {
+         List mbeans2 = deploy(resourceName2);
+         try
+         {
+            assertServiceState(NAME_TWO, expectedState);
+         }
+         catch (Exception e)
+         {
+            error = true;
+            throw e;
+         }
+         catch (Error e)
+         {
+            error = true;
+            throw e;
+         }
+         finally
+         {
+            undeploy(mbeans2);
+
+            if (error == false)
+            {
+               assertNoService(NAME_TWO);
+               assertNotRegistered(NAME_TWO);
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans1);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+         }
+      }
+   }
+   
+   public void deployBrokenSecondDeployFailure(int expectedState, Class expected) throws Exception
+   {
+      deployBrokenSecondDeployFailure(expectedState, expectedState, expectedState, expected);
+   }
+   
+   public void deployBrokenSecondDeployFailure(int expectedState, int brokenExpectedState, Class expected) throws Exception
+   {
+      deployBrokenSecondDeployFailure(expectedState, expectedState, brokenExpectedState, expected);
+   }
+   
+   public void deployBrokenSecondDeployFailure(int beforeExpectedState, int afterExpectedState, int brokenExpectedState, Class expected) throws Exception
+   {
+      boolean error = false;
+
+      List mbeans2 = deploy(resourceName2);
+      try
+      {
+         assertServiceState(NAME_TWO, beforeExpectedState);
+         assertRegistered(NAME_TWO);
+
+         List mbeans1 = assertDeployFailure(resourceName1, NAME_ONE, expected);
+         try
+         {
+            assertServiceState(NAME_TWO, afterExpectedState);
+            assertRegistered(NAME_TWO);
+         }
+         catch (Exception e)
+         {
+            error = true;
+            throw e;
+         }
+         catch (Error e)
+         {
+            error = true;
+            throw e;
+         }
+         finally
+         {
+            undeploy(mbeans1);
+
+            if (error == false)
+            {
+               assertServiceState(NAME_TWO, brokenExpectedState);
+               assertRegistered(NAME_TWO);
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans2);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+         }
+      }
+   }
+   
+   public void deployBrokenSecondInitialDeployFailure(int expectedState, Class expected) throws Exception
+   {
+      boolean error = false;
+
+      List mbeans2 = deploy(resourceName2);
+      try
+      {
+         assertServiceState(NAME_TWO, expectedState);
+         assertRegistered(NAME_TWO);
+
+         assertInitialDeployFailure(resourceName1, NAME_ONE, expected);
+         try
+         {
+            assertServiceState(NAME_TWO, expectedState);
+            assertRegistered(NAME_TWO);
+         }
+         catch (Exception e)
+         {
+            error = true;
+            throw e;
+         }
+         catch (Error e)
+         {
+            error = true;
+            throw e;
+         }
+         finally
+         {
+            if (error == false)
+            {
+               assertServiceState(NAME_TWO, expectedState);
+               assertRegistered(NAME_TWO);
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans2);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+         }
+      }
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDependsOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDependsOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyDependsOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * SeperatedDependencyDependsOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class SeperatedDependencyDependsOldUnitTestCase extends SeperatedDependencyTest
+{
+   public static Test suite()
+   {
+      return suite(SeperatedDependencyDependsOldUnitTestCase.class);
+   }
+
+   public SeperatedDependencyDependsOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/SeperatedDependencyTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,519 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.seperated.test;
+
+import java.util.List;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.Simple;
+
+/**
+ * BasicLifecycleTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class SeperatedDependencyTest extends AbstractControllerTest
+{
+   private static ObjectName NAME_ONE = ObjectNameFactory.create("test:name=1"); 
+   private static ObjectName NAME_TWO = ObjectNameFactory.create("test:name=2"); 
+   
+   private String resourceName1;
+   private String resourceName2;
+   
+   public SeperatedDependencyTest(String name)
+   {
+      super(name);
+
+      String resourceName = getClass().getName();
+      int index= resourceName.lastIndexOf('.'); 
+      if (index != -1)
+         resourceName= resourceName.substring(index + 1, resourceName.length());
+      index = resourceName.indexOf("NewUnitTestCase");
+      if (index != -1)
+         resourceName = resourceName.substring(0, index);
+      index = resourceName.indexOf("OldUnitTestCase");
+      if (index != -1)
+         resourceName = resourceName.substring(0, index);
+      
+      resourceName1 = resourceName + "_1.xml";
+      resourceName2 = resourceName + "_2.xml";
+   }
+   
+   public void testDeployCorrectOrder() throws Exception
+   {
+      Simple test1 = null;
+      Simple test2 = null;
+      
+      boolean error = false;
+      
+      List mbeans1 = deploy(resourceName1);
+      try
+      {
+         assertServiceRunning(NAME_ONE);
+         assertNoService(NAME_TWO);
+         
+         MBeanServer server = getServer();
+         test1 = (Simple) server.getAttribute(NAME_ONE, "Instance");
+         assertEquals("()", test1.constructorUsed);
+         assertEquals(1, test1.createOrder);
+         assertEquals(2, test1.startOrder);
+         assertEquals(0, test1.stopOrder);
+         assertEquals(0, test1.destroyOrder);
+
+         List mbeans2 = deploy(resourceName2);
+         try
+         {
+            assertServiceRunning(NAME_ONE);
+            assertServiceRunning(NAME_TWO);
+            
+            assertEquals(1, test1.createOrder);
+            assertEquals(2, test1.startOrder);
+            assertEquals(0, test1.stopOrder);
+            assertEquals(0, test1.destroyOrder);
+            test2 = (Simple) server.getAttribute(NAME_TWO, "Instance");
+            assertEquals("()", test2.constructorUsed);
+            assertEquals(3, test2.createOrder);
+            assertEquals(4, test2.startOrder);
+            assertEquals(0, test2.stopOrder);
+            assertEquals(0, test2.destroyOrder);
+         }
+         catch (Exception e)
+         {
+            error = true;
+            throw e;
+         }
+         catch (Error e)
+         {
+            error = true;
+            throw e;
+         }
+         finally
+         {
+            undeploy(mbeans2);
+
+            if (error == false)
+            {
+               assertServiceRunning(NAME_ONE);
+               assertEquals(1, test1.createOrder);
+               assertEquals(2, test1.startOrder);
+               assertEquals(0, test1.stopOrder);
+               assertEquals(0, test1.destroyOrder);
+               assertNoService(NAME_TWO);
+               assertNotRegistered(NAME_TWO);
+               assertEquals(3, test2.createOrder);
+               assertEquals(4, test2.startOrder);
+               assertEquals(5, test2.stopOrder);
+               assertEquals(6, test2.destroyOrder);
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans1);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertEquals(1, test1.createOrder);
+            assertEquals(2, test1.startOrder);
+            assertEquals(7, test1.stopOrder);
+            assertEquals(8, test1.destroyOrder);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+            if (test2 != null)
+            {
+               assertEquals(3, test2.createOrder);
+               assertEquals(4, test2.startOrder);
+               assertEquals(5, test2.stopOrder);
+               assertEquals(6, test2.destroyOrder);
+            }
+         }
+      }
+   }
+   
+   public void testDeployWrongOrder() throws Exception
+   {
+      Simple test1 = null;
+      Simple test2 = null;
+      
+      boolean error = false;
+      
+      List mbeans2 = deploy(resourceName2);
+      try
+      {
+         assertServiceConfigured(NAME_TWO);
+         
+         MBeanServer server = getServer();
+         test2 = (Simple) server.getAttribute(NAME_TWO, "Instance");
+         assertEquals("()", test2.constructorUsed);
+         assertEquals(0, test2.createOrder);
+         assertEquals(0, test2.startOrder);
+         assertEquals(0, test2.stopOrder);
+         assertEquals(0, test2.destroyOrder);
+
+         List mbeans1 = deploy(resourceName1);
+         try
+         {
+            assertServiceRunning(NAME_TWO);
+            assertServiceRunning(NAME_ONE);
+            
+            assertEquals(2, test2.createOrder);
+            assertEquals(4, test2.startOrder);
+            assertEquals(0, test2.stopOrder);
+            assertEquals(0, test2.destroyOrder);
+            test1 = (Simple) server.getAttribute(NAME_ONE, "Instance");
+            assertEquals("()", test1.constructorUsed);
+            assertEquals(1, test1.createOrder);
+            assertEquals(3, test1.startOrder);
+            assertEquals(0, test1.stopOrder);
+            assertEquals(0, test1.destroyOrder);
+         }
+         catch (Exception e)
+         {
+            error = true;
+            throw e;
+         }
+         catch (Error e)
+         {
+            error = true;
+            throw e;
+         }
+         finally
+         {
+            undeploy(mbeans1);
+
+            if (error == false)
+            {
+               assertServiceDestroyed(NAME_TWO);
+               assertEquals(2, test2.createOrder);
+               assertEquals(4, test2.startOrder);
+               assertEquals(5, test2.stopOrder);
+               assertEquals(7, test2.destroyOrder);
+               assertNotRegistered(NAME_ONE);
+               assertEquals(1, test1.createOrder);
+               assertEquals(3, test1.startOrder);
+               assertEquals(6, test1.stopOrder);
+               assertEquals(8, test1.destroyOrder);
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans2);
+
+         if (error == false)
+         {
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+            assertEquals(2, test2.createOrder);
+            assertEquals(4, test2.startOrder);
+            assertEquals(5, test2.stopOrder);
+            assertEquals(7, test2.destroyOrder);
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            if (test1 != null)
+            {
+               assertEquals(1, test1.createOrder);
+               assertEquals(3, test1.startOrder);
+               assertEquals(6, test1.stopOrder);
+               assertEquals(8, test1.destroyOrder);
+            }
+         }
+      }
+   }
+   
+   public void testRedeployOne() throws Exception
+   {
+      Simple test1 = null;
+      Simple test2 = null;
+      
+      boolean error = false;
+      
+      List mbeans1 = deploy(resourceName1);
+      try
+      {
+         List mbeans2 = deploy(resourceName2);
+         try
+         {
+            assertServiceRunning(NAME_ONE);
+            assertServiceRunning(NAME_TWO);
+            
+            MBeanServer server = getServer();
+            test1 = (Simple) server.getAttribute(NAME_ONE, "Instance");
+            assertEquals("()", test1.constructorUsed);
+            assertEquals(1, test1.createOrder);
+            assertEquals(2, test1.startOrder);
+            assertEquals(0, test1.stopOrder);
+            assertEquals(0, test1.destroyOrder);
+            test2 = (Simple) server.getAttribute(NAME_TWO, "Instance");
+            assertEquals("()", test2.constructorUsed);
+            assertEquals(3, test2.createOrder);
+            assertEquals(4, test2.startOrder);
+            assertEquals(0, test2.stopOrder);
+            assertEquals(0, test2.destroyOrder);
+            
+            undeploy(mbeans1);
+
+            assertNotRegistered(NAME_ONE);
+            assertServiceDestroyed(NAME_TWO);
+            
+            assertEquals(1, test1.createOrder);
+            assertEquals(2, test1.startOrder);
+            assertEquals(6, test1.stopOrder);
+            assertEquals(8, test1.destroyOrder);
+            assertEquals(3, test2.createOrder);
+            assertEquals(4, test2.startOrder);
+            assertEquals(5, test2.stopOrder);
+            assertEquals(7, test2.destroyOrder);
+            
+            mbeans1 = deploy(resourceName1);
+
+            assertServiceRunning(NAME_ONE);
+            assertServiceRunning(NAME_TWO);
+            
+            test1 = (Simple) server.getAttribute(NAME_ONE, "Instance");
+            assertEquals("()", test1.constructorUsed);
+            assertEquals(9, test1.createOrder);
+            assertEquals(11, test1.startOrder);
+            assertEquals(0, test1.stopOrder);
+            assertEquals(0, test1.destroyOrder);
+            assertEquals(10, test2.createOrder);
+            assertEquals(12, test2.startOrder);
+            assertEquals(5, test2.stopOrder);
+            assertEquals(7, test2.destroyOrder);
+         }
+         catch (Exception e)
+         {
+            error = true;
+            throw e;
+         }
+         catch (Error e)
+         {
+            error = true;
+            throw e;
+         }
+         finally
+         {
+            undeploy(mbeans2);
+
+            if (error == false)
+            {
+               assertServiceRunning(NAME_ONE);
+               assertEquals(9, test1.createOrder);
+               assertEquals(11, test1.startOrder);
+               assertEquals(0, test1.stopOrder);
+               assertEquals(0, test1.destroyOrder);
+               assertNoService(NAME_TWO);
+               assertNotRegistered(NAME_TWO);
+               assertEquals(10, test2.createOrder);
+               assertEquals(12, test2.startOrder);
+               assertEquals(13, test2.stopOrder);
+               assertEquals(14, test2.destroyOrder);
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans1);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertEquals(9, test1.createOrder);
+            assertEquals(11, test1.startOrder);
+            assertEquals(15, test1.stopOrder);
+            assertEquals(16, test1.destroyOrder);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+            if (test2 != null)
+            {
+               assertEquals(10, test2.createOrder);
+               assertEquals(12, test2.startOrder);
+               assertEquals(13, test2.stopOrder);
+               assertEquals(14, test2.destroyOrder);
+            }
+         }
+      }
+   }
+   
+   public void testRedeployTwo() throws Exception
+   {
+      Simple test1 = null;
+      Simple test2 = null;
+      
+      boolean error = false;
+      
+      List mbeans1 = deploy(resourceName1);
+      try
+      {
+         List mbeans2 = deploy(resourceName2);
+         try
+         {
+            assertServiceRunning(NAME_ONE);
+            assertServiceRunning(NAME_TWO);
+            
+            MBeanServer server = getServer();
+            test1 = (Simple) server.getAttribute(NAME_ONE, "Instance");
+            assertEquals("()", test1.constructorUsed);
+            assertEquals(1, test1.createOrder);
+            assertEquals(2, test1.startOrder);
+            assertEquals(0, test1.stopOrder);
+            assertEquals(0, test1.destroyOrder);
+            test2 = (Simple) server.getAttribute(NAME_TWO, "Instance");
+            assertEquals("()", test2.constructorUsed);
+            assertEquals(3, test2.createOrder);
+            assertEquals(4, test2.startOrder);
+            assertEquals(0, test2.stopOrder);
+            assertEquals(0, test2.destroyOrder);
+            
+            undeploy(mbeans2);
+
+            assertServiceRunning(NAME_ONE);
+            assertNoService(NAME_TWO);
+            
+            assertEquals(1, test1.createOrder);
+            assertEquals(2, test1.startOrder);
+            assertEquals(0, test1.stopOrder);
+            assertEquals(0, test1.destroyOrder);
+            assertEquals(3, test2.createOrder);
+            assertEquals(4, test2.startOrder);
+            assertEquals(5, test2.stopOrder);
+            assertEquals(6, test2.destroyOrder);
+            
+            mbeans2 = deploy(resourceName2);
+
+            assertServiceRunning(NAME_ONE);
+            assertServiceRunning(NAME_TWO);
+            
+            assertEquals(1, test1.createOrder);
+            assertEquals(2, test1.startOrder);
+            assertEquals(0, test1.stopOrder);
+            assertEquals(0, test1.destroyOrder);
+            test2 = (Simple) server.getAttribute(NAME_TWO, "Instance");
+            assertEquals("()", test1.constructorUsed);
+            assertEquals(7, test2.createOrder);
+            assertEquals(8, test2.startOrder);
+            assertEquals(0, test2.stopOrder);
+            assertEquals(0, test2.destroyOrder);
+         }
+         catch (Exception e)
+         {
+            error = true;
+            throw e;
+         }
+         catch (Error e)
+         {
+            error = true;
+            throw e;
+         }
+         finally
+         {
+            undeploy(mbeans2);
+
+            if (error == false)
+            {
+               assertServiceRunning(NAME_ONE);
+               assertEquals(1, test1.createOrder);
+               assertEquals(2, test1.startOrder);
+               assertEquals(0, test1.stopOrder);
+               assertEquals(0, test1.destroyOrder);
+               assertNoService(NAME_TWO);
+               assertNotRegistered(NAME_TWO);
+               assertEquals(7, test2.createOrder);
+               assertEquals(8, test2.startOrder);
+               assertEquals(9, test2.stopOrder);
+               assertEquals(10, test2.destroyOrder);
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         error = true;
+         throw e;
+      }
+      catch (Error e)
+      {
+         error = true;
+         throw e;
+      }
+      finally
+      {
+         undeploy(mbeans1);
+
+         if (error == false)
+         {
+            assertNoService(NAME_ONE);
+            assertNotRegistered(NAME_ONE);
+            assertEquals(1, test1.createOrder);
+            assertEquals(2, test1.startOrder);
+            assertEquals(11, test1.stopOrder);
+            assertEquals(12, test1.destroyOrder);
+            assertNoService(NAME_TWO);
+            assertNotRegistered(NAME_TWO);
+            if (test2 != null)
+            {
+               assertEquals(7, test2.createOrder);
+               assertEquals(8, test2.startOrder);
+               assertEquals(9, test2.stopOrder);
+               assertEquals(10, test2.destroyOrder);
+            }
+         }
+      }
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/ControllerLifecycleTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/ControllerLifecycleTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/ControllerLifecycleTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,54 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.system.controller.lifecycle.basic.test.ControllerLifecycleBasicTestSuite;
+import org.jboss.test.system.controller.lifecycle.seperated.test.ControllerLifecycleSeperatedTestSuite;
+
+/**
+ * Controller Lifecycle Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class ControllerLifecycleTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Controller Lifecycle Tests");
+
+      suite.addTest(LifecycleRedeployAfterErrorOldUnitTestCase.suite());
+      suite.addTest(ControllerLifecycleBasicTestSuite.suite());
+      suite.addTest(ControllerLifecycleSeperatedTestSuite.suite());
+      
+      return suite;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * LifecycleRedeployAfterErrorOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class LifecycleRedeployAfterErrorOldUnitTestCase extends LifecycleRedeployAfterErrorTest
+{
+   public static Test suite()
+   {
+      return suite(LifecycleRedeployAfterErrorOldUnitTestCase.class);
+   }
+
+   public LifecycleRedeployAfterErrorOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,59 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.lifecycle.test;
+
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * LifecycleRedeployAfterErrorTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class LifecycleRedeployAfterErrorTest extends AbstractControllerTest
+{
+   public LifecycleRedeployAfterErrorTest(String name)
+   {
+      super(name);
+   }
+   
+   public void testErrorInCreateRedeployAfterError() throws Exception
+   {
+      redeployAfterDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+   
+   public void testErrorInStartRedeployAfterError() throws Exception
+   {
+      redeployAfterDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+   
+   public void testErrorInStopRedeployAfterError() throws Exception
+   {
+      redeployAfterUndeployFailure(SimpleMBean.OBJECT_NAME);
+   }
+   
+   public void testErrorInDestroyRedeployAfterError() throws Exception
+   {
+      redeployAfterUndeployFailure(SimpleMBean.OBJECT_NAME);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ControllerParseTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ControllerParseTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ControllerParseTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.parse.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * Controller Parse Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class ControllerParseTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Controller Parsing Tests");
+
+      suite.addTest(ErrorInParseOldUnitTestCase.suite());
+      
+      return suite;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseOldUnitTestCase.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseOldUnitTestCase.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseOldUnitTestCase.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.parse.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * ErrorInParseOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ErrorInParseOldUnitTestCase extends ErrorInParseTest
+{
+   public static Test suite()
+   {
+      return suite(ErrorInParseOldUnitTestCase.class);
+   }
+
+   public ErrorInParseOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseTest.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseTest.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseTest.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,64 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.parse.test;
+
+import javax.management.MalformedObjectNameException;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * ErrorInParseTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class ErrorInParseTest extends AbstractControllerTest
+{
+   public ErrorInParseTest(String name)
+   {
+      super(name);
+   }
+
+   protected void errorInParse(Class expected) throws Exception
+   {
+      String resource = getName();
+      resource = resource.substring(4) + ".xml";
+      assertInitialDeployFailure(resource, SimpleMBean.OBJECT_NAME, expected);
+   }
+   
+   public void testNameMissing() throws Exception
+   {
+      errorInParse(DeploymentException.class);
+   }
+   
+   public void testNameEmpty() throws Exception
+   {
+      errorInParse(DeploymentException.class);
+   }
+   
+   public void testNameInvalid() throws Exception
+   {
+      errorInParse(MalformedObjectNameException.class);
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractRegistration.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractRegistration.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractRegistration.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,52 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import javax.management.MBeanRegistration;
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+/**
+ * AbstractMBeanRegistration.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class AbstractRegistration implements MBeanRegistration, AbstractRegistrationMBean
+{
+   public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
+   {
+      return name;
+   }
+
+   public void postRegister(Boolean registrationDone)
+   {
+   }
+
+   public void preDeregister() throws Exception
+   {
+   }
+
+   public void postDeregister()
+   {
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractRegistrationMBean.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractRegistrationMBean.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractRegistrationMBean.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,32 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+/**
+ * AbstractRegistrationMBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public interface AbstractRegistrationMBean
+{
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractSimple.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractSimple.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/AbstractSimple.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,32 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+/**
+ * AbstractSimple.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class AbstractSimple extends Simple
+{
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBean.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBean.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBean.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,76 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import javax.management.Attribute;
+import javax.management.AttributeList;
+import javax.management.AttributeNotFoundException;
+import javax.management.DynamicMBean;
+import javax.management.InvalidAttributeValueException;
+import javax.management.MBeanException;
+import javax.management.MBeanInfo;
+import javax.management.ObjectName;
+import javax.management.ReflectionException;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.util.NotImplementedException;
+
+/**
+ * BrokenDynamicMBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BrokenDynamicMBean implements DynamicMBean
+{
+   public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.test:type=BrokenDynamicMBean"); 
+   
+   public MBeanInfo getMBeanInfo()
+   {
+      throw new Error("BROKEN");
+   }
+
+   public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
+   {
+      throw new org.jboss.util.NotImplementedException("getAttribute");
+   }
+
+   public AttributeList getAttributes(String[] attributes)
+   {
+      throw new NotImplementedException("getAttributes");
+   }
+
+   public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
+   {
+      throw new NotImplementedException("invoke");
+   }
+
+   public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
+   {
+      throw new NotImplementedException("setAttribute");
+   }
+
+   public AttributeList setAttributes(AttributeList attributes)
+   {
+      throw new NotImplementedException("setAttributes");
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributeInfoTypeNotFound.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributeInfoTypeNotFound.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributeInfoTypeNotFound.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,93 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import javax.management.Attribute;
+import javax.management.AttributeList;
+import javax.management.AttributeNotFoundException;
+import javax.management.DynamicMBean;
+import javax.management.InvalidAttributeValueException;
+import javax.management.MBeanAttributeInfo;
+import javax.management.MBeanException;
+import javax.management.MBeanInfo;
+import javax.management.ObjectName;
+import javax.management.ReflectionException;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.util.NotImplementedException;
+
+/**
+ * BrokenDynamicMBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BrokenDynamicMBeanAttributeInfoTypeNotFound implements DynamicMBean
+{
+   public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.test:type=BrokenDynamicMBeanAttributeInfoTypeNotFound"); 
+   
+   public MBeanInfo getMBeanInfo()
+   {
+      return new BrokenMBeanInfoAttributes();
+   }
+
+   public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
+   {
+      throw new org.jboss.util.NotImplementedException("getAttribute");
+   }
+
+   public AttributeList getAttributes(String[] attributes)
+   {
+      throw new NotImplementedException("getAttributes");
+   }
+
+   public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
+   {
+      throw new NotImplementedException("invoke");
+   }
+
+   public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
+   {
+      throw new NotImplementedException("setAttribute");
+   }
+
+   public AttributeList setAttributes(AttributeList attributes)
+   {
+      throw new NotImplementedException("setAttributes");
+   }
+   
+   private static class BrokenMBeanInfoAttributes extends MBeanInfo
+   {
+      private static final long serialVersionUID = 1158114004365977632L;
+
+      public BrokenMBeanInfoAttributes() throws IllegalArgumentException
+      {
+         super(BrokenDynamicMBeanAttributeInfoTypeNotFound.class.getName(), "Broken", null, null, null, null);
+      }
+
+      public MBeanAttributeInfo[] getAttributes()
+      {
+         MBeanAttributeInfo[] result = { new MBeanAttributeInfo("Name", "TYPEDOESNOTEXIST", "Broken", true, true, false) };
+         return result;
+      }
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributes.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributes.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributes.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,92 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import javax.management.Attribute;
+import javax.management.AttributeList;
+import javax.management.AttributeNotFoundException;
+import javax.management.DynamicMBean;
+import javax.management.InvalidAttributeValueException;
+import javax.management.MBeanAttributeInfo;
+import javax.management.MBeanException;
+import javax.management.MBeanInfo;
+import javax.management.ObjectName;
+import javax.management.ReflectionException;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.util.NotImplementedException;
+
+/**
+ * BrokenDynamicMBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BrokenDynamicMBeanAttributes implements DynamicMBean
+{
+   public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.test:type=BrokenDynamicMBeanAttributes"); 
+   
+   public MBeanInfo getMBeanInfo()
+   {
+      return new BrokenMBeanInfoAttributes();
+   }
+
+   public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
+   {
+      throw new org.jboss.util.NotImplementedException("getAttribute");
+   }
+
+   public AttributeList getAttributes(String[] attributes)
+   {
+      throw new NotImplementedException("getAttributes");
+   }
+
+   public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
+   {
+      throw new NotImplementedException("invoke");
+   }
+
+   public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
+   {
+      throw new NotImplementedException("setAttribute");
+   }
+
+   public AttributeList setAttributes(AttributeList attributes)
+   {
+      throw new NotImplementedException("setAttributes");
+   }
+   
+   private static class BrokenMBeanInfoAttributes extends MBeanInfo
+   {
+      private static final long serialVersionUID = 1158114004365977632L;
+
+      public BrokenMBeanInfoAttributes() throws IllegalArgumentException
+      {
+         super(BrokenDynamicMBeanAttributes.class.getName(), "Broken", null, null, null, null);
+      }
+
+      public MBeanAttributeInfo[] getAttributes()
+      {
+         throw new Error("BROKEN");
+      }
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanNoAttributeInfoType.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanNoAttributeInfoType.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanNoAttributeInfoType.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,93 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import javax.management.Attribute;
+import javax.management.AttributeList;
+import javax.management.AttributeNotFoundException;
+import javax.management.DynamicMBean;
+import javax.management.InvalidAttributeValueException;
+import javax.management.MBeanAttributeInfo;
+import javax.management.MBeanException;
+import javax.management.MBeanInfo;
+import javax.management.ObjectName;
+import javax.management.ReflectionException;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.util.NotImplementedException;
+
+/**
+ * BrokenDynamicMBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class BrokenDynamicMBeanNoAttributeInfoType implements DynamicMBean
+{
+   public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.test:type=BrokenDynamicMBeanNoAttributeInfoType"); 
+   
+   public MBeanInfo getMBeanInfo()
+   {
+      return new BrokenMBeanInfoAttributes();
+   }
+
+   public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
+   {
+      throw new org.jboss.util.NotImplementedException("getAttribute");
+   }
+
+   public AttributeList getAttributes(String[] attributes)
+   {
+      throw new NotImplementedException("getAttributes");
+   }
+
+   public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
+   {
+      throw new NotImplementedException("invoke");
+   }
+
+   public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
+   {
+      throw new NotImplementedException("setAttribute");
+   }
+
+   public AttributeList setAttributes(AttributeList attributes)
+   {
+      throw new NotImplementedException("setAttributes");
+   }
+   
+   private static class BrokenMBeanInfoAttributes extends MBeanInfo
+   {
+      private static final long serialVersionUID = 1158114004365977632L;
+
+      public BrokenMBeanInfoAttributes() throws IllegalArgumentException
+      {
+         super(BrokenDynamicMBeanNoAttributeInfoType.class.getName(), "Broken", null, null, null, null);
+      }
+
+      public MBeanAttributeInfo[] getAttributes()
+      {
+         MBeanAttributeInfo[] result = { new MBeanAttributeInfo("Name", null, "Broken", true, true, false) };
+         return result;
+      }
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBean.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBean.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBean.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,67 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import java.util.Iterator;
+
+/**
+ * JavaBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class JavaBean
+{
+   private String property1;
+   private Integer property2;
+   private Iterator property3;
+
+   public String getProperty1()
+   {
+      return property1;
+   }
+
+   public void setProperty1(String property1)
+   {
+      this.property1 = property1;
+   }
+
+   public Integer getProperty2()
+   {
+      return property2;
+   }
+
+   public void setProperty2(Integer property2)
+   {
+      this.property2 = property2;
+   }
+
+   public Iterator getProperty3()
+   {
+      return property3;
+   }
+
+   public void setProperty3(Iterator property3)
+   {
+      this.property3 = property3;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorConstructor.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorConstructor.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorConstructor.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,36 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+/**
+ * JavaBeanErrorConstructor.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class JavaBeanErrorConstructor extends JavaBean
+{
+   public JavaBeanErrorConstructor()
+   {
+      throw new Error("BROKEN");
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorProperty.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorProperty.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorProperty.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,36 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+/**
+ * JavaBeanErrorProperty.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class JavaBeanErrorProperty extends JavaBean
+{
+   public void setProperty1(String property1)
+   {
+      throw new Error("Broken");
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/NotSimpleStandardMBeanInterface.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/NotSimpleStandardMBeanInterface.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/NotSimpleStandardMBeanInterface.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,32 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+/**
+ * NotSimpleStandardMBeanInterface.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public interface NotSimpleStandardMBeanInterface
+{
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/Order.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/Order.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/Order.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+/**
+ * Order.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class Order
+{
+   private static int order = 0;
+   
+   public static synchronized int getOrder()
+   {
+      return ++order;
+   }
+   
+   public static synchronized void reset()
+   {
+      order = 0;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PostDeregisterError.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PostDeregisterError.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PostDeregisterError.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,42 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+
+/**
+ * PostDeregisterError.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class PostDeregisterError extends AbstractRegistration
+{
+   public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.test:type=PostDeregisterError"); 
+
+   public void postDeregister()
+   {
+      throw new Error("BROKEN");
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PostRegisterError.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PostRegisterError.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PostRegisterError.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,42 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+
+/**
+ * PostRegisterError.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class PostRegisterError extends AbstractRegistration
+{
+   public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.test:type=PostRegisterError"); 
+
+   public void postRegister(Boolean registrationDone)
+   {
+      throw new Error("BROKEN");
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PreDeregisterError.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PreDeregisterError.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PreDeregisterError.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,42 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+
+/**
+ * PreDeregisterError.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class PreDeregisterError extends AbstractRegistration
+{
+   public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.test:type=PreDeregisterError"); 
+
+   public void preDeregister()
+   {
+      throw new Error("BROKEN");
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PreRegisterError.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PreRegisterError.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/PreRegisterError.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+
+/**
+ * PreRegisterError.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class PreRegisterError extends AbstractRegistration
+{
+   public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.test:type=PreRegisterError"); 
+
+   public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
+   {
+      throw new Error("BROKEN");
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/Simple.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/Simple.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/Simple.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,601 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.Collection;
+import java.util.Date;
+
+import javax.management.ObjectName;
+
+import org.jboss.system.ServiceMBeanSupport;
+import org.jboss.util.NotImplementedException;
+import org.w3c.dom.Element;
+
+/**
+ * Simple.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class Simple extends ServiceMBeanSupport implements SimpleMBean, SimpleStandardMBeanInterface
+{
+   public String constructorUsed;
+   
+   public int createOrder;
+   public int startOrder;
+   public int stopOrder;
+   public int destroyOrder;
+   
+   boolean touched = false;
+   
+   /** An object */
+   private Object object;
+   
+   /** A string */
+   private String aString;
+
+   /** Byte */
+   private Byte aByte;
+
+   /** Boolean */
+   private Boolean aBoolean;
+
+   /** Character */
+   private Character aCharacter;
+
+   /** Short */
+   private Short aShort;
+
+   /** Int */
+   private Integer anInt;
+
+   /** Long */
+   private Long aLong;
+
+   /** Float */
+   private Float aFloat;
+
+   /** Double */
+   private Double aDouble;
+
+   /** Date */
+   private Date aDate;
+
+   /** BigDecimal */
+   private BigDecimal aBigDecimal;
+
+   /** BigDecimal */
+   private BigInteger aBigInteger;
+
+   /** byte */
+   private byte abyte;
+
+   /** boolean */
+   private boolean aboolean;
+
+   /** char */
+   private char achar;
+
+   /** short */
+   private short ashort;
+
+   /** int */
+   private int anint;
+
+   /** long */
+   private long along;
+
+   /** float */
+   private float afloat;
+
+   /** double */
+   private double adouble;
+
+   /** number */
+   private Number aNumber;
+   
+   /** objectName */
+   private ObjectName objectName;
+   
+   /** objectNames */
+   private Collection objectNames;
+   
+   /** First attribute */
+   private String attribute1;
+   
+   /** Second attribute */
+   private String attribute2;
+   
+   /** First attribute */
+   private ObjectName objectNameAttribute1;
+   
+   /** Second attribute */
+   private ObjectName objectNameAttribute2;
+   
+   /** First attribute */
+   private Collection objectNamesAttribute1;
+   
+   /** Second attribute */
+   private Collection objectNamesAttribute2;
+
+   private SimpleStandardMBeanInterface proxy;
+
+   private Element element;
+
+   private JavaBean javaBean;
+   
+   private Simple simple;
+
+   public Simple()
+   {
+      constructorUsed = "()";
+   }
+   
+   public Simple(String string)
+   {
+      constructorUsed = "(java.lang.String)";
+      aString = string;
+      if ("error".equals(string))
+         throw new Error();
+      if ("exception".equals(string))
+         throw new RuntimeException();
+   }
+   
+   public Simple(int integer)
+   {
+      constructorUsed = "(int)";
+      anint = integer;
+   }
+   
+   public Simple(int integer, float number)
+   {
+      constructorUsed = "(int,float)";
+      anint = integer;
+      afloat = number;
+   }
+   
+   public Simple getInstance()
+   {
+      return this;
+   }
+   
+   protected void createService()
+   {
+      createOrder = Order.getOrder();
+      if ("ERRORINCREATE".equals(aString))
+         throw new Error("BROKEN CREATE");
+   }
+   
+   protected void startService()
+   {
+      startOrder = Order.getOrder();
+      if ("ERRORINSTART".equals(aString))
+         throw new Error("BROKEN START");
+   }
+   
+   protected void stopService()
+   {
+      stopOrder = Order.getOrder();
+      if ("ERRORINSTOP".equals(aString))
+         throw new Error("BROKEN STOP");
+   }
+   
+   protected void destroyService()
+   {
+      destroyOrder = Order.getOrder();
+      if ("ERRORINDESTROY".equals(aString))
+         throw new Error("BROKEN DESTROY");
+   }
+
+   public Object getObject()
+   {
+      return object;
+   }
+
+   public void setObject(Object object)
+   {
+      this.object = object;
+   }
+
+   public BigDecimal getABigDecimal()
+   {
+      return aBigDecimal;
+   }
+
+   public void setABigDecimal(BigDecimal bigDecimal)
+   {
+      aBigDecimal = bigDecimal;
+   }
+
+   public BigInteger getABigInteger()
+   {
+      return aBigInteger;
+   }
+
+   public void setABigInteger(BigInteger bigInteger)
+   {
+      aBigInteger = bigInteger;
+   }
+
+   public boolean isAboolean()
+   {
+      return aboolean;
+   }
+
+   public void setAboolean(boolean aboolean)
+   {
+      this.aboolean = aboolean;
+   }
+
+   public Boolean getABoolean()
+   {
+      return aBoolean;
+   }
+
+   public void setABoolean(Boolean boolean1)
+   {
+      aBoolean = boolean1;
+   }
+
+   public Number getANumber()
+   {
+      return aNumber;
+   }
+
+   public void setANumber(Number number)
+   {
+      aNumber = number;
+   }
+
+   public byte getAbyte()
+   {
+      return abyte;
+   }
+
+   public void setAbyte(byte abyte)
+   {
+      this.abyte = abyte;
+   }
+
+   public Byte getAByte()
+   {
+      return aByte;
+   }
+
+   public void setAByte(Byte byte1)
+   {
+      aByte = byte1;
+   }
+
+   public char getAchar()
+   {
+      return achar;
+   }
+
+   public void setAchar(char achar)
+   {
+      this.achar = achar;
+   }
+
+   public Character getACharacter()
+   {
+      return aCharacter;
+   }
+
+   public void setACharacter(Character character)
+   {
+      aCharacter = character;
+   }
+
+   public Date getADate()
+   {
+      return aDate;
+   }
+
+   public void setADate(Date date)
+   {
+      aDate = date;
+   }
+
+   public double getAdouble()
+   {
+      return adouble;
+   }
+
+   public void setAdouble(double adouble)
+   {
+      this.adouble = adouble;
+   }
+
+   public Double getADouble()
+   {
+      return aDouble;
+   }
+
+   public void setADouble(Double double1)
+   {
+      aDouble = double1;
+   }
+
+   public float getAfloat()
+   {
+      return afloat;
+   }
+
+   public void setAfloat(float afloat)
+   {
+      this.afloat = afloat;
+   }
+
+   public Float getAFloat()
+   {
+      return aFloat;
+   }
+
+   public void setAFloat(Float float1)
+   {
+      aFloat = float1;
+   }
+
+   public long getAlong()
+   {
+      return along;
+   }
+
+   public void setAlong(long along)
+   {
+      this.along = along;
+   }
+
+   public Long getALong()
+   {
+      return aLong;
+   }
+
+   public void setALong(Long long1)
+   {
+      aLong = long1;
+   }
+
+   public int getAnint()
+   {
+      return anint;
+   }
+
+   public void setAnint(int anint)
+   {
+      this.anint = anint;
+   }
+
+   public Integer getAnInt()
+   {
+      return anInt;
+   }
+
+   public void setAnInt(Integer anInt)
+   {
+      this.anInt = anInt;
+   }
+
+   public short getAshort()
+   {
+      return ashort;
+   }
+
+   public void setAshort(short ashort)
+   {
+      this.ashort = ashort;
+   }
+
+   public Short getAShort()
+   {
+      return aShort;
+   }
+
+   public void setAShort(Short short1)
+   {
+      aShort = short1;
+   }
+
+   public String getAString()
+   {
+      return aString;
+   }
+
+   public void setAString(String string)
+   {
+      aString = string;
+      if ("ERRORINPROPERTY".equals(aString))
+         throw new Error("BROKEN PROPERTY");
+   }
+
+   public ObjectName getObjectName()
+   {
+      return objectName;
+   }
+
+   public void setObjectName(ObjectName objectName)
+   {
+      this.objectName = objectName;
+   }
+
+   public Collection getObjectNames()
+   {
+      return objectNames;
+   }
+
+   public void setObjectNames(Collection objectNames)
+   {
+      this.objectNames = objectNames;
+   }
+
+   public String echoReverse(String test)
+   {
+      int pos = test.length();
+      char[] tmp = new char[pos];
+      for(int n = 0; n < pos; n ++)
+         tmp[n] = test.charAt(pos-n-1);
+      return new String(tmp);
+   }
+   
+   public void touch()
+   {
+      this.touched = true;
+   }
+   
+   public boolean isTouched()
+   {
+      return touched;
+   }
+
+   public void setBrokenAttribute(String broken)
+   {
+      throw new Error("BROKEN");
+   }
+
+   public String getAttribute1()
+   {
+      return attribute1;
+   }
+
+   public void setAttribute1(String attribute1)
+   {
+      this.attribute1 = attribute1;
+   }
+
+   public String getAttribute2()
+   {
+      return attribute2;
+   }
+
+   public void setAttribute2(String attribute2)
+   {
+      this.attribute2 = attribute2;
+   }
+   
+   public void setBrokenObjectNameAttribute(ObjectName broken)
+   {
+      throw new Error("BROKEN");
+   }
+
+   public ObjectName getObjectNameAttribute1()
+   {
+      return objectNameAttribute1;
+   }
+
+   public void setObjectNameAttribute1(ObjectName objectNameAttribute1)
+   {
+      this.objectNameAttribute1 = objectNameAttribute1;
+   }
+
+   public ObjectName getObjectNameAttribute2()
+   {
+      return objectNameAttribute2;
+   }
+
+   public void setObjectNameAttribute2(ObjectName objectNameAttribute2)
+   {
+      this.objectNameAttribute2 = objectNameAttribute2;
+   }
+
+   public void setBrokenObjectNamesAttribute(Collection broken)
+   {
+      throw new Error("BROKEN");
+   }
+
+   public Collection getObjectNamesAttribute1()
+   {
+      return objectNamesAttribute1;
+   }
+   
+   public void setObjectNamesAttribute1(Collection objectNamesAttribute1)
+   {
+      this.objectNamesAttribute1 = objectNamesAttribute1;
+   }
+
+   public Collection getObjectNamesAttribute2()
+   {
+      return objectNamesAttribute2;
+   }
+
+   public void setObjectNamesAttribute2(Collection objectNamesAttribute2)
+   {
+      this.objectNamesAttribute2 = objectNamesAttribute2;
+   }
+
+   public String getReadOnly()
+   {
+      return "ReadOnly!";
+   }
+   
+   public void setReadOnly(String readOnly)
+   {
+      throw new NotImplementedException("THIS ATTRIBUTE SHOULD BE READ ONLY!");
+   }
+
+   public SimpleStandardMBeanInterface getProxy()
+   {
+      return proxy;
+   }
+
+   public void setProxy(SimpleStandardMBeanInterface proxy)
+   {
+      this.proxy = proxy;
+   }
+   
+   public void touchProxy()
+   {
+      proxy.touch();
+   }
+
+   public Element getElement()
+   {
+      return element;
+   }
+
+   public void setElement(Element element)
+   {
+      this.element = element;
+   }
+
+   public JavaBean getJavaBean()
+   {
+      return javaBean;
+   }
+
+   public void setJavaBean(JavaBean javaBean)
+   {
+      this.javaBean = javaBean;
+   }
+   
+   public Simple getSimple()
+   {
+      return simple;
+   }
+
+   public void setSimple(Simple simple)
+   {
+      this.simple = simple;
+   }
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/SimpleMBean.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/SimpleMBean.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/SimpleMBean.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,190 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.Collection;
+import java.util.Date;
+
+import javax.management.ObjectName;
+
+import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.system.ServiceMBean;
+import org.w3c.dom.Element;
+
+/**
+ * SimpleMBean.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public interface SimpleMBean extends ServiceMBean
+{
+   ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.test:type=test");
+   
+   Simple getInstance();
+
+   Object getObject();
+   
+   void setObject(Object object);
+   
+   BigDecimal getABigDecimal();
+
+   void setABigDecimal(BigDecimal bigDecimal);
+
+   BigInteger getABigInteger();
+
+   void setABigInteger(BigInteger bigInteger);
+
+   boolean isAboolean();
+
+   void setAboolean(boolean aboolean);
+
+   Boolean getABoolean();
+
+   void setABoolean(Boolean boolean1);
+
+   Number getANumber();
+
+   void setANumber(Number number);
+
+   byte getAbyte();
+
+   void setAbyte(byte abyte);
+
+   Byte getAByte();
+
+   void setAByte(Byte byte1);
+
+   char getAchar();
+
+   void setAchar(char achar);
+
+   Character getACharacter();
+
+   void setACharacter(Character character);
+
+   Date getADate();
+
+   void setADate(Date date);
+
+   double getAdouble();
+
+   void setAdouble(double adouble);
+
+   Double getADouble();
+
+   void setADouble(Double double1);
+
+   float getAfloat();
+
+   void setAfloat(float afloat);
+
+   Float getAFloat();
+
+   void setAFloat(Float float1);
+
+   long getAlong();
+
+   void setAlong(long along);
+
+   Long getALong();
+
+   void setALong(Long long1);
+
+   int getAnint();
+
+   void setAnint(int anint);
+
+   Integer getAnInt();
+
+   void setAnInt(Integer anInt);
+
+   short getAshort();
+
+   void setAshort(short ashort);
+
+   Short getAShort();
+
+   void setAShort(Short short1);
+
+   String getAString();
+
+   void setAString(String string);
+
+   ObjectName getObjectName();
+
+   void setObjectName(ObjectName objectName);
+
+   Collection getObjectNames();
+
+   void setObjectNames(Collection objectNames);
+   
+   void setBrokenAttribute(String broken);
+
+   String getAttribute1();
+
+   void setAttribute1(String attribute1);
+
+   String getAttribute2();
+
+   void setAttribute2(String attribute2);
+   
+   void setBrokenObjectNameAttribute(ObjectName broken);
+
+   ObjectName getObjectNameAttribute1();
+
+   void setObjectNameAttribute1(ObjectName objectNameAttribute1);
+
+   ObjectName getObjectNameAttribute2();
+
+   void setObjectNameAttribute2(ObjectName objectNameAttribute2);
+
+   void setBrokenObjectNamesAttribute(Collection broken);
+
+   Collection getObjectNamesAttribute1();
+   
+   void setObjectNamesAttribute1(Collection objectNamesAttribute1);
+
+   Collection getObjectNamesAttribute2();
+
+   void setObjectNamesAttribute2(Collection objectNamesAttribute2);
+   
+   String getReadOnly();
+
+   SimpleStandardMBeanInterface getProxy();
+
+   void setProxy(SimpleStandardMBeanInterface proxy);
+
+   Element getElement();
+
+   void setElement(Element element);
+
+   JavaBean getJavaBean();
+
+   void setJavaBean(JavaBean javaBean);
+
+   Simple getSimple();
+
+   void setSimple(Simple simple);
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/SimpleStandardMBeanInterface.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/SimpleStandardMBeanInterface.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/support/SimpleStandardMBeanInterface.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,37 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.support;
+
+/**
+ * TestStandardMBeanInterface.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public interface SimpleStandardMBeanInterface
+{
+   Simple getInstance();
+   
+   String echoReverse(String test);
+   
+   void touch();
+}

Added: branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/test/ControllerTestSuite.java
===================================================================
--- branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/test/ControllerTestSuite.java	2006-08-12 17:26:48 UTC (rev 55845)
+++ branches/Branch_4_0/system/src/tests/org/jboss/test/system/controller/test/ControllerTestSuite.java	2006-08-12 17:35:26 UTC (rev 55846)
@@ -0,0 +1,59 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.system.controller.basic.test.ControllerBasicTestSuite;
+import org.jboss.test.system.controller.configure.test.ControllerConfigureTestSuite;
+import org.jboss.test.system.controller.instantiate.test.ControllerInstantiateTestSuite;
+import org.jboss.test.system.controller.lifecycle.test.ControllerLifecycleTestSuite;
+import org.jboss.test.system.controller.parse.test.ControllerParseTestSuite;
+
+/**
+ * Controller Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class ControllerTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Controller Tests");
+
+      suite.addTest(ControllerBasicTestSuite.suite());
+      suite.addTest(ControllerParseTestSuite.suite());
+      suite.addTest(ControllerInstantiateTestSuite.suite());
+      suite.addTest(ControllerConfigureTestSuite.suite());
+      suite.addTest(ControllerLifecycleTestSuite.suite());
+      
+      return suite;
+   }
+}




More information about the jboss-cvs-commits mailing list