[Jboss-cvs] JBossAS SVN: r55444 - in branches/MC_VDF_WORK/system-jmx: . src/main/org/jboss/system src/main/org/jboss/system/metadata src/main/org/jboss/system/microcontainer 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/value src/resources/tests/org/jboss/test/system/controller/configure/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/configur! e/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/plain/test src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test src/resources/tests/org/jboss/test/system/controller/instantiate/test src/resources/tests/org/jboss/test/system/controller/lifecycle src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test src/resources/tests/org/jboss/test/system/controller/life! cycle/test src/resources/tests/org/jboss/test/system/controller/parse/test src/resources/tests/org/jboss/test/system/metadata src/resources/tests/org/jboss/test/system/metadata/attributes src/resources/tests/org/jboss/test/system/metadata/attributes/test src/resources/tests/org/jboss/test/system/metadata/basic/test src/resou

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Aug 9 12:58:23 EDT 2006


Author: adrian at jboss.org
Date: 2006-08-09 12:56:31 -0400 (Wed, 09 Aug 2006)
New Revision: 55444

Added:
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/AbstractMetaDataVisitorNode.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataVisitor.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataVisitorNode.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceValueContext.java
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenGetAttributes_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenSetAttribute_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyName_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyValue_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoName_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoValue_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNone_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOne_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTwo_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeBrokenSetAttribute_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeEmptyValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeInvalidValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNested_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNoValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNone_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOne_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributePatternValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTwo_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeUnknownElement_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeBrokenSetAttribute_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeEmptyValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeInvalidValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeMultiple_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNested_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNoValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNone_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOne_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributePatternValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTwo_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeUnknownElement_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/binding/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingError_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBinding_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/AttributeInfoTypeNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/BrokenSetAttribute_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyNested_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/Dependency_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/EmptyValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ExplicitProxyType_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ImplicitProxyType_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/InvalidValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoAttributeInfoType_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/PatternValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotInterface_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/UnknownElement_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/BrokenSetAttribute_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/EmptyValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/InvalidValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Nested_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/NoValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/None_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/One_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/PatternValue_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Two_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/UnknownElement_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/element/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/element/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/element/test/Element_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AbstractAttributeClass_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeClassNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeInfoTypeNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/EmptyPropertyName_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInConstructor_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInProperty_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ExplicitClass_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ImplicitClass_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoAttributeInfoType_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyEditor_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyName_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyValue_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/PropertyNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/AbstractClass_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/Basic_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ClassNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/EmptyPropertyName_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInConstructor_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInProperty_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyEditor_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyName_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyValue_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/PropertyNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/AttributeInfoTypeNotFound_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoAttributeInfoType_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoPropertyEditor_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/PropertyEditors_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeEmpty_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeMissing_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanGetMBeanInfoError_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostDeregisterError_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostRegisterError_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreDeregisterError_install.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreRegisterError_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_good.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeEmpty_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeMissing_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_good.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeEmpty_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeMissing_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgValueMissing_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeEmpty_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeMissing_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgValueMissing_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_good.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_good.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_good.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_good.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_good.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_good.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_good.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_bad.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_good.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeEmptyValue.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoReplace.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoTrim.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoValue.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNone.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeOne.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeTwo.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueDepends.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueDependsList.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueElement.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueJBXB.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueJavaBean.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueText.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNoName.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNoValue.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNone.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeOne.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeTwo.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeEmptyValue.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNoName.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNoValue.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNone.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeOne.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeTwo.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/Dependency.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/DependencyNested.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/DependencyProxyType.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListNested.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListNone.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListOne.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListTwo.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/element/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/element/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/element/test/Element.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/javabean/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/javabean/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/javabean/test/JavaBean.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/jbxb/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/jbxb/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/jbxb/test/JBXB.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/text/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/text/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/text/test/Text.xml
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/support/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/support/TestServiceBinding.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/ControllerConfigureValueTestSuite.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/AbstractRegistration.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/AbstractRegistrationMBean.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBean.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributeInfoTypeNotFound.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributes.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanNoAttributeInfoType.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBean.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorConstructor.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorProperty.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PostDeregisterError.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PostRegisterError.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PreDeregisterError.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PreRegisterError.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AbstractAttributeTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AttributeUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/AbstractValueTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/MetaDataValueTestSuite.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/depends/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/depends/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/depends/test/DependencyValueUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/dependslist/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/dependslist/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListValueUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/element/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/element/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/element/test/ElementValueUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/javabean/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/javabean/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/javabean/test/JavaBeanValueUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/jbxb/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/jbxb/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/jbxb/test/JBXBValueUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/text/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/text/test/
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/text/test/TextValueUnitTestCase.java
Removed:
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/test/
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/CodeEmpty.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/CodeMissing.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorTypeEmpty.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorTypeMissing.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorValueMissing.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanEmptyCode.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanNoCode.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorEmptyType.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorNoType.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorNoValue.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsEmpty.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsInvalidObjectName.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListElementEmpty.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListElementNoNestedMBean.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListInvalidObjectName.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeElementEmpty.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeElementNoNestedMBean.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeInvalidObjectName.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsNoNestedMBean.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeEmpty.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeInvalidObjectName.xml
   branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeNoNestedMBean.xml
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorTest.java
Modified:
   branches/MC_VDF_WORK/system-jmx/.classpath
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/ServiceCreator.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceAttributeMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceConstructorMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyListValueMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyValueMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceElementValueMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceJBXBValueMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceJavaBeanValueMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataParser.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceTextValueMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceValueMetaData.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/microcontainer/DescribeAction.java
   branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/microcontainer/ServiceControllerContext.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/AbstractSystemTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/AbstractControllerTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/OldControllerTestDelegate.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ControllerConfigureTestSuite.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsNewUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ControllerInstantiateTestSuite.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestDelegate.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/legacy/OldServiceConfigurator.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/ControllerLifecycleSeperatedTestSuite.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/ControllerLifecycleTestSuite.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseOldUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/Simple.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/SimpleMBean.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/SimpleStandardMBeanInterface.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/constructor/test/ConstructorUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/depends/test/DependsUnitTestCase.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/test/AbstractMetaDataTest.java
   branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/test/MetaDataTestSuite.java
Log:
[JBAS-1841] - Finish up the regression tests.
With the exception of trim/replace and XMBean.

Modified: branches/MC_VDF_WORK/system-jmx/.classpath
===================================================================
--- branches/MC_VDF_WORK/system-jmx/.classpath	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/.classpath	2006-08-09 16:56:31 UTC (rev 55444)
@@ -9,9 +9,9 @@
 	<classpathentry kind="lib" path="/thirdparty/dom4j/lib/dom4j.jar"/>
 	<classpathentry combineaccessrules="false" kind="src" path="/system"/>
 	<classpathentry kind="lib" path="/thirdparty/jboss/common/lib/jboss-common.jar"/>
-	<classpathentry sourcepath="C:/svn/JBossMC/workspace/container/src/main" kind="lib" path="/thirdparty/jboss/microcontainer/lib/jboss-container.jar"/>
+	<classpathentry kind="lib" path="/thirdparty/jboss/microcontainer/lib/jboss-container.jar"/>
 	<classpathentry kind="lib" path="/thirdparty/jboss/microcontainer/lib/jboss-dependency.jar"/>
-	<classpathentry sourcepath="C:/svn/JBossMC/workspace/kernel/src/main" kind="lib" path="/thirdparty/jboss/microcontainer/lib/jboss-microcontainer.jar"/>
+	<classpathentry kind="lib" path="/thirdparty/jboss/microcontainer/lib/jboss-microcontainer.jar"/>
 	<classpathentry kind="lib" path="/thirdparty/jboss/jbossxb/lib/jboss-xml-binding.jar"/>
 	<classpathentry kind="lib" path="/thirdparty/oswego-concurrent/lib/concurrent.jar"/>
 	<classpathentry kind="lib" path="/thirdparty/junit/lib/junit.jar"/>

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/ServiceConfigurator.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -50,6 +50,7 @@
 import org.jboss.system.metadata.ServiceAttributeMetaData;
 import org.jboss.system.metadata.ServiceMetaData;
 import org.jboss.system.metadata.ServiceMetaDataParser;
+import org.jboss.system.metadata.ServiceValueContext;
 import org.jboss.util.xml.DOMWriter;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
@@ -110,18 +111,24 @@
     */
    public static void configure(MBeanServer server, ObjectName objectName, ClassLoader cl, Collection<ServiceAttributeMetaData> attrs) throws Exception
    {
+      ServiceValueContext valueContext = new ServiceValueContext(server, cl);
+      
       HashMap<String, MBeanAttributeInfo> attributeMap = getAttributeMap(server, objectName);
 
       for (ServiceAttributeMetaData attribute : attrs)
       {
          String attributeName = attribute.getName();
+         if (attributeName == null || attributeName.length() == 0)
+            throw new DeploymentException("No or empty attribute name for " + objectName);
          MBeanAttributeInfo attributeInfo = attributeMap.get(attributeName);
          if (attributeInfo == null)
             throw new DeploymentException("No Attribute found with name: " + attributeName + " for " + objectName);
-         Object value = attribute.getValue(server, attributeInfo, cl);
-         log.debug(attributeName + " set to " + value + " in " + objectName);
+
+         valueContext.setAttributeInfo(attributeInfo);
+         Object value = attribute.getValue(valueContext);
          try
          {
+            log.debug(attributeName + " set to " + value + " in " + objectName);
             server.setAttribute(objectName, new Attribute(attributeName, value));
          }
          catch (Throwable t)

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/ServiceCreator.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/ServiceCreator.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/ServiceCreator.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -99,6 +99,10 @@
          }
          else
          {
+            String code = metaData.getCode();
+            if (code == null || code.trim().length() == 0)
+               throw new ConfigurationException("Missing or empty code for mbean " + objectName);
+            
             String xmbeanDD = metaData.getXMBeanDD();
             
             // Not an XMBean

Added: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/AbstractMetaDataVisitorNode.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/AbstractMetaDataVisitorNode.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/AbstractMetaDataVisitorNode.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,60 @@
+/*
+* 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.system.metadata;
+
+import java.util.Iterator;
+import java.util.Set;
+
+import org.jboss.util.collection.CollectionsFactory;
+
+/**
+ * AbstractMetaDataVisitorNode.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class AbstractMetaDataVisitorNode implements ServiceMetaDataVisitorNode
+{
+   public Iterator<? extends ServiceMetaDataVisitorNode> getChildren()
+   {
+      Set<ServiceMetaDataVisitorNode> children = CollectionsFactory.createLazySet();
+      addChildren(children);
+      if (children.size() == 0)
+         return null;
+      else
+         return children.iterator();
+   }
+
+   public void visit(ServiceMetaDataVisitor visitor)
+   {
+      visitor.visit(this);
+   }
+
+   /**
+    * Add to the children
+    * 
+    * @param children the children
+    */
+   protected void addChildren(Set<ServiceMetaDataVisitorNode> children)
+   {
+   }
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceAttributeMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceAttributeMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceAttributeMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,10 +21,9 @@
 */
 package org.jboss.system.metadata;
 
-import javax.management.MBeanAttributeInfo;
-import javax.management.MBeanServer;
+import java.util.Set;
 
-import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployment.DeploymentException;
 import org.jboss.util.UnreachableStatementException;
 
 /**
@@ -33,7 +32,7 @@
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
-public class ServiceAttributeMetaData
+public class ServiceAttributeMetaData extends AbstractMetaDataVisitorNode
 {
    /** The attribute name */
    private String name;
@@ -134,17 +133,17 @@
    /**
     * Get the value
     * 
-    * @param server the mbean server
-    * @param attributeInfo the attribute info
-    * @param cl the classloader
+    * @param valueContext the value context
     * @return the value
     * @throws Exception for any error
     */
-   public Object getValue(MBeanServer server, MBeanAttributeInfo attributeInfo, ClassLoader cl) throws Exception
+   public Object getValue(ServiceValueContext valueContext) throws Exception
    {
+      valueContext.setTrim(isTrim());
+      valueContext.setReplace(isReplace());
       try
       {
-         return value.getValue(server, attributeInfo, cl, isTrim(), isReplace());
+         return value.getValue(valueContext);
       }
       catch (Throwable t)
       {
@@ -152,4 +151,9 @@
          throw new UnreachableStatementException();
       }
    }
+
+   protected void addChildren(Set<ServiceMetaDataVisitorNode> children)
+   {
+      children.add(value);
+   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceConstructorMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceConstructorMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceConstructorMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -82,9 +82,15 @@
     * Get the signature.
     * 
     * @return the signature.
+    * @throws ConfigurationException if there is a problem with the signature
     */
-   public String[] getSignature()
+   public String[] getSignature() throws ConfigurationException
    {
+      for (String string : signature)
+      {
+         if (string == null || string.trim().length() == 0)
+            throw new ConfigurationException("Missing or empty 'type' attribute in constructor arg");
+      }
       return signature;
    }
 
@@ -111,10 +117,15 @@
    {
       if (params.length == 0)
          return EMPTY_PARAMETERS;
+
+      String[] signature = getSignature();
       
       Object[] result = new Object[params.length];
       for (int i = 0; i < result.length; ++i)
       {
+         if (params[i] == null)
+            throw new ConfigurationException("Missing 'value' attribute in constructor arg");
+         
          String value = StringPropertyReplacer.replaceProperties(params[i]); 
          Object realValue = value;
 

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyListValueMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyListValueMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyListValueMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,20 +21,27 @@
 */
 package org.jboss.system.metadata;
 
+import java.util.ArrayList;
 import java.util.List;
 
-import javax.management.MBeanAttributeInfo;
-import javax.management.MBeanServer;
+import javax.management.MalformedObjectNameException;
 import javax.management.ObjectName;
 
+import org.jboss.dependency.spi.ControllerState;
+import org.jboss.system.microcontainer.LifecycleDependencyItem;
+import org.jboss.system.microcontainer.ServiceControllerContext;
+
 /**
  * ServiceDependencyListValueMetaData.
  * 
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
-public class ServiceDependencyListValueMetaData implements ServiceValueMetaData
+public class ServiceDependencyListValueMetaData extends AbstractMetaDataVisitorNode implements ServiceValueMetaData
 {
+   /** The dependencies */
+   private List<String> dependencies;
+
    /** The object names */
    private List<ObjectName> objectNames;
    
@@ -48,20 +55,72 @@
    /**
     * Create a new ServiceDependencyListValueMetaData.
     * 
-    * @param objectNames the object names
+    * @param dependencies the dependencies
     */
-   public ServiceDependencyListValueMetaData(List<ObjectName> objectNames)
+   public ServiceDependencyListValueMetaData(List<String> dependencies)
    {
-      setObjectNames(objectNames);
+      setDependencies(dependencies);
    }
 
    /**
+    * Get the dependencies.
+    * 
+    * @return the dependencies.
+    */
+   public List<String> getDependencies()
+   {
+      if (dependencies == null)
+      {
+         List<String> result = new ArrayList<String>(objectNames.size());
+         for (ObjectName objectName : objectNames)
+            result.add(objectName.getCanonicalName());
+         return result;
+      }
+      return dependencies;
+   }
+
+   /**
+    * Set the dependencies.
+    * 
+    * @param dependencies the dependencies.
+    */
+   public void setDependencies(List<String> dependencies)
+   {
+      if (dependencies == null)
+         throw new IllegalArgumentException("Null dependencies");
+      for (String dependency: dependencies)
+      {
+         if (dependency == null)
+            throw new IllegalArgumentException("Null dependency in dependencies");
+      }
+      
+      this.dependencies = dependencies;
+      this.objectNames = null;
+   }
+
+   /**
     * Get the objectNames.
     * 
     * @return the objectNames.
+    * @throws MalformedObjectNameException if the list of string was set with an invalid object name
     */
-   public List<ObjectName> getObjectNames()
+   public List<ObjectName> getObjectNames() throws MalformedObjectNameException
    {
+      if (objectNames == null)
+      {
+         List<ObjectName> names = new ArrayList<ObjectName>(dependencies.size());
+         for (String dependency : dependencies)
+         {
+            if (dependency.trim().length() == 0)
+               throw new MalformedObjectNameException("Missing object name in depends-list");
+            ObjectName objectName = new ObjectName(dependency);
+            if (objectName.isPattern())
+               throw new MalformedObjectNameException("ObjectName patterns are not allowed in depends-list: " + dependency);
+            names.add(objectName);
+         }
+         objectNames = names;
+         dependencies = null;
+      }
       return objectNames;
    }
 
@@ -74,11 +133,40 @@
    {
       if (objectNames == null)
          throw new IllegalArgumentException("Null objectNames");
+      for (ObjectName objectName: objectNames)
+      {
+         if (objectName == null)
+            throw new IllegalArgumentException("Null object name in objectNames");
+      }
+
       this.objectNames = objectNames;
    }
 
-   public Object getValue(MBeanServer server, MBeanAttributeInfo attributeInfo, ClassLoader cl, boolean trim, boolean replace) throws Exception
+   public Object getValue(ServiceValueContext valueContext) throws Exception
    {
-      return objectNames;
+      return getObjectNames();
    }
+
+   public void visit(ServiceMetaDataVisitor visitor)
+   {
+      ServiceControllerContext context = visitor.getControllerContext();
+      Object name = context.getName();
+      List<String> list = dependencies;
+      try
+      {
+         List<ObjectName> names = getObjectNames();
+         list = new ArrayList<String>(names.size());
+         for (ObjectName objectName : names)
+            list.add(objectName.getCanonicalName());
+      }
+      catch (MalformedObjectNameException ignored)
+      {
+      }
+      for (String other : list)
+      {
+         visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CREATE));
+         visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.START));
+      }
+      visitor.visit(this);
+   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,26 +21,36 @@
 */
 package org.jboss.system.metadata;
 
+import javax.management.MalformedObjectNameException;
 import javax.management.ObjectName;
 
+import org.jboss.dependency.spi.ControllerState;
+import org.jboss.system.microcontainer.LifecycleDependencyItem;
+import org.jboss.system.microcontainer.ServiceControllerContext;
+
 /**
  * ServiceDependencyMetaData.
  * 
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
-public class ServiceDependencyMetaData
+public class ServiceDependencyMetaData extends AbstractMetaDataVisitorNode
 {
    /** The dependency */
-   private ObjectName iDependOn;
+   private String iDependOn;
 
+   /** The dependency */
+   private ObjectName iDependOnObjectName;
+
    /**
     * Get the iDependOn.
     * 
     * @return the iDependOn.
     */
-   public ObjectName getIDependOn()
+   public String getIDependOn()
    {
+      if (iDependOn == null)
+         return iDependOnObjectName.getCanonicalName();
       return iDependOn;
    }
 
@@ -49,10 +59,61 @@
     * 
     * @param iDependOn the iDependOn.
     */
-   public void setIDependOn(ObjectName iDependOn)
+   public void setIDependOn(String iDependOn)
    {
       if (iDependOn == null)
          throw new IllegalArgumentException("Null iDependOn");
       this.iDependOn = iDependOn;
-   } 
+      this.iDependOnObjectName = null;
+   }
+
+   /**
+    * Get the iDependOn.
+    * 
+    * @return the iDependOn.
+    * @throws MalformedObjectNameException if the string was set with an invalid object name
+    */
+   public ObjectName getIDependOnObjectName() throws MalformedObjectNameException
+   {
+      if (iDependOnObjectName == null)
+      {
+         if (iDependOn.trim().length() == 0)
+            throw new MalformedObjectNameException("Missing object name in depends");
+         ObjectName objectName = new ObjectName(iDependOn);
+         if (objectName.isPattern())
+            throw new MalformedObjectNameException("ObjectName patterns are not allowed in depends: " + iDependOn);
+         iDependOnObjectName = objectName;
+         iDependOn = null;
+      }
+      return iDependOnObjectName;
+   }
+
+   /**
+    * Set the iDependOn.
+    * 
+    * @param iDependOn the iDependOn.
+    */
+   public void setIDependOnObjectName(ObjectName iDependOn)
+   {
+      if (iDependOn == null)
+         throw new IllegalArgumentException("Null iDependOn");
+      this.iDependOnObjectName = iDependOn;
+   }
+
+   public void visit(ServiceMetaDataVisitor visitor)
+   {
+      ServiceControllerContext context = visitor.getControllerContext();
+      Object name = context.getName();
+      Object other = iDependOn;
+      try
+      {
+         other = getIDependOnObjectName().getCanonicalName();
+      }
+      catch (MalformedObjectNameException ignored)
+      {
+      }
+      visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CREATE));
+      visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.START));
+      visitor.visit(this);
+   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyValueMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyValueMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceDependencyValueMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -23,9 +23,14 @@
 
 import javax.management.MBeanAttributeInfo;
 import javax.management.MBeanServer;
+import javax.management.MalformedObjectNameException;
 import javax.management.ObjectName;
 
+import org.jboss.dependency.spi.ControllerState;
+import org.jboss.deployment.DeploymentException;
 import org.jboss.mx.util.MBeanProxyExt;
+import org.jboss.system.microcontainer.LifecycleDependencyItem;
+import org.jboss.system.microcontainer.ServiceControllerContext;
 
 /**
  * ServiceDependencyValueMetaData.
@@ -40,9 +45,12 @@
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
-public class ServiceDependencyValueMetaData implements ServiceValueMetaData
+public class ServiceDependencyValueMetaData extends AbstractMetaDataVisitorNode implements ServiceValueMetaData
 {
-   /** The object name */
+   /** The dependency */
+   private String dependency;
+
+   /** The dependency */
    private ObjectName objectName;
 
    /** The proxy type */
@@ -58,39 +66,75 @@
    /**
     * Create a new ServiceDependencyValueMetaData.
     * 
-    * @param objectName the object name
+    * @param dependency the dependents object name
     */
-   public ServiceDependencyValueMetaData(ObjectName objectName)
+   public ServiceDependencyValueMetaData(String dependency)
    {
-      setObjectName(objectName);
+      setDependency(dependency);
    }
    
    /**
     * Create a new ServiceDependencyValueMetaData.
     * 
-    * @param objectName the object name
+    * @param dependency the dependents object name
     * @param proxyType the proxy type
     */
-   public ServiceDependencyValueMetaData(ObjectName objectName, String proxyType)
+   public ServiceDependencyValueMetaData(String dependency, String proxyType)
    {
-      setObjectName(objectName);
+      setDependency(dependency);
       setProxyType(proxyType);
    }
 
    /**
-    * Get the objectName.
+    * Get the dependency.
     * 
-    * @return the objectName.
+    * @return the dependency.
     */
-   public ObjectName getObjectName()
+   public String getDependency()
    {
+      if (dependency == null)
+         return objectName.getCanonicalName();
+      return dependency;
+   }
+
+   /**
+    * Set the dependency.
+    * 
+    * @param dependency the dependency.
+    */
+   public void setDependency(String dependency)
+   {
+      if (dependency == null)
+         throw new IllegalArgumentException("Null dependency");
+      this.dependency = dependency;
+      this.objectName = null;
+   }
+
+   /**
+    * Get the object name.
+    * 
+    * @return the object name.
+    * @throws MalformedObjectNameException if the string was set with an invalid object name
+    */
+   public ObjectName getObjectName() throws MalformedObjectNameException
+   {
+      if (objectName == null)
+      {
+         if (dependency.trim().length() == 0)
+            throw new MalformedObjectNameException("Missing object name in depends");
+         ObjectName name = new ObjectName(dependency);
+         if (name.isPattern())
+            throw new MalformedObjectNameException("ObjectName patterns are not allowed in depends: " + objectName);
+         objectName = new ObjectName(dependency);
+         dependency = null;
+      }
       return objectName;
    }
 
    /**
-    * Set the objectName.
+    * Set the object name
     * 
-    * @param objectName the objectName.
+    * @param objectName the object name
     */
    public void setObjectName(ObjectName objectName)
    {
@@ -119,12 +163,22 @@
       this.proxyType = proxyType;
    }
 
-   public Object getValue(MBeanServer server, MBeanAttributeInfo attributeInfo, ClassLoader cl, boolean trim, boolean replace) throws Exception
+   public Object getValue(ServiceValueContext valueContext) throws Exception
    {
+      MBeanAttributeInfo attributeInfo = valueContext.getAttributeInfo();
+      ClassLoader cl = valueContext.getClassloader();
+      MBeanServer server = valueContext.getServer();
+
+      ObjectName objectName = getObjectName();
+      
       if (proxyType != null)
       {
          if (proxyType.equals("attribute"))
+         {
             proxyType = attributeInfo.getType();
+            if (proxyType == null)
+               throw new DeploymentException("AttributeInfo for " + attributeInfo.getName() + " has no type");
+         }
 
          Class proxyClass = cl.loadClass(proxyType);
          return MBeanProxyExt.create(proxyClass, objectName, server, true);
@@ -132,4 +186,21 @@
       
       return objectName;
    }
+
+   public void visit(ServiceMetaDataVisitor visitor)
+   {
+      ServiceControllerContext context = visitor.getControllerContext();
+      Object name = context.getName();
+      Object other = dependency;
+      try
+      {
+         other = getObjectName().getCanonicalName();
+      }
+      catch (MalformedObjectNameException ignored)
+      {
+      }
+      visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CREATE));
+      visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.START));
+      visitor.visit(this);
+   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceElementValueMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceElementValueMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceElementValueMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -24,9 +24,6 @@
 import java.beans.PropertyEditor;
 import java.beans.PropertyEditorManager;
 
-import javax.management.MBeanAttributeInfo;
-import javax.management.MBeanServer;
-
 import org.jboss.logging.Logger;
 import org.jboss.util.StringPropertyReplacer;
 import org.w3c.dom.Element;
@@ -44,7 +41,7 @@
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
-public class ServiceElementValueMetaData implements ServiceValueMetaData
+public class ServiceElementValueMetaData extends AbstractMetaDataVisitorNode implements ServiceValueMetaData
 {
    /** The log */
    private static final Logger log = Logger.getLogger(ServiceElementValueMetaData.class); 
@@ -91,10 +88,10 @@
       this.element = element;
    }
 
-   public Object getValue(MBeanServer server, MBeanAttributeInfo attributeInfo, ClassLoader cl, boolean trim, boolean replace) throws Exception
+   public Object getValue(ServiceValueContext valueContext) throws Exception
    {         
       // Replace any ${x} references in the element text
-      if (replace)
+      if (valueContext.isReplace())
       {
          PropertyEditor editor = PropertyEditorManager.findEditor(Element.class);
          if (editor == null)

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceJBXBValueMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceJBXBValueMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceJBXBValueMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,24 +21,14 @@
 */
 package org.jboss.system.metadata;
 
-import java.io.IOException;
 import java.io.StringReader;
-import java.io.StringWriter;
 
-import javax.management.MBeanAttributeInfo;
-import javax.management.MBeanServer;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerException;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
-
+import org.jboss.system.ServiceConfigurator;
 import org.jboss.xb.binding.Unmarshaller;
 import org.jboss.xb.binding.UnmarshallerFactory;
-import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
+import org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver;
+import org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory;
 import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
 
 /**
  * ServiceJBXBValueMetaData.
@@ -73,53 +63,16 @@
       super(element);
    }
 
-   public Object getValue(MBeanServer server, MBeanAttributeInfo attributeInfo, ClassLoader cl, boolean trim, boolean replace) throws Exception
+   public Object getValue(ServiceValueContext valueContext) throws Exception
    {
       // Get the attribute element content in a parsable form
-      StringBuffer buffer = getElementContent(getElement());
+      StringBuffer buffer = ServiceConfigurator.getElementContent(getElement());
 
       // Parse the attribute element content
-      DefaultSchemaResolver resolver = new DefaultSchemaResolver();
+      SchemaBindingResolver resolver = SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
       Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
       StringReader reader = new StringReader(buffer.toString());
       Object bean = unmarshaller.unmarshal(reader, resolver);
       return bean;
    }
-
-   /**
-    * A utility method that transforms the contents of the argument element into
-    * a StringBuffer representation that can be reparsed.
-    * 
-    * [FIXME] This is not a general DOMUtils method because of its funny contract. It does not 
-    * support multiple child elements neither can it deal with text content.
-    * 
-    * @param element - the parent dom element whose contents are to be extracted as an xml document string. 
-    * @return the xml document string.
-    */
-   private static StringBuffer getElementContent(Element element) throws IOException, TransformerException
-   {
-      NodeList children = element.getChildNodes();
-      Element content = null;
-      for (int n = 0; n < children.getLength(); n++)
-      {
-         Node node = children.item(n);
-         if (node.getNodeType() == Node.ELEMENT_NODE)
-         {
-            content = (Element)node;
-            break;
-         }
-      }
-      if (content == null)
-         return null;
-
-      // Get a parsable representation of this elements content
-      DOMSource source = new DOMSource(content);
-      TransformerFactory tFactory = TransformerFactory.newInstance();
-      Transformer transformer = tFactory.newTransformer();
-      StringWriter sw = new StringWriter();
-      StreamResult result = new StreamResult(sw);
-      transformer.transform(source, result);
-      sw.close();
-      return sw.getBuffer();
-   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceJavaBeanValueMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceJavaBeanValueMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceJavaBeanValueMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -24,8 +24,8 @@
 import java.util.Properties;
 
 import javax.management.MBeanAttributeInfo;
-import javax.management.MBeanServer;
 
+import org.jboss.deployment.DeploymentException;
 import org.jboss.util.propertyeditor.PropertyEditors;
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
@@ -64,13 +64,20 @@
       super(element);
    }
 
-   public Object getValue(MBeanServer server, MBeanAttributeInfo attributeInfo, ClassLoader cl, boolean trim, boolean replace) throws Exception
+   public Object getValue(ServiceValueContext valueContext) throws Exception
    {
+      MBeanAttributeInfo attributeInfo = valueContext.getAttributeInfo();
+      ClassLoader cl = valueContext.getClassloader();
+      boolean trim = valueContext.isTrim();
+      boolean replace = valueContext.isReplace();
+      
       // Extract the property elements
       Element element = getElement();
       String attributeClassName = element.getAttribute("attributeClass");
       if( attributeClassName == null || attributeClassName.length() == 0 )
          attributeClassName = attributeInfo.getType();
+      if (attributeClassName == null)
+         throw new DeploymentException("AttributeInfo for " + attributeInfo.getName() + " has no type");
       Class attributeClass = cl.loadClass(attributeClassName);
       // Create the bean instance
       Object bean = attributeClass.newInstance();

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -23,6 +23,7 @@
 
 import java.util.Collections;
 import java.util.List;
+import java.util.Set;
 
 import javax.management.ObjectName;
 
@@ -34,7 +35,7 @@
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
-public class ServiceMetaData
+public class ServiceMetaData extends AbstractMetaDataVisitorNode
 {
    /** The default XMBean class, when one is not specified */
    public static final String XMBEAN_CODE = "org.jboss.mx.modelmbean.XMBean";
@@ -278,4 +279,10 @@
    {
       this.classLoaderName = classLoaderName;
    }
+
+   protected void addChildren(Set<ServiceMetaDataVisitorNode> children)
+   {
+      children.addAll(attributes);
+      children.addAll(dependencies);
+   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataParser.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataParser.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataParser.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -27,7 +27,7 @@
 import javax.management.ObjectName;
 
 import org.jboss.deployment.DeploymentException;
-import org.jboss.system.ConfigurationException;
+import org.jboss.logging.Logger;
 import org.jboss.util.StringPropertyReplacer;
 import org.w3c.dom.Attr;
 import org.w3c.dom.Element;
@@ -50,6 +50,9 @@
  */
 public class ServiceMetaDataParser
 {
+   /** The log */
+   private static final Logger log = Logger.getLogger(ServiceMetaDataParser.class);
+   
    /** The element config */
    private Element config;
    
@@ -162,7 +165,7 @@
          {
             String attributeName = element.getAttribute("name");
             if (attributeName == null)
-               throw new DeploymentException("Null attribute name for " + mbeanName);
+               throw new DeploymentException("No attribute name for " + mbeanName);
             boolean trim = true;
             String replaceAttr = element.getAttribute("replace");
             if (replaceAttr.length() > 0)
@@ -210,9 +213,6 @@
          }
          else if (element.getTagName().equals("depends"))
          {
-            if (element.hasChildNodes() == false)
-               throw new DeploymentException("No ObjectName supplied for depends in " + mbeanName);
-
             String mbeanRefName = element.getAttribute("optional-attribute-name");
             if ("".equals(mbeanRefName))
                mbeanRefName = null;
@@ -226,25 +226,22 @@
                proxyType = StringPropertyReplacer.replaceProperties(proxyType);
 
             // Get the mbeanRef value
-            ObjectName dependsObjectName = processDependency(mbeanName, element, services, replace);
+            String dependsObjectName = processDependency(mbeanName, mbeanRefName, element, services, replace);
 
             if (mbeanRefName != null)
             {
-               if (proxyType != null)
-               {
-                  if (mbeanRefName == null)
-                     throw new DeploymentException("You cannot use a proxy-type without an optional-attribute-name for " + mbeanName);
-               }
                ServiceValueMetaData value = new ServiceDependencyValueMetaData(dependsObjectName, proxyType);
                ServiceAttributeMetaData attribute = new ServiceAttributeMetaData();
                attribute.setName(mbeanRefName);
                attribute.setValue(value);
                attributes.add(attribute);
             }
-            
-            ServiceDependencyMetaData dependency = new ServiceDependencyMetaData();
-            dependency.setIDependOn(dependsObjectName);
-            dependencies.add(dependency);
+            else
+            {
+               ServiceDependencyMetaData dependency = new ServiceDependencyMetaData();
+               dependency.setIDependOn(dependsObjectName);
+               dependencies.add(dependency);
+            }
          }
          else if (element.getTagName().equals("depends-list"))
          {
@@ -253,7 +250,7 @@
                dependsListName = null;
 
             NodeList dependsList = element.getChildNodes();
-            ArrayList<ObjectName> dependsListNames = new ArrayList<ObjectName>();
+            ArrayList<String> dependsListNames = new ArrayList<String>();
             for (int l = 0; l < dependsList.getLength(); ++l)
             {
                if (dependsList.item(l).getNodeType() != Node.ELEMENT_NODE)
@@ -262,17 +259,17 @@
                Element dependsElement = (Element) dependsList.item(l);
                if (dependsElement.getTagName().equals("depends-list-element"))
                {
-                  if (dependsElement.hasChildNodes() == false)
-                     throw new DeploymentException("Empty depends-list-element for " + mbeanName);
-
                   // Get the depends value
-                  ObjectName dependsObjectName = processDependency(mbeanName, dependsElement, services, replace);
+                  String dependsObjectName = processDependency(mbeanName, dependsListName, dependsElement, services, replace);
                   if (dependsListNames.contains(dependsObjectName) == false)
                      dependsListNames.add(dependsObjectName);
 
-                  ServiceDependencyMetaData dependency = new ServiceDependencyMetaData();
-                  dependency.setIDependOn(dependsObjectName);
-                  dependencies.add(dependency);
+                  if (dependsListName == null)
+                  {
+                     ServiceDependencyMetaData dependency = new ServiceDependencyMetaData();
+                     dependency.setIDependOn(dependsObjectName);
+                     dependencies.add(dependency);
+                  }
                }
             }
             if (dependsListName != null)
@@ -324,12 +321,7 @@
     */
    private String parseCode(final ObjectName name, final Element mbeanElement) throws Exception
    {
-      String code = mbeanElement.getAttribute("code");
-
-      if (code == null || code.trim().length() == 0)
-         throw new ConfigurationException("Missing or empty 'code' attribute for mbean " + name);
-
-      return code;
+      return mbeanElement.getAttribute("code");
    }
 
    /**
@@ -367,14 +359,10 @@
             Attr attr = arg.getAttributeNode("type");
             if (attr != null)
                typeName = attr.getValue();
-            if (typeName == null || typeName.trim().length() == 0)
-               throw new ConfigurationException("Missing or empty 'type' attribute in constructor arg for " + name);
             String value = null;
             attr = arg.getAttributeNode("value");
             if (attr != null)
                value = attr.getValue();
-            if (value == null)
-               throw new ConfigurationException("Missing 'value' attribute in constructor arg for " + name);
             signature[j] = typeName;
             params[j] = value;
          }
@@ -457,15 +445,16 @@
     * Process a dependency
     * 
     * @param mbeanName the surronding mbean
+    * @param attributeName the attribute name
     * @param element the element
     * @param services the list of services
     * @param replace whether to replace properties
     * @return the dependent object name
     * @throws Exception for any error
     */
-   private ObjectName processDependency(ObjectName mbeanName, Element element, List<ServiceMetaData> services, boolean replace) throws Exception
+   private String processDependency(ObjectName mbeanName, String attributeName, Element element, List<ServiceMetaData> services, boolean replace) throws Exception
    {
-      ObjectName dependsObjectName = null;
+      String dependsObjectName = null;
       
       NodeList nl = element.getChildNodes();
       for (int i = 0; i < nl.getLength(); i++)
@@ -474,31 +463,24 @@
          if (childNode.getNodeType() == Node.ELEMENT_NODE)
          {
             Element child = (Element) childNode;
-            if (child.getTagName().equals("mbean"))
+            String tagName = child.getTagName();
+            if ("mbean".equals(tagName))
             {
-               dependsObjectName = internalParse(services, child, replace);
+               dependsObjectName = internalParse(services, child, replace).getCanonicalName();
                break;
             }
             else
-               throw new DeploymentException("Non mbean child element in depends tag for " + mbeanName);
+            {
+               if (attributeName != null)
+                  log.warn("Non mbean child <" + tagName + "/> in depends tag for " + mbeanName + " attribute: " + attributeName);
+               else
+                  log.warn("Non mbean child <" + tagName + "/> in depends tag for " + mbeanName);
+            }
          }
       }
 
       if (dependsObjectName == null)
-      {
-         String name = getElementTextContent(element, true, replace);
-         try
-         {
-            dependsObjectName = new ObjectName(name);
-         }
-         catch (Throwable t)
-         {
-            throw new DeploymentException("Invalid object name '" + name + "' in depends tag for " + mbeanName, t);
-         }
-      }
-      
-      if (dependsObjectName == null)
-         throw new DeploymentException("No object name found in depends tag for " + mbeanName);
+         dependsObjectName = getElementTextContent(element, true, replace);
 
       return dependsObjectName;
    }

Added: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataVisitor.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataVisitor.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataVisitor.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.system.metadata;
+
+import org.jboss.dependency.spi.ControllerState;
+import org.jboss.dependency.spi.DependencyItem;
+import org.jboss.system.microcontainer.ServiceControllerContext;
+
+/**
+ * ServiceMetaDataVisitor.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public interface ServiceMetaDataVisitor
+{
+   /**
+    * Get the controller context
+    * 
+    * @return the context
+    */
+   ServiceControllerContext getControllerContext();
+
+   /**
+    * Get the context state
+    * 
+    * @return the context state
+    */
+   ControllerState getContextState();
+
+   /**
+    * Set the context state
+    * 
+    * @param contextState the context state
+    */
+   void setContextState(ControllerState contextState);
+
+   /**
+    * Add a dependency
+    * 
+    * @param dependency the dependency
+    */
+   void addDependency(DependencyItem dependency);
+   
+   /**
+    * Visit the node
+    * 
+    * @param node the node
+    */
+   void visit(ServiceMetaDataVisitorNode node);
+}

Added: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataVisitorNode.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataVisitorNode.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceMetaDataVisitorNode.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,47 @@
+/*
+* 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.system.metadata;
+
+import java.util.Iterator;
+
+/**
+ * ServiceMetaDataVisitorNode.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public interface ServiceMetaDataVisitorNode
+{
+   /**
+    * Visit the node
+    * 
+    * @param vistor the visitor
+    */
+   public void visit(ServiceMetaDataVisitor vistor);
+   
+   /**
+    * Return the child nodes
+    * 
+    * @return Iterator<MetaDataVisitorNode> or null if there aren't any
+    */
+   public Iterator<? extends ServiceMetaDataVisitorNode> getChildren();
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceTextValueMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceTextValueMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceTextValueMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -25,9 +25,8 @@
 import java.beans.PropertyEditorManager;
 
 import javax.management.MBeanAttributeInfo;
-import javax.management.MBeanServer;
 
-import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployment.DeploymentException;
 import org.jboss.util.Classes;
 import org.jboss.util.propertyeditor.PropertyEditors;
 
@@ -44,7 +43,7 @@
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
-public class ServiceTextValueMetaData implements ServiceValueMetaData
+public class ServiceTextValueMetaData extends AbstractMetaDataVisitorNode implements ServiceValueMetaData
 {
    static
    {
@@ -92,9 +91,14 @@
       this.text = text;
    }
 
-   public Object getValue(MBeanServer server, MBeanAttributeInfo attributeInfo, ClassLoader cl, boolean trim, boolean replace) throws Exception
+   public Object getValue(ServiceValueContext valueContext) throws Exception
    {
+      MBeanAttributeInfo attributeInfo = valueContext.getAttributeInfo();
+      ClassLoader cl = valueContext.getClassloader();
+
       String typeName = attributeInfo.getType();
+      if (typeName == null)
+         throw new DeploymentException("AttributeInfo for " + attributeInfo.getName() + " has no type");
 
       // see if it is a primitive type first
       Class typeClass = Classes.getPrimitiveTypeForName(typeName);

Added: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceValueContext.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceValueContext.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceValueContext.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,182 @@
+/*
+* 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.system.metadata;
+
+import javax.management.MBeanAttributeInfo;
+import javax.management.MBeanServer;
+
+/**
+ * ServiceValueContext.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ServiceValueContext
+{
+   /** The MBeanServer */ 
+   private MBeanServer server;
+   
+   /** The MBeanAttributeInfo */
+   private MBeanAttributeInfo attributeInfo;
+   
+   /** The ClassLoader */
+   private ClassLoader classloader;
+   
+   /** Whether to trim */
+   private boolean trim;
+   
+   /** Whether to replace */
+   private boolean replace;
+
+   /**
+    * Create a new ServiceValueContext.
+    */
+   public ServiceValueContext()
+   {
+   }
+
+   /**
+    * Create a new ServiceValueContext.
+    * 
+    * @param server the server
+    * @param classloader the classloader
+    */
+   public ServiceValueContext(MBeanServer server, ClassLoader classloader)
+   {
+      this.server = server;
+      this.classloader = classloader;
+   }
+
+   /**
+    * Create a new ServiceValueContext.
+    * 
+    * @param server the server
+    * @param attributeInfo the attribute info
+    * @param classloader the classloader
+    */
+   public ServiceValueContext(MBeanServer server, MBeanAttributeInfo attributeInfo, ClassLoader classloader)
+   {
+      this.server = server;
+      this.attributeInfo = attributeInfo;
+      this.classloader = classloader;
+   }
+
+   /**
+    * Get the attributeInfo.
+    * 
+    * @return the attributeInfo.
+    */
+   public MBeanAttributeInfo getAttributeInfo()
+   {
+      return attributeInfo;
+   }
+
+   /**
+    * Set the attributeInfo.
+    * 
+    * @param attributeInfo the attributeInfo.
+    */
+   public void setAttributeInfo(MBeanAttributeInfo attributeInfo)
+   {
+      this.attributeInfo = attributeInfo;
+   }
+
+   /**
+    * Get the classloader.
+    * 
+    * @return the classloader.
+    */
+   public ClassLoader getClassloader()
+   {
+      return classloader;
+   }
+
+   /**
+    * Set the classloader.
+    * 
+    * @param classloader the classloader.
+    */
+   public void setClassloader(ClassLoader classloader)
+   {
+      this.classloader = classloader;
+   }
+
+   /**
+    * Get the replace.
+    * 
+    * @return the replace.
+    */
+   public boolean isReplace()
+   {
+      return replace;
+   }
+
+   /**
+    * Set the replace.
+    * 
+    * @param replace the replace.
+    */
+   public void setReplace(boolean replace)
+   {
+      this.replace = replace;
+   }
+
+   /**
+    * Get the server.
+    * 
+    * @return the server.
+    */
+   public MBeanServer getServer()
+   {
+      return server;
+   }
+
+   /**
+    * Set the server.
+    * 
+    * @param server the server.
+    */
+   public void setServer(MBeanServer server)
+   {
+      this.server = server;
+   }
+
+   /**
+    * Get the trim.
+    * 
+    * @return the trim.
+    */
+   public boolean isTrim()
+   {
+      return trim;
+   }
+
+   /**
+    * Set the trim.
+    * 
+    * @param trim the trim.
+    */
+   public void setTrim(boolean trim)
+   {
+      this.trim = trim;
+   }
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceValueMetaData.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceValueMetaData.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/metadata/ServiceValueMetaData.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,27 +21,20 @@
 */
 package org.jboss.system.metadata;
 
-import javax.management.MBeanAttributeInfo;
-import javax.management.MBeanServer;
-
 /**
  * ServiceValueMetaData.
  * 
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
-public interface ServiceValueMetaData
+public interface ServiceValueMetaData extends ServiceMetaDataVisitorNode
 {
    /**
     * Get the value
     * 
-    * @param server the mbean server
-    * @param attributeInfo the mbean attribute info
-    * @param cl the class loader
-    * @param trim whether to trim
-    * @param replace whether to replace
+    * @param valueContext the value context
     * @return the value
     * @throws Exception for any error
     */
-   Object getValue(MBeanServer server, MBeanAttributeInfo attributeInfo, ClassLoader cl, boolean trim, boolean replace) throws Exception;
+   Object getValue(ServiceValueContext valueContext) throws Exception;
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/microcontainer/DescribeAction.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/microcontainer/DescribeAction.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/microcontainer/DescribeAction.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,19 +21,9 @@
 */
 package org.jboss.system.microcontainer;
 
-import java.util.List;
-
-import javax.management.ObjectName;
-
-import org.jboss.dependency.spi.ControllerState;
-import org.jboss.dependency.spi.DependencyInfo;
-import org.jboss.system.metadata.ServiceDependencyMetaData;
-import org.jboss.system.metadata.ServiceMetaData;
-
 /**
  * DescribeAction.
  * 
- * @todo use a visitor on the metadata like the pojo version
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
@@ -41,20 +31,6 @@
 {
    public void installAction(ServiceControllerContext context) throws Throwable
    {
-      // Add the lifecycle dependencies
-      ServiceMetaData metaData = context.getServiceMetaData();
-      if (metaData != null)
-      {
-         Object name = context.getName();
-         DependencyInfo info = context.getDependencyInfo();
-         List<ServiceDependencyMetaData> dependencies = metaData.getDependencies();
-         for (ServiceDependencyMetaData dependency : dependencies)
-         {
-            ObjectName iDependOn = dependency.getIDependOn();
-            info.addIDependOn(new LifecycleDependencyItem(name, iDependOn.getCanonicalName(), ControllerState.CREATE));
-            info.addIDependOn(new LifecycleDependencyItem(name, iDependOn.getCanonicalName(), ControllerState.START));
-         }
-      }
    }
 
    public void uninstallAction(ServiceControllerContext context)

Modified: branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/microcontainer/ServiceControllerContext.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/microcontainer/ServiceControllerContext.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/main/org/jboss/system/microcontainer/ServiceControllerContext.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,6 +21,10 @@
 */
 package org.jboss.system.microcontainer;
 
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+import java.util.Iterator;
+
 import javax.management.MBeanServer;
 import javax.management.ObjectName;
 
@@ -28,10 +32,13 @@
 import org.jboss.dependency.spi.Controller;
 import org.jboss.dependency.spi.ControllerMode;
 import org.jboss.dependency.spi.ControllerState;
+import org.jboss.dependency.spi.DependencyItem;
 import org.jboss.system.Service;
 import org.jboss.system.ServiceContext;
 import org.jboss.system.ServiceController;
 import org.jboss.system.metadata.ServiceMetaData;
+import org.jboss.system.metadata.ServiceMetaDataVisitor;
+import org.jboss.system.metadata.ServiceMetaDataVisitorNode;
 
 /**
  * ServiceControllerContext.
@@ -201,8 +208,91 @@
    {
       super.setController(controller);
       if (controller != null)
+      {
+         preprocessMetaData();
          serviceContext.state = ServiceContext.INSTALLED;
+      }
       else
          serviceContext.state = ServiceContext.NOTYETINSTALLED;
    }
+
+   /**
+    * Preprocess the metadata for this context
+    */
+   protected void preprocessMetaData()
+   {
+      if (serviceMetaData == null)
+         return;
+      PreprocessMetaDataVisitor visitor = new PreprocessMetaDataVisitor();
+      AccessController.doPrivileged(visitor);
+   }
+   
+   /**
+    * A visitor for the metadata that looks for dependencies.
+    */
+   protected class PreprocessMetaDataVisitor implements ServiceMetaDataVisitor, PrivilegedAction<Object>
+   {
+      /** The current context for when the dependencies are required */ 
+      private ControllerState contextState = ControllerState.INSTANTIATED;
+      
+      /**
+       * Visit the bean metadata node, this is the starting point
+       */
+      public Object run()
+      {
+         serviceMetaData.visit(this);
+         return null;
+      }
+      
+      /**
+       * Visit a node
+       * 
+       * @param node the node
+       */
+      public void visit(ServiceMetaDataVisitorNode node)
+      {
+         boolean trace = log.isTraceEnabled();
+         if (trace)
+            log.trace("Visit node " + node);
+         
+         // Visit the children of this node
+         Iterator<? extends ServiceMetaDataVisitorNode> children = node.getChildren();
+         if (children != null)
+         {
+            ControllerState restoreState = contextState;
+            while (children.hasNext())
+            {
+               ServiceMetaDataVisitorNode child = children.next();
+               try
+               {
+                  child.visit(this);
+               }
+               finally
+               {
+                  contextState = restoreState;
+               }
+            }
+         }
+      }
+
+      public ServiceControllerContext getControllerContext()
+      {
+         return ServiceControllerContext.this;
+      }
+      
+      public ControllerState getContextState()
+      {
+         return contextState;
+      }
+      
+      public void addDependency(DependencyItem dependency)
+      {
+         getDependencyInfo().addIDependOn(dependency);
+      }
+
+      public void setContextState(ControllerState contextState)
+      {
+         this.contextState = contextState;
+      }
+   }
 }

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenGetAttributes_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenGetAttributes_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenGetAttributes_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenSetAttribute_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenSetAttribute_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeBrokenSetAttribute_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyName_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyName_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyName_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyValue_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyValue_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeEmptyValue_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoName_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoName_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoName_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoValue_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoValue_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNoValue_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNone_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNone_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNone_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOne_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOne_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOne_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTwo_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTwo_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTwo_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeBrokenSetAttribute_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeBrokenSetAttribute_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeBrokenSetAttribute_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeEmptyValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeEmptyValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeEmptyValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeInvalidValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeInvalidValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeInvalidValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNested_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNested_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNested_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNoValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNoValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNoValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNone_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNone_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNone_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOne_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOne_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOne_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributePatternValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributePatternValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributePatternValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTwo_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTwo_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTwo_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeUnknownElement_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeUnknownElement_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeUnknownElement_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeBrokenSetAttribute_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeBrokenSetAttribute_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeBrokenSetAttribute_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeEmptyValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeEmptyValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeEmptyValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeInvalidValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeInvalidValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeInvalidValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeMultiple_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeMultiple_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeMultiple_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNested_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNested_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNested_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNoValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNoValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNoValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNone_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNone_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNone_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOne_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOne_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOne_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributePatternValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributePatternValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributePatternValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTwo_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTwo_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTwo_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeUnknownElement_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeUnknownElement_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeUnknownElement_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingError_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingError_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingError_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBinding_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBinding_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBinding_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/AttributeInfoTypeNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/AttributeInfoTypeNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/AttributeInfoTypeNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/BrokenSetAttribute_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/BrokenSetAttribute_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/BrokenSetAttribute_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyNested_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyNested_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyNested_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/Dependency_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/Dependency_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/Dependency_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/EmptyValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/EmptyValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/EmptyValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ExplicitProxyType_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ExplicitProxyType_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ExplicitProxyType_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ImplicitProxyType_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ImplicitProxyType_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ImplicitProxyType_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/InvalidValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/InvalidValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/InvalidValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoAttributeInfoType_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoAttributeInfoType_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoAttributeInfoType_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/NoValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/PatternValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/PatternValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/PatternValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotInterface_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotInterface_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/ProxyTypeNotInterface_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/UnknownElement_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/UnknownElement_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/depends/test/UnknownElement_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/BrokenSetAttribute_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/BrokenSetAttribute_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/BrokenSetAttribute_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/EmptyValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/EmptyValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/EmptyValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/InvalidValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/InvalidValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/InvalidValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Nested_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Nested_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Nested_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/NoValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/NoValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/NoValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/None_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/None_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/None_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/One_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/One_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/One_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/PatternValue_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/PatternValue_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/PatternValue_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Two_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Two_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/Two_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/UnknownElement_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/UnknownElement_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/dependslist/test/UnknownElement_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/element/test/Element_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/element/test/Element_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/element/test/Element_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AbstractAttributeClass_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AbstractAttributeClass_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AbstractAttributeClass_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeClassNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeClassNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeClassNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeInfoTypeNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeInfoTypeNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/AttributeInfoTypeNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/EmptyPropertyName_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/EmptyPropertyName_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/EmptyPropertyName_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInConstructor_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInConstructor_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInConstructor_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInProperty_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInProperty_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ErrorInProperty_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ExplicitClass_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ExplicitClass_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ExplicitClass_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ImplicitClass_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ImplicitClass_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/ImplicitClass_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoAttributeInfoType_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoAttributeInfoType_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoAttributeInfoType_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyEditor_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyEditor_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyEditor_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyName_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyName_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyName_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyValue_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyValue_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/NoPropertyValue_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/PropertyNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/PropertyNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/javabean/test/PropertyNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/AbstractClass_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/AbstractClass_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/AbstractClass_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/Basic_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/Basic_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/Basic_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ClassNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ClassNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ClassNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/EmptyPropertyName_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/EmptyPropertyName_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/EmptyPropertyName_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInConstructor_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInConstructor_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInConstructor_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInProperty_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInProperty_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/ErrorInProperty_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyEditor_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyEditor_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyEditor_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyName_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyName_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyName_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyValue_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyValue_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/NoPropertyValue_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/PropertyNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/PropertyNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/jbxb/test/PropertyNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/AttributeInfoTypeNotFound_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/AttributeInfoTypeNotFound_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/AttributeInfoTypeNotFound_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoAttributeInfoType_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoAttributeInfoType_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoAttributeInfoType_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoPropertyEditor_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoPropertyEditor_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/NoPropertyEditor_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/PropertyEditors_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/PropertyEditors_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/configure/value/text/test/PropertyEditors_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeEmpty_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeEmpty_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeEmpty_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeMissing_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeMissing_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanCodeMissing_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanGetMBeanInfoError_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanGetMBeanInfoError_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanGetMBeanInfoError_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostDeregisterError_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostDeregisterError_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostDeregisterError_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostRegisterError_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostRegisterError_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPostRegisterError_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreDeregisterError_install.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreDeregisterError_install.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreDeregisterError_install.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreRegisterError_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreRegisterError_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanPreRegisterError_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_good.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_good.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterError_good.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeEmpty_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeEmpty_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeEmpty_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeMissing_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeMissing_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanCodeMissing_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_good.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_good.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterError_good.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeEmpty_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeEmpty_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeEmpty_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeMissing_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeMissing_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgTypeMissing_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgValueMissing_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgValueMissing_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/PlainMBeanArgValueMissing_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeEmpty_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeEmpty_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeEmpty_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeMissing_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeMissing_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgTypeMissing_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgValueMissing_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgValueMissing_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/instantiate/test/StandardMBeanArgValueMissing_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_good.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_good.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigure_good.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_good.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_good.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreate_good.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_good.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_good.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiate_good.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_good.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_good.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStart_good.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_good.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_good.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInCreateRedeployAfterError_good.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_good.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_good.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInDestroyRedeployAfterError_good.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_good.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_good.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStartRedeployAfterError_good.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_bad.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_bad.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_bad.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_good.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_good.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/lifecycle/test/ErrorInStopRedeployAfterError_good.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/CodeEmpty.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/CodeEmpty.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/CodeEmpty.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<server>
-   <mbean name="jboss.test:type=test" code=""/>
-</server>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/CodeMissing.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/CodeMissing.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/CodeMissing.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<server>
-   <mbean name="jboss.test:type=test"/>
-</server>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorTypeEmpty.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorTypeEmpty.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorTypeEmpty.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,9 +0,0 @@
-<?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="param1"/>
-      </constructor>
-   </mbean>
-</server>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorTypeMissing.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorTypeMissing.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorTypeMissing.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,9 +0,0 @@
-<?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="param1"/>
-      </constructor>
-   </mbean>
-</server>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorValueMissing.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorValueMissing.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/controller/parse/test/ConstructorValueMissing.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,9 +0,0 @@
-<?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"/>
-      </constructor>
-   </mbean>
-</server>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeEmptyValue.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeEmptyValue.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeEmptyValue.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute"></attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoReplace.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoReplace.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoReplace.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute" replace="false">value</attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoTrim.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoTrim.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoTrim.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute" trim="false">value</attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoValue.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoValue.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNoValue.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute"/>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNone.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNone.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeNone.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeOne.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeOne.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeOne.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute">value</attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeTwo.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeTwo.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeTwo.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute1">value1</attribute>
+   <attribute name="Attribute2">value2</attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueDepends.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueDepends.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueDepends.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends optional-attribute-name="Attribute">test:test=1</depends>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueDependsList.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueDependsList.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueDependsList.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends-list optional-attribute-name="Attribute">
+      <depends-list-element>test:test=1</depends-list-element>
+   </depends-list>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueElement.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueElement.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueElement.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute"><dummy/></attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueJBXB.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueJBXB.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueJBXB.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute" serialDataType="jbxb"><dummy/></attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueJavaBean.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueJavaBean.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueJavaBean.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute" serialDataType="javaBean"><dummy/></attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueText.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueText.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueText.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute">value</attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNoName.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNoName.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNoName.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends optional-attribute-name="">test:test=1</depends>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNoValue.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNoValue.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNoValue.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends optional-attribute-name="Attribute"/>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNone.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNone.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeNone.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeOne.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeOne.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeOne.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends optional-attribute-name="Attribute">test:test=1</depends>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeTwo.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeTwo.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeTwo.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends optional-attribute-name="Attribute1">test:test=1</depends>
+   <depends optional-attribute-name="Attribute2">test:test=2</depends>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeEmptyValue.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeEmptyValue.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeEmptyValue.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends-list optional-attribute-name="Attribute"></depends-list>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNoName.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNoName.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNoName.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends-list optional-attribute-name="">
+      <depends-list-element>test:test=1</depends-list-element>
+   </depends-list>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNoValue.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNoValue.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNoValue.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends-list optional-attribute-name="Attribute"/>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNone.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNone.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeNone.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeOne.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeOne.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeOne.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends-list optional-attribute-name="Attribute">
+      <depends-list-element>test:test=1</depends-list-element>
+   </depends-list>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeTwo.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeTwo.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeTwo.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends-list optional-attribute-name="Attribute1">
+      <depends-list-element>test:test=1</depends-list-element>
+   </depends-list>
+   <depends-list optional-attribute-name="Attribute2">
+      <depends-list-element>test:test=2</depends-list-element>
+   </depends-list>
+</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanEmptyCode.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanEmptyCode.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanEmptyCode.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code=""/>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanNoCode.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanNoCode.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanNoCode.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName"/>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorEmptyType.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorEmptyType.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorEmptyType.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <constructor>
-      <arg type="" value="param1"/>
-   </constructor>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorNoType.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorNoType.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorNoType.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <constructor>
-      <arg value="param1"/>
-   </constructor>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorNoValue.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorNoValue.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/constructor/test/ConstructorNoValue.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <constructor>
-      <arg type="signature1"/>
-   </constructor>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsEmpty.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsEmpty.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsEmpty.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends/>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsInvalidObjectName.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsInvalidObjectName.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsInvalidObjectName.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends>InvalidObjectName</depends>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListElementEmpty.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListElementEmpty.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListElementEmpty.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends-list>
-      <depends-list-element/>
-   </depends-list>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListElementNoNestedMBean.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListElementNoNestedMBean.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListElementNoNestedMBean.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends-list>
-      <depends-list-element><dummy/></depends-list-element>
-   </depends-list>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListInvalidObjectName.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListInvalidObjectName.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListInvalidObjectName.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends-list>
-      <depends-list-element>InvalidObjectName</depends-list-element>
-   </depends-list>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeElementEmpty.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeElementEmpty.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeElementEmpty.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends-list optional-attribute-name="AttributeName">
-      <depends-list-element/>
-   </depends-list>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeElementNoNestedMBean.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeElementNoNestedMBean.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeElementNoNestedMBean.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends-list optional-attribute-name="AttributeName">
-      <depends-list-element><dummy/></depends-list-element>
-   </depends-list>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeInvalidObjectName.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeInvalidObjectName.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsListOptionalAttributeInvalidObjectName.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends-list optional-attribute-name="AttributeName">
-      <depends-list-element>InvalidObjectName</depends-list-element>
-   </depends-list>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsNoNestedMBean.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsNoNestedMBean.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsNoNestedMBean.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends><dummy/></depends>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeEmpty.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeEmpty.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeEmpty.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends optional-attribute-name="AttributeName"/>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeInvalidObjectName.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeInvalidObjectName.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeInvalidObjectName.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends optional-attribute-name="AttributeName">InvalidObjectName</depends>
-</mbean>
\ No newline at end of file

Deleted: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeNoNestedMBean.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeNoNestedMBean.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeNoNestedMBean.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
-   <depends optional-attribute-name="AttributeName"><dummy/></depends>
-</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/Dependency.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/Dependency.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/Dependency.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends optional-attribute-name="Attribute">test:test=1</depends>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/DependencyNested.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/DependencyNested.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/DependencyNested.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends optional-attribute-name="Attribute">
+      <mbean name="test:test=1" code="Nested"/>
+   </depends>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/DependencyProxyType.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/DependencyProxyType.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/depends/test/DependencyProxyType.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends optional-attribute-name="Attribute" proxy-type="ProxyType">test:test=1</depends>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListNested.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListNested.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListNested.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends-list optional-attribute-name="Attribute">
+      <depends-list-element>
+         <mbean name="test:test=1" code="Nested"/>
+      </depends-list-element>
+   </depends-list>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListNone.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListNone.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListNone.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends-list optional-attribute-name="Attribute"/>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListOne.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListOne.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListOne.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends-list optional-attribute-name="Attribute">
+      <depends-list-element>test:test=1</depends-list-element>
+   </depends-list>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListTwo.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListTwo.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListTwo.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <depends-list optional-attribute-name="Attribute">
+      <depends-list-element>test:test=1</depends-list-element>
+      <depends-list-element>test:test=2</depends-list-element>
+   </depends-list>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/element/test/Element.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/element/test/Element.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/element/test/Element.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute"><dummy/></attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/javabean/test/JavaBean.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/javabean/test/JavaBean.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/javabean/test/JavaBean.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute" serialDataType="javaBean"><dummy/></attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/jbxb/test/JBXB.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/jbxb/test/JBXB.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/jbxb/test/JBXB.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute" serialDataType="jbxb"><dummy/></attribute>
+</mbean>
\ No newline at end of file

Added: branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/text/test/Text.xml
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/text/test/Text.xml	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/resources/tests/org/jboss/test/system/metadata/value/text/test/Text.xml	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mbean name="jboss.test:type=BasicMBeanName" code="BasicMBeanCode">
+   <attribute name="Attribute">value</attribute>
+</mbean>
\ No newline at end of file

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/AbstractSystemTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/AbstractSystemTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/AbstractSystemTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -30,7 +30,7 @@
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.2 $
  */
-public class AbstractSystemTest extends AbstractTestCaseWithSetup
+public abstract class AbstractSystemTest extends AbstractTestCaseWithSetup
 {
    private static Logger staticLog = Logger.getLogger(AbstractSystemTest.class);
    
@@ -49,6 +49,8 @@
       {
          if (original instanceof Exception)
             throw (Exception) original;
+         else if (original instanceof Error)
+            throw (Error) original;
          else
             throw new UnexpectedThrowable("UnexpectedThrowable", original);
       }
@@ -58,6 +60,16 @@
       }
    }
    
+   // @fixme move to AbstractTestCase
+   public static <T> T assertInstanceOf(Class<T> 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 expected.cast(object);
+   }
+   
+
    /**
     * Create a new ContainerTest.
     * 

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/AbstractControllerTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/AbstractControllerTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/AbstractControllerTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,6 +21,7 @@
 */
 package org.jboss.test.system.controller;
 
+import java.io.IOException;
 import java.net.URL;
 import java.util.Collections;
 import java.util.List;
@@ -33,6 +34,7 @@
 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;
 
 /**
@@ -157,37 +159,94 @@
       getControllerDelegate().assertInvalidDeployments();
    }
    
-   protected void assertDeployFailure(String resource, Class<? extends Throwable> expected) throws Exception
+   protected void assertInitialDeployFailure(String resource, ObjectName name, Class<? extends Throwable> expected) throws Exception
    {
-      try
-      {
-         deploy(resource);
-         fail("Should have got a " + expected.getName());
-      }
-      catch (Throwable t)
-      {
-         AbstractSystemTest.checkThrowableDeep(expected, t);
-      }
+      URL url = getResourceURL(resource);
+      getControllerDelegate().assertInitialDeployFailure(url, name, expected);
    }
    
-   protected void assertMaybeDeployFailure(ObjectName name, Class<? extends Throwable> expected) throws Exception
+   protected List<ObjectName> assertDeployFailure(ObjectName name, Class<? extends Throwable> expected) throws Exception
    {
       String resource = getName();
       resource = resource.substring(4) + "_bad.xml";
-      assertMaybeDeployFailure(resource, name, expected);
+      return assertDeployFailure(resource, name, expected);
    }
    
-   protected void assertMaybeDeployFailure(String resource, ObjectName name, Class<? extends Throwable> expected) throws Exception
+   protected List<ObjectName> assertDeployFailure(String resource, ObjectName name, Class<? extends Throwable> expected) throws Exception
    {
       URL url = getResourceURL(resource);
-      getControllerDelegate().assertMaybeDeployFailure(url, name, expected);
-      assertServiceFailed(SimpleMBean.OBJECT_NAME, false);
+      List<ObjectName> result = getControllerDelegate().assertDeployFailure(url, name, expected);
+      assertServiceFailed(name, OLD_REGISTERED);
+      return result;
    }
+
+   protected void redeployAfterDeployFailure(ObjectName name, Class<? extends Throwable> expected) throws Exception
+   {
+      String root = getName();
+      root = root.substring(4);
+
+      List<ObjectName> 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<ObjectName> names = deploy(root + "_bad.xml");
+      assertServiceRunning(name);
+      undeploy(names);
+      deploy(root + "_good.xml");
+      assertServiceRunning(name);
+   }
    
+   protected List<ObjectName> assertMaybeDeployFailure(ObjectName name, Class<? extends Throwable> expected) throws Exception
+   {
+      String resource = getName();
+      resource = resource.substring(4) + "_bad.xml";
+      return assertMaybeDeployFailure(resource, name, expected);
+   }
+   
+   protected List<ObjectName> assertMaybeDeployFailure(String resource, ObjectName name, Class<? extends Throwable> expected) throws Exception
+   {
+      URL url = getResourceURL(resource);
+      List<ObjectName> result = getControllerDelegate().assertMaybeDeployFailure(url, name, expected);
+      assertServiceFailed(name, OLD_NOT_REGISTERED);
+      return result;
+   }
+
+   protected void redeployAfterMaybeDeployFailure(ObjectName name, Class<? extends Throwable> expected) throws Exception
+   {
+      String root = getName();
+      root = root.substring(4);
+
+      List<ObjectName> names = assertMaybeDeployFailure(root + "_bad.xml", SimpleMBean.OBJECT_NAME, expected);
+      undeploy(names);
+      deploy(root + "_good.xml");
+      assertServiceRunning(name);
+   }
+
+   protected void assertMaybeParseFailure(ObjectName name, Class<? extends Throwable> expected) throws Exception
+   {
+      String resource = getName();
+      resource = resource.substring(4) + "_bad.xml";
+      assertMaybeParseFailure(resource, name, expected);
+   }
+   
+   protected void assertMaybeParseFailure(String resource, ObjectName name, Class<? extends Throwable> 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 getController().getServiceContext(name);
+      return getControllerDelegate().getServiceContext(name);
    }
    
    protected void assertServiceFailed(ObjectName name) throws Exception
@@ -197,8 +256,7 @@
    
    protected void assertServiceFailed(ObjectName name, boolean registered) throws Exception
    {
-      assertServiceState(name, ServiceContext.FAILED, registered);
-      getControllerDelegate().assertMBeanFailed(name, registered);
+      getControllerDelegate().assertServiceFailed(name, registered);
    }
    
    protected void assertServiceConfigured(ObjectName name) throws Exception
@@ -234,10 +292,7 @@
    
    protected void assertServiceState(ObjectName name, int expectedState, boolean registered) throws Exception
    {
-      ServiceContext ctx = getServiceContext(name);
-      if (registered == false && ctx == null)
-         return;
-      assertTrue("Incorrect state for " + name + " expected " + ServiceContext.getStateString(expectedState) + " got " + ctx.getStateString(), expectedState == ctx.state);
+      getControllerDelegate().assertServiceState(name, expectedState, registered);
    }
    
    protected void assertNoService(ObjectName name) throws Exception
@@ -250,7 +305,7 @@
    {
       URL url = getClass().getResource(resource);
       if (url == null)
-         throw new IllegalArgumentException("Resource not found: " + resource);
+         throw new IOException(resource + " not found");
       return url;
    }
    
@@ -265,4 +320,22 @@
       MBeanServer server = getServer();
       assertFalse(name + " should NOT be registered in the MBeanServer", server.isRegistered(name));
    }
+
+   protected <T> T getMBean(Class<T> 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 getMBean(Simple.class, SimpleMBean.OBJECT_NAME, "Instance");
+   }
+   
+   protected void FAILS_IN_OLD()
+   {
+      getLog().debug("This test fails with the old service controller, ignoring.");
+   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -86,9 +86,16 @@
       
       deploy();
       
-      validate();
+      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
@@ -199,13 +206,40 @@
       }
    }
    
-   public void assertMaybeDeployFailure(URL url, ObjectName name, Class<? extends Throwable> expected) throws Exception
+   protected void assertInitialDeployFailure(URL url, ObjectName name, Class<? extends Throwable> expected) throws Exception
    {
-      deploy(url, true);
+      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<ObjectName> assertDeployFailure(URL url, ObjectName name, Class<? extends Throwable> expected) throws Exception
+   {
+      List<ObjectName> result = deploy(url, true);
       IncompleteDeploymentException e = assertInvalidDeployments();
       checkIncomplete(e, name, expected);
+      return result;
    }
    
+   public List<ObjectName> assertMaybeDeployFailure(URL url, ObjectName name, Class<? extends Throwable> expected) throws Exception
+   {
+      return assertDeployFailure(url, name, expected);
+   }
+   
+   public void assertMaybeParseFailure(URL url, ObjectName name, Class<? extends Throwable> expected) throws Exception
+   {
+      assertDeployFailure(url, name, expected);
+      assertServiceFailed(name);
+   }
+   
    protected void checkIncomplete(IncompleteDeploymentException e, ObjectName name, Class<? extends Throwable> expected) throws Exception
    {
       Collection incomplete = e.getMbeansWaitingForDepends();
@@ -215,7 +249,7 @@
          if (name.equals(ctx.objectName))
          {
             if (ctx.problem == null)
-               throw new AssertionFailedError("Did got get expected " + expected.getName() + " for " + ctx);
+               throw new AssertionFailedError("Did not get expected " + expected.getName() + " for " + ctx);
             AbstractSystemTest.checkThrowableDeep(expected, ctx.problem);
             return;
          }
@@ -223,4 +257,38 @@
       
       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());
+   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/OldControllerTestDelegate.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/OldControllerTestDelegate.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/OldControllerTestDelegate.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -22,6 +22,8 @@
 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;
@@ -59,7 +61,7 @@
          throw new AssertionFailedError(name + " should be registered after a failure");
    }
 
-   public void assertMaybeDeployFailure(URL url, ObjectName name, Class<? extends Throwable> expected) throws Exception
+   public List<ObjectName> assertMaybeDeployFailure(URL url, ObjectName name, Class<? extends Throwable> expected) throws Exception
    {
       if (expected != null)
       {
@@ -71,11 +73,17 @@
          catch (Throwable throwable)
          {
             AbstractSystemTest.checkThrowableDeep(expected, throwable);
+            return Collections.emptyList();
          }
       }
       else
       {
-         super.assertMaybeDeployFailure(url, name, expected);
+         return super.assertMaybeDeployFailure(url, name, expected);
       }
    }
+   
+   public void assertMaybeParseFailure(URL url, ObjectName name, Class<? extends Throwable> expected) throws Exception
+   {
+      assertInitialDeployFailure(url, name, expected);
+   }
 }

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * AttributeNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class AttributeNewUnitTestCase extends AttributeTest
+{
+   public static Test suite()
+   {
+      return suite(AttributeNewUnitTestCase.class);
+   }
+
+   public AttributeNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/AttributeTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * DependsAttributeNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsAttributeNewUnitTestCase extends DependsAttributeTest
+{
+   public static Test suite()
+   {
+      return suite(DependsAttributeNewUnitTestCase.class);
+   }
+
+   public DependsAttributeNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsAttributeTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * DependsListAttributeNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsListAttributeNewUnitTestCase extends DependsListAttributeTest
+{
+   public static Test suite()
+   {
+      return suite(DependsListAttributeNewUnitTestCase.class);
+   }
+
+   public DependsListAttributeNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/attribute/test/DependsListAttributeTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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<ObjectName> actual)
+   {
+      List<ObjectName> 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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/support/TestServiceBinding.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/support/TestServiceBinding.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/support/TestServiceBinding.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * ServiceBindingNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ServiceBindingNewUnitTestCase extends ServiceBindingTest
+{
+   public static Test suite()
+   {
+      return suite(ServiceBindingNewUnitTestCase.class);
+   }
+
+   public ServiceBindingNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/binding/test/ServiceBindingTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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);
+   }
+}

Deleted: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,50 +0,0 @@
-/*
-* 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;
-
-/**
- * ConfigureNewUnitTestCase.
- * 
- * @author <a href="adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 1.1 $
- */
-public class ConfigureNewUnitTestCase extends ConfigureTest
-{
-   public static Test suite()
-   {
-      return suite(ConfigureNewUnitTestCase.class);
-   }
-
-   public ConfigureNewUnitTestCase(String name)
-   {
-      super(name);
-   }
-
-   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
-   {
-      return getNewControllerDelegate(clazz);
-   }
-}

Deleted: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,50 +0,0 @@
-/*
-* 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;
-
-/**
- * ConfigureOldUnitTestCase.
- * 
- * @author <a href="adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 1.1 $
- */
-public class ConfigureOldUnitTestCase extends ConfigureTest
-{
-   public static Test suite()
-   {
-      return suite(ConfigureOldUnitTestCase.class);
-   }
-
-   public ConfigureOldUnitTestCase(String name)
-   {
-      super(name);
-   }
-
-   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
-   {
-      return getOldControllerDelegate(clazz);
-   }
-}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * ConfigureRedeployAfterErrorNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ConfigureRedeployAfterErrorNewUnitTestCase extends ConfigureRedeployAfterErrorTest
+{
+   public static Test suite()
+   {
+      return suite(ConfigureRedeployAfterErrorNewUnitTestCase.class);
+   }
+
+   public ConfigureRedeployAfterErrorNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureRedeployAfterErrorTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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);
+   }
+}

Deleted: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ConfigureTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,106 +0,0 @@
-/*
-* 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 java.math.BigDecimal;
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-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;
-import org.jboss.util.NestedRuntimeException;
-
-/**
- * ConfigureTest.
- * 
- * @author <a href="adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 1.1 $
- */
-public abstract class ConfigureTest extends AbstractControllerTest
-{
-   private static DateFormat dateFormat = new SimpleDateFormat("EEE MMM d HH:mm:ss z yyyy");
-   
-   String stringValue =  new String("StringValue");
-   Byte byteValue = new Byte("12");
-   Boolean booleanValue = Boolean.TRUE;
-   // TODO character
-   // Character characterValue = new Character('a'); 
-   Short shortValue = new Short("123");
-   Integer integerValue = new Integer("1234");
-   Long longValue = new Long("12345");
-   Float floatValue = new Float("3.14");
-   Double doubleValue = new Double("3.14e12");
-   Date dateValue = createDate("Mon Jan 01 00:00:00 CET 2001");
-   BigDecimal bigDecimalValue = new BigDecimal("12e4");
-   //BigInteger bigIntegerValue = new BigInteger("123456");
-
-   public ConfigureTest(String name)
-   {
-      super(name);
-   }
-   
-   public void testConfigure() throws Exception
-   {
-      MBeanServer server = getServer();
-      Simple test = (Simple) server.getAttribute(SimpleMBean.OBJECT_NAME, "Instance");
-
-      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());
-   }
-
-   protected Date createDate(String date)
-   {
-      try
-      {
-         return dateFormat.parse(date);
-      }
-      catch (Exception e)
-      {
-         throw new NestedRuntimeException(e);
-      }
-   }
-}

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ControllerConfigureTestSuite.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ControllerConfigureTestSuite.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ControllerConfigureTestSuite.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -25,6 +25,16 @@
 import junit.framework.TestSuite;
 import junit.textui.TestRunner;
 
+import org.jboss.test.system.controller.configure.attribute.test.AttributeNewUnitTestCase;
+import org.jboss.test.system.controller.configure.attribute.test.AttributeOldUnitTestCase;
+import org.jboss.test.system.controller.configure.attribute.test.DependsAttributeNewUnitTestCase;
+import org.jboss.test.system.controller.configure.attribute.test.DependsAttributeOldUnitTestCase;
+import org.jboss.test.system.controller.configure.attribute.test.DependsListAttributeNewUnitTestCase;
+import org.jboss.test.system.controller.configure.attribute.test.DependsListAttributeOldUnitTestCase;
+import org.jboss.test.system.controller.configure.binding.test.ServiceBindingNewUnitTestCase;
+import org.jboss.test.system.controller.configure.binding.test.ServiceBindingOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.ControllerConfigureValueTestSuite;
+
 /**
  * Controller Configure Test Suite.
  * 
@@ -42,8 +52,17 @@
    {
       TestSuite suite = new TestSuite("Controller Configure Tests");
 
-      suite.addTest(ConfigureOldUnitTestCase.suite());
-      suite.addTest(ConfigureNewUnitTestCase.suite());
+      suite.addTest(AttributeOldUnitTestCase.suite());
+      suite.addTest(AttributeNewUnitTestCase.suite());
+      suite.addTest(DependsAttributeOldUnitTestCase.suite());
+      suite.addTest(DependsAttributeNewUnitTestCase.suite());
+      suite.addTest(DependsListAttributeOldUnitTestCase.suite());
+      suite.addTest(DependsListAttributeNewUnitTestCase.suite());
+      suite.addTest(ServiceBindingOldUnitTestCase.suite());
+      suite.addTest(ServiceBindingNewUnitTestCase.suite());
+      suite.addTest(ControllerConfigureValueTestSuite.suite());
+      suite.addTest(ConfigureRedeployAfterErrorOldUnitTestCase.suite());
+      suite.addTest(ConfigureRedeployAfterErrorNewUnitTestCase.suite());
       
       return suite;
    }

Deleted: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,50 +0,0 @@
-/*
-* 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;
-
-/**
- * ErrorNewUnitTestCase.
- * 
- * @author <a href="adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 1.1 $
- */
-public class ErrorNewUnitTestCase extends ErrorTest
-{
-   public static Test suite()
-   {
-      return suite(ErrorNewUnitTestCase.class);
-   }
-
-   public ErrorNewUnitTestCase(String name)
-   {
-      super(name);
-   }
-
-   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
-   {
-      return getNewControllerDelegate(clazz);
-   }
-}

Deleted: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,50 +0,0 @@
-/*
-* 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;
-
-/**
- * ErrorOldUnitTestCase.
- * 
- * @author <a href="adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 1.1 $
- */
-public class ErrorOldUnitTestCase extends ErrorTest
-{
-   public static Test suite()
-   {
-      return suite(ErrorOldUnitTestCase.class);
-   }
-
-   public ErrorOldUnitTestCase(String name)
-   {
-      super(name);
-   }
-
-   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
-   {
-      return getOldControllerDelegate(clazz);
-   }
-}

Deleted: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/test/ErrorTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -1,45 +0,0 @@
-/*
-* 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;
-
-/**
- * ErrorTest.
- * 
- * @author <a href="adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 1.1 $
- */
-public abstract class ErrorTest extends AbstractControllerTest
-{
-   public ErrorTest(String name)
-   {
-      super(name);
-   }
-   
-   public void testErrorInConfigure() throws Exception
-   {
-      deploy("ErrorInConfigure_NotAutomatic.xml");
-      assertServiceFailed(SimpleMBean.OBJECT_NAME);
-   }
-}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/ControllerConfigureValueTestSuite.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/ControllerConfigureValueTestSuite.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/ControllerConfigureValueTestSuite.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,73 @@
+/*
+* 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 org.jboss.test.system.controller.configure.value.depends.test.DependencyValueNewUnitTestCase;
+import org.jboss.test.system.controller.configure.value.depends.test.DependencyValueOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.dependslist.test.DependencyListValueNewUnitTestCase;
+import org.jboss.test.system.controller.configure.value.dependslist.test.DependencyListValueOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.element.test.ElementValueNewUnitTestCase;
+import org.jboss.test.system.controller.configure.value.element.test.ElementValueOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.javabean.test.JavaBeanValueNewUnitTestCase;
+import org.jboss.test.system.controller.configure.value.javabean.test.JavaBeanValueOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.jbxb.test.JBXBValueNewUnitTestCase;
+import org.jboss.test.system.controller.configure.value.jbxb.test.JBXBValueOldUnitTestCase;
+import org.jboss.test.system.controller.configure.value.text.test.TextValueNewUnitTestCase;
+import org.jboss.test.system.controller.configure.value.text.test.TextValueOldUnitTestCase;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ * 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(TextValueNewUnitTestCase.suite());
+      suite.addTest(DependencyValueOldUnitTestCase.suite());
+      suite.addTest(DependencyValueNewUnitTestCase.suite());
+      suite.addTest(DependencyListValueOldUnitTestCase.suite());
+      suite.addTest(DependencyListValueNewUnitTestCase.suite());
+      suite.addTest(ElementValueOldUnitTestCase.suite());
+      suite.addTest(ElementValueNewUnitTestCase.suite());
+      suite.addTest(JavaBeanValueOldUnitTestCase.suite());
+      suite.addTest(JavaBeanValueNewUnitTestCase.suite());
+      suite.addTest(JBXBValueOldUnitTestCase.suite());
+      suite.addTest(JBXBValueNewUnitTestCase.suite());
+      
+      return suite;
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.depends.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * DependencyValueNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependencyValueNewUnitTestCase extends DependencyValueTest
+{
+   public static Test suite()
+   {
+      return suite(DependencyValueNewUnitTestCase.class);
+   }
+
+   public DependencyValueNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/depends/test/DependencyValueTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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 = getMBean(Simple.class, DEPENDS, "Instance");
+
+         assertFalse(simple.isTouched());
+         assertFalse(dependency.isTouched());
+         
+         simple.touchProxy();
+
+         assertFalse(simple.isTouched());
+         assertTrue(dependency.isTouched());
+      }
+      finally
+      {
+         assertUninstall(name);
+      }
+   }
+   
+   protected Simple getDependency() throws Exception
+   {
+      return getMBean(Simple.class, DEPENDS, "Instance");
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.dependslist.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * DependencyListValueNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependencyListValueNewUnitTestCase extends DependencyListValueTest
+{
+   public static Test suite()
+   {
+      return suite(DependencyListValueNewUnitTestCase.class);
+   }
+
+   public DependencyListValueNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/dependslist/test/DependencyListValueTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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<ObjectName> actual)
+   {
+      List<ObjectName> 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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * ElementValueNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ElementValueNewUnitTestCase extends ElementValueTest
+{
+   public static Test suite()
+   {
+      return suite(ElementValueNewUnitTestCase.class);
+   }
+
+   public ElementValueNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/element/test/ElementValueTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.javabean.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * JavaBeanValueNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class JavaBeanValueNewUnitTestCase extends JavaBeanValueTest
+{
+   public static Test suite()
+   {
+      return suite(JavaBeanValueNewUnitTestCase.class);
+   }
+
+   public JavaBeanValueNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/javabean/test/JavaBeanValueTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.jbxb.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * JBXBValueNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class JBXBValueNewUnitTestCase extends JBXBValueTest
+{
+   public static Test suite()
+   {
+      return suite(JBXBValueNewUnitTestCase.class);
+   }
+
+   public JBXBValueNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.jbxb.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * JBXBValueOldUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class JBXBValueOldUnitTestCase extends JBXBValueTest
+{
+   public static Test suite()
+   {
+      return suite(JBXBValueOldUnitTestCase.class);
+   }
+
+   public JBXBValueOldUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getOldControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/jbxb/test/JBXBValueTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,127 @@
+/*
+* 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.jbxb.test;
+
+import javax.management.ObjectName;
+
+import org.jboss.test.system.controller.AbstractControllerTest;
+import org.jboss.test.system.controller.support.JavaBean;
+import org.jboss.test.system.controller.support.Simple;
+import org.jboss.test.system.controller.support.SimpleMBean;
+
+/**
+ * JBXBValueTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class JBXBValueTest extends AbstractControllerTest
+{
+   public JBXBValueTest(String name)
+   {
+      super(name);
+   }
+
+   public void testBasic() throws Exception
+   {
+      javaBean();
+   }
+
+   public void testClassNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, ClassNotFoundException.class);
+   }
+
+   public void testAbstractClass() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, IllegalArgumentException.class);
+   }
+
+   public void testErrorInConstructor() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, Error.class);
+   }
+
+   public void testNoPropertyName() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, IllegalArgumentException.class);
+   }
+
+   public void testEmptyPropertyName() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, IllegalArgumentException.class);
+   }
+
+   public void testPropertyNotFound() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, IllegalArgumentException.class);
+   }
+
+   public void testNoPropertyEditor() throws Exception
+   {
+      assertDeployFailure(SimpleMBean.OBJECT_NAME, IllegalArgumentException.class);
+   }
+
+   public void testNoPropertyValue() throws Exception
+   {
+      ObjectName name = SimpleMBean.OBJECT_NAME;
+      
+      assertInstall(name);
+      try
+      {
+         Simple test = getSimple();
+
+         JavaBean bean = test.getJavaBean();
+         assertNotNull(bean);
+         assertNull(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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.text.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * TextValueNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class TextValueNewUnitTestCase extends TextValueTest
+{
+   public static Test suite()
+   {
+      return suite(TextValueNewUnitTestCase.class);
+   }
+
+   public TextValueNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/configure/value/text/test/TextValueTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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);
+      }
+   }
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -31,7 +31,7 @@
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $
  */
-public class PlainMBeanNewUnitTestCase extends PlainMBeanTest
+public class PlainMBeanNewUnitTestCase extends PlainMBeanRedeployAfterErrorTest
 {
    public static Test suite()
    {

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,12 +21,9 @@
 */
 package org.jboss.test.system.controller.instantiate.plain.test;
 
-import javax.management.NotCompliantMBeanException;
-
 import junit.framework.Test;
 
 import org.jboss.test.AbstractTestDelegate;
-import org.jboss.test.system.controller.support.SimpleMBean;
 
 /**
  * PlainMBeanOldUnitTestCase.
@@ -50,10 +47,4 @@
    {
       return getOldControllerDelegate(clazz);
    }
-   
-   public void testPlainMBeanAbstractClass() throws Exception
-   {
-      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, NotCompliantMBeanException.class);
-   }
-
 }

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * PlainMBeanNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class PlainMBeanRedeployAfterErrorNewUnitTestCase extends PlainMBeanTest
+{
+   public static Test suite()
+   {
+      return suite(PlainMBeanRedeployAfterErrorNewUnitTestCase.class);
+   }
+
+   public PlainMBeanRedeployAfterErrorNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanRedeployAfterErrorTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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);
+   }
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/plain/test/PlainMBeanTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,11 +21,18 @@
 */
 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;
 
 /**
@@ -48,6 +55,16 @@
       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);
@@ -60,7 +77,7 @@
    
    public void testPlainMBeanAbstractClass() throws Exception
    {
-      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, NotCompliantMBeanException.class); // FIXME
+      assertMaybeDeployFailure(SimpleMBean.OBJECT_NAME, NotCompliantMBeanException.class);
    }
    
    public void testPlainMBeanConstructorError() throws Exception
@@ -87,4 +104,35 @@
    {
       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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * StandardMBeanNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class StandardMBeanRedeployAfterErrorNewUnitTestCase extends StandardMBeanRedeployAfterErrorTest
+{
+   public static Test suite()
+   {
+      return suite(StandardMBeanRedeployAfterErrorNewUnitTestCase.class);
+   }
+
+   public StandardMBeanRedeployAfterErrorNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanRedeployAfterErrorTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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);
+   }
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/standard/test/StandardMBeanTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -66,6 +66,16 @@
    {
       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
    {

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * ConstructorArgsErrorNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ConstructorArgsErrorNewUnitTestCase extends ConstructorArgsErrorTest
+{
+   public static Test suite()
+   {
+      return suite(ConstructorArgsErrorNewUnitTestCase.class);
+   }
+
+   public ConstructorArgsErrorNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsErrorTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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);
+   }
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -26,7 +26,7 @@
 import org.jboss.test.AbstractTestDelegate;
 
 /**
- * InstallMBeanNewUnitTestCase.
+ * ConstructorArgsNewUnitTestCase.
  * 
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -26,7 +26,7 @@
 import org.jboss.test.AbstractTestDelegate;
 
 /**
- * InstallMBeanOldUnitTestCase.
+ * ConstructorArgsOldUnitTestCase.
  * 
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ConstructorArgsTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -28,7 +28,7 @@
 import org.jboss.test.system.controller.support.SimpleMBean;
 
 /**
- * InstallTest.
+ * ConstructorArgsTest.
  * 
  * @author <a href="adrian at jboss.com">Adrian Brock</a>
  * @version $Revision: 1.1 $

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ControllerInstantiateTestSuite.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ControllerInstantiateTestSuite.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/instantiate/test/ControllerInstantiateTestSuite.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -23,8 +23,12 @@
 
 import org.jboss.test.system.controller.instantiate.plain.test.PlainMBeanNewUnitTestCase;
 import org.jboss.test.system.controller.instantiate.plain.test.PlainMBeanOldUnitTestCase;
+import org.jboss.test.system.controller.instantiate.plain.test.PlainMBeanRedeployAfterErrorNewUnitTestCase;
+import org.jboss.test.system.controller.instantiate.plain.test.PlainMBeanRedeployAfterErrorOldUnitTestCase;
 import org.jboss.test.system.controller.instantiate.standard.test.StandardMBeanNewUnitTestCase;
 import org.jboss.test.system.controller.instantiate.standard.test.StandardMBeanOldUnitTestCase;
+import org.jboss.test.system.controller.instantiate.standard.test.StandardMBeanRedeployAfterErrorNewUnitTestCase;
+import org.jboss.test.system.controller.instantiate.standard.test.StandardMBeanRedeployAfterErrorOldUnitTestCase;
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
@@ -52,8 +56,14 @@
       suite.addTest(ConstructorArgsNewUnitTestCase.suite());
       suite.addTest(PlainMBeanOldUnitTestCase.suite());
       suite.addTest(PlainMBeanNewUnitTestCase.suite());
+      suite.addTest(PlainMBeanRedeployAfterErrorOldUnitTestCase.suite());
+      suite.addTest(PlainMBeanRedeployAfterErrorNewUnitTestCase.suite());
       suite.addTest(StandardMBeanOldUnitTestCase.suite());
       suite.addTest(StandardMBeanNewUnitTestCase.suite());
+      suite.addTest(StandardMBeanRedeployAfterErrorOldUnitTestCase.suite());
+      suite.addTest(StandardMBeanRedeployAfterErrorNewUnitTestCase.suite());
+      suite.addTest(ConstructorArgsErrorOldUnitTestCase.suite());
+      suite.addTest(ConstructorArgsErrorNewUnitTestCase.suite());
       
       return suite;
    }

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestDelegate.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestDelegate.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestDelegate.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -85,6 +85,12 @@
          throw new RuntimeException(e);
       }
    }
+
+   // TODO Temporary
+   protected boolean isValidateAtSetUp()
+   {
+      return false;
+   }
    
    public ServiceControllerMBean createServiceController() throws Exception
    {

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/legacy/OldServiceConfigurator.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/legacy/OldServiceConfigurator.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/legacy/OldServiceConfigurator.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -54,6 +54,7 @@
 import org.jboss.mx.util.JMXExceptionDecoder;
 import org.jboss.mx.util.MBeanProxyExt;
 import org.jboss.mx.util.ObjectNameFactory;
+import org.jboss.system.ConfigurationException;
 import org.jboss.system.ServiceBinding;
 import org.jboss.system.ServiceContext;
 import org.jboss.util.Classes;
@@ -62,7 +63,8 @@
 import org.jboss.util.xml.DOMWriter;
 import org.jboss.xb.binding.Unmarshaller;
 import org.jboss.xb.binding.UnmarshallerFactory;
-import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
+import org.jboss.xb.binding.sunday.unmarshalling.SchemaBindingResolver;
+import org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
@@ -467,7 +469,7 @@
                ctx.state = ServiceContext.CONFIGURED;
                ctx.problem = null;
             }
-            catch (Exception e)
+            catch (Throwable e) // TODO Backport to JBoss4!!!!
             {
                ctx.state = ServiceContext.FAILED;
                ctx.problem = e;
@@ -643,7 +645,7 @@
       StringBuffer buffer = getElementContent(element);
 
       // Parse the attribute element content
-      DefaultSchemaResolver resolver = new DefaultSchemaResolver();
+      SchemaBindingResolver resolver = SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
       Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
       StringReader reader = new StringReader(buffer.toString());
       Object bean = unmarshaller.unmarshal(reader, resolver);

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/ControllerLifecycleSeperatedTestSuite.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/ControllerLifecycleSeperatedTestSuite.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/ControllerLifecycleSeperatedTestSuite.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -44,6 +44,14 @@
 
       suite.addTest(SeperatedDependencyDependsOldUnitTestCase.suite());
       suite.addTest(SeperatedDependencyDependsNewUnitTestCase.suite());
+      suite.addTest(DependsBrokenInstantiateOldUnitTestCase.suite());
+      suite.addTest(DependsBrokenInstantiateNewUnitTestCase.suite());
+      suite.addTest(DependsBrokenConfigureOldUnitTestCase.suite());
+      suite.addTest(DependsBrokenConfigureNewUnitTestCase.suite());
+      suite.addTest(DependsBrokenCreateOldUnitTestCase.suite());
+      suite.addTest(DependsBrokenCreateNewUnitTestCase.suite());
+      suite.addTest(DependsBrokenStartOldUnitTestCase.suite());
+      suite.addTest(DependsBrokenStartNewUnitTestCase.suite());
       
       return suite;
    }

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * DependsBrokenConfigureNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsBrokenConfigureNewUnitTestCase extends DependsBrokenConfigureTest
+{
+   public static Test suite()
+   {
+      return suite(DependsBrokenConfigureNewUnitTestCase.class);
+   }
+
+   public DependsBrokenConfigureNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenConfigureTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * DependsBrokenCreateNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsBrokenCreateNewUnitTestCase extends DependsBrokenCreateTest
+{
+   public static Test suite()
+   {
+      return suite(DependsBrokenCreateNewUnitTestCase.class);
+   }
+
+   public DependsBrokenCreateNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenCreateTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * DependsBrokenInstantiateNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsBrokenInstantiateNewUnitTestCase extends DependsBrokenInstantiateTest
+{
+   public static Test suite()
+   {
+      return suite(DependsBrokenInstantiateNewUnitTestCase.class);
+   }
+
+   public DependsBrokenInstantiateNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenInstantiateTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * DependsBrokenStartNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsBrokenStartNewUnitTestCase extends DependsBrokenStartTest
+{
+   public static Test suite()
+   {
+      return suite(DependsBrokenStartNewUnitTestCase.class);
+   }
+
+   public DependsBrokenStartNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenStartTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/seperated/test/DependsBrokenTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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<? extends Throwable> expected) throws Exception
+   {
+      boolean error = false;
+
+      List<ObjectName> mbeans1 = assertMaybeDeployFailure(resourceName1, NAME_ONE, expected);
+      try
+      {
+         List<ObjectName> 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<? extends Throwable> expected) throws Exception
+   {
+      boolean error = false;
+
+      List<ObjectName> mbeans2 = deploy(resourceName2);
+      try
+      {
+         assertServiceState(NAME_TWO, expectedState);
+         assertRegistered(NAME_TWO);
+
+         List<ObjectName> 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<? extends Throwable> expected) throws Exception
+   {
+      boolean error = false;
+
+      List<ObjectName> mbeans1 = assertDeployFailure(resourceName1, NAME_ONE, expected);
+      try
+      {
+         List<ObjectName> 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<? extends Throwable> expected) throws Exception
+   {
+      deployBrokenSecondDeployFailure(expectedState, expectedState, expectedState, expected);
+   }
+   
+   public void deployBrokenSecondDeployFailure(int expectedState, int brokenExpectedState, Class<? extends Throwable> expected) throws Exception
+   {
+      deployBrokenSecondDeployFailure(expectedState, expectedState, brokenExpectedState, expected);
+   }
+   
+   public void deployBrokenSecondDeployFailure(int beforeExpectedState, int afterExpectedState, int brokenExpectedState, Class<? extends Throwable> expected) throws Exception
+   {
+      boolean error = false;
+
+      List<ObjectName> mbeans2 = deploy(resourceName2);
+      try
+      {
+         assertServiceState(NAME_TWO, beforeExpectedState);
+         assertRegistered(NAME_TWO);
+
+         List<ObjectName> 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<? extends Throwable> expected) throws Exception
+   {
+      boolean error = false;
+
+      List<ObjectName> 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);
+         }
+      }
+   }
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/ControllerLifecycleTestSuite.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/ControllerLifecycleTestSuite.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/ControllerLifecycleTestSuite.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -45,6 +45,8 @@
    {
       TestSuite suite = new TestSuite("Controller Lifecycle Tests");
 
+      suite.addTest(LifecycleRedeployAfterErrorOldUnitTestCase.suite());
+      suite.addTest(LifecycleRedeployAfterErrorNewUnitTestCase.suite());
       suite.addTest(ControllerLifecycleBasicTestSuite.suite());
       suite.addTest(ControllerLifecycleSeperatedTestSuite.suite());
       

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorNewUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorNewUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorNewUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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;
+
+/**
+ * LifecycleRedeployAfterErrorNewUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class LifecycleRedeployAfterErrorNewUnitTestCase extends LifecycleRedeployAfterErrorTest
+{
+   public static Test suite()
+   {
+      return suite(LifecycleRedeployAfterErrorNewUnitTestCase.class);
+   }
+
+   public LifecycleRedeployAfterErrorNewUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return getNewControllerDelegate(clazz);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/lifecycle/test/LifecycleRedeployAfterErrorTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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);
+   }
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseOldUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseOldUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseOldUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -47,22 +47,4 @@
    {
       return getOldControllerDelegate(clazz);
    }
-   
-   // Attempts to load an empty class name
-   public void testConstructorTypeMissing() throws Exception
-   {
-      errorInParse(ClassNotFoundException.class);
-   }
-   
-   // Attempts to load an empty class name
-   public void testConstructorTypeEmpty() throws Exception
-   {
-      errorInParse(ClassNotFoundException.class);
-   }
-   
-   // Allows missing values?
-   public void testConstructorValueMissing() throws Exception
-   {
-      errorInParse(NumberFormatException.class);
-   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/parse/test/ErrorInParseTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -24,7 +24,6 @@
 import javax.management.MalformedObjectNameException;
 
 import org.jboss.deployment.DeploymentException;
-import org.jboss.system.ConfigurationException;
 import org.jboss.test.system.controller.AbstractControllerTest;
 import org.jboss.test.system.controller.support.SimpleMBean;
 
@@ -45,8 +44,7 @@
    {
       String resource = getName();
       resource = resource.substring(4) + ".xml";
-      assertDeployFailure(resource, expected);
-      assertNoService(SimpleMBean.OBJECT_NAME);
+      assertInitialDeployFailure(resource, SimpleMBean.OBJECT_NAME, expected);
    }
    
    public void testNameMissing() throws Exception
@@ -63,29 +61,4 @@
    {
       errorInParse(MalformedObjectNameException.class);
    }
-   
-   public void testCodeMissing() throws Exception
-   {
-      errorInParse(ConfigurationException.class);
-   }
-   
-   public void testCodeEmpty() throws Exception
-   {
-      errorInParse(ConfigurationException.class);
-   }
-   
-   public void testConstructorTypeMissing() throws Exception
-   {
-      errorInParse(ConfigurationException.class);
-   }
-   
-   public void testConstructorTypeEmpty() throws Exception
-   {
-      errorInParse(ConfigurationException.class);
-   }
-   
-   public void testConstructorValueMissing() throws Exception
-   {
-      errorInParse(ConfigurationException.class);
-   }
 }

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/AbstractRegistration.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/AbstractRegistration.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/AbstractRegistration.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/AbstractRegistrationMBean.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/AbstractRegistrationMBean.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/AbstractRegistrationMBean.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBean.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBean.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBean.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributeInfoTypeNotFound.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributeInfoTypeNotFound.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributeInfoTypeNotFound.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributes.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributes.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanAttributes.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanNoAttributeInfoType.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanNoAttributeInfoType.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/BrokenDynamicMBeanNoAttributeInfoType.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBean.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBean.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBean.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorConstructor.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorConstructor.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorConstructor.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorProperty.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorProperty.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/JavaBeanErrorProperty.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PostDeregisterError.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PostDeregisterError.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PostDeregisterError.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PostRegisterError.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PostRegisterError.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PostRegisterError.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PreDeregisterError.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PreDeregisterError.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PreDeregisterError.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PreRegisterError.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PreRegisterError.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/PreRegisterError.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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");
+   }
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/Simple.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/Simple.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/Simple.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -29,6 +29,8 @@
 import javax.management.ObjectName;
 
 import org.jboss.system.ServiceMBeanSupport;
+import org.jboss.util.NotImplementedException;
+import org.w3c.dom.Element;
 
 /**
  * Simple.
@@ -45,6 +47,11 @@
    public int stopOrder;
    public int destroyOrder;
    
+   boolean touched = false;
+   
+   /** An object */
+   private Object object;
+   
    /** A string */
    private String aString;
 
@@ -114,6 +121,30 @@
    /** objectNames */
    private Collection<ObjectName> 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<ObjectName> objectNamesAttribute1;
+   
+   /** Second attribute */
+   private Collection<ObjectName> objectNamesAttribute2;
+
+   private SimpleStandardMBeanInterface proxy;
+
+   private Element element;
+
+   private JavaBean javaBean;
+   
    public Simple()
    {
       constructorUsed = "()";
@@ -149,23 +180,41 @@
    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;
@@ -374,6 +423,8 @@
    public void setAString(String string)
    {
       aString = string;
+      if ("ERRORINPROPERTY".equals(aString))
+         throw new Error("BROKEN PROPERTY");
    }
 
    public ObjectName getObjectName()
@@ -401,4 +452,134 @@
       StringBuilder builder = new StringBuilder(test);
       return builder.reverse().toString();
    }
+   
+   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<ObjectName> broken)
+   {
+      throw new Error("BROKEN");
+   }
+
+   public Collection<ObjectName> getObjectNamesAttribute1()
+   {
+      return objectNamesAttribute1;
+   }
+   
+   public void setObjectNamesAttribute1(Collection<ObjectName> objectNamesAttribute1)
+   {
+      this.objectNamesAttribute1 = objectNamesAttribute1;
+   }
+
+   public Collection<ObjectName> getObjectNamesAttribute2()
+   {
+      return objectNamesAttribute2;
+   }
+
+   public void setObjectNamesAttribute2(Collection<ObjectName> 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;
+   }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/SimpleMBean.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/SimpleMBean.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/SimpleMBean.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -30,6 +30,7 @@
 
 import org.jboss.mx.util.ObjectNameFactory;
 import org.jboss.system.ServiceMBean;
+import org.w3c.dom.Element;
 
 /**
  * SimpleMBean.
@@ -43,6 +44,10 @@
    
    Simple getInstance();
 
+   Object getObject();
+   
+   void setObject(Object object);
+   
    BigDecimal getABigDecimal();
 
    void setABigDecimal(BigDecimal bigDecimal);
@@ -134,4 +139,48 @@
    Collection<ObjectName> getObjectNames();
 
    void setObjectNames(Collection<ObjectName> 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<ObjectName> broken);
+
+   Collection<ObjectName> getObjectNamesAttribute1();
+   
+   void setObjectNamesAttribute1(Collection<ObjectName> objectNamesAttribute1);
+
+   Collection<ObjectName> getObjectNamesAttribute2();
+
+   void setObjectNamesAttribute2(Collection<ObjectName> objectNamesAttribute2);
+   
+   String getReadOnly();
+
+   SimpleStandardMBeanInterface getProxy();
+
+   void setProxy(SimpleStandardMBeanInterface proxy);
+
+   Element getElement();
+
+   void setElement(Element element);
+
+   JavaBean getJavaBean();
+
+   void setJavaBean(JavaBean javaBean);
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/SimpleStandardMBeanInterface.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/SimpleStandardMBeanInterface.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/controller/support/SimpleStandardMBeanInterface.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -29,5 +29,9 @@
  */
 public interface SimpleStandardMBeanInterface
 {
+   Simple getInstance();
+   
    String echoReverse(String test);
+   
+   void touch();
 }

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AbstractAttributeTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AbstractAttributeTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AbstractAttributeTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.metadata.attributes.test;
+
+import java.util.List;
+
+import org.jboss.system.metadata.ServiceAttributeMetaData;
+import org.jboss.system.metadata.ServiceMetaData;
+import org.jboss.system.metadata.ServiceValueMetaData;
+import org.jboss.test.system.metadata.test.AbstractMetaDataTest;
+
+/**
+ * AbstractAttributeTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class AbstractAttributeTest extends AbstractMetaDataTest
+{
+   public AbstractAttributeTest(String name)
+   {
+      super(name);
+   }
+
+   protected ServiceAttributeMetaData unmarshallSingleAttribute() throws Exception
+   {
+      ServiceMetaData metaData = unmarshalSingleMBean();
+      assertOthers(metaData);
+      List<ServiceAttributeMetaData> attributes = metaData.getAttributes();
+      assertNotNull(attributes);
+      assertEquals(1, attributes.size());
+      return attributes.get(0);
+   }
+
+   public List<ServiceAttributeMetaData> unmarshallMultipleAttributes(int size) throws Exception
+   {
+      ServiceMetaData metaData = unmarshalSingleMBean();
+      assertOthers(metaData);
+      List<ServiceAttributeMetaData> attributes = metaData.getAttributes();
+      assertNotNull(attributes);
+      assertEquals(size, attributes.size());
+      return attributes;
+   }
+
+   protected ServiceValueMetaData unmarshallSingleValue() throws Exception
+   {
+      ServiceMetaData metaData = unmarshalSingleMBean();
+      assertOthers(metaData);
+      List<ServiceAttributeMetaData> attributes = metaData.getAttributes();
+      assertNotNull(attributes);
+      assertEquals(1, attributes.size());
+      ServiceAttributeMetaData attribute = attributes.get(0);
+      assertAttributeName(attribute, "Attribute");
+      ServiceValueMetaData result = attribute.getValue();
+      assertNotNull(result);
+      return result;
+   }
+
+   public void noAttributes() throws Exception
+   {
+      ServiceMetaData metaData = unmarshalSingleMBean();
+      assertNoAttributes(metaData);
+      assertOthers(metaData);
+   }
+
+   protected void assertOthers(ServiceMetaData metaData) throws Exception
+   {
+      assertEquals(testBasicMBeanName, metaData.getObjectName());
+      assertEquals(testBasicMBeanCode, metaData.getCode());
+      assertNull(metaData.getInterfaceName());
+      assertDefaultConstructor(metaData);
+      assertNoXMBean(metaData);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AttributeUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AttributeUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AttributeUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.metadata.attributes.test;
+
+import java.util.List;
+
+import org.jboss.system.metadata.ServiceAttributeMetaData;
+import org.jboss.system.metadata.ServiceMetaData;
+
+/**
+ * AttributeUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class AttributeUnitTestCase extends AbstractAttributeTest
+{
+   public AttributeUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testAttributeNone() throws Exception
+   {
+      noAttributes();
+   }
+
+   public void testAttributeOne() throws Exception
+   {
+      ServiceAttributeMetaData attribute = unmarshallSingleAttribute();
+      assertTextAttribute(attribute);
+   }
+
+   public void testAttributeTwo() throws Exception
+   {
+      List<ServiceAttributeMetaData> attributes = unmarshallMultipleAttributes(2);
+      ServiceAttributeMetaData test = attributes.get(0);
+      assertTextAttribute(test, "Attribute1", "value1");
+      test = attributes.get(1);
+      assertTextAttribute(test, "Attribute2", "value2");
+   }
+
+   public void testAttributeNoValue() throws Exception
+   {
+      noAttributes();
+   }
+
+   public void testAttributeEmptyValue() throws Exception
+   {
+      noAttributes();
+   }
+
+   public void testAttributeNoTrim() throws Exception
+   {
+      ServiceAttributeMetaData attribute = unmarshallSingleAttribute();
+      assertTextAttribute(attribute, false, true);
+   }
+
+   public void testAttributeNoReplace() throws Exception
+   {
+      ServiceAttributeMetaData attribute = unmarshallSingleAttribute();
+      assertTextAttribute(attribute, true, false);
+   }
+
+   protected void assertOthers(ServiceMetaData metaData) throws Exception
+   {
+      super.assertOthers(metaData);
+      assertNoDependencies(metaData);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/AttributeValueUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,74 @@
+/*
+* 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.metadata.attributes.test;
+
+import org.jboss.system.metadata.ServiceValueMetaData;
+
+/**
+ * AttributeValueUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class AttributeValueUnitTestCase extends AbstractAttributeTest
+{
+   public AttributeValueUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testAttributeValueText() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertTextValue(value, "value");
+   }
+
+   public void testAttributeValueDepends() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertDependencyValue(value, TEST1);
+   }
+
+   public void testAttributeValueDependsList() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertDependencyListValue(value, TEST1);
+   }
+
+   public void testAttributeValueElement() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertElementValue(value, "dummy");
+   }
+
+   public void testAttributeValueJavaBean() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertJavaBeanValue(value, "dummy");
+   }
+
+   public void testAttributeValueJBXB() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertJBXBValue(value, "dummy");
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/DependsAttributeUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.metadata.attributes.test;
+
+import java.util.List;
+
+import org.jboss.system.metadata.ServiceAttributeMetaData;
+
+/**
+ * DependsAttributeUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsAttributeUnitTestCase extends AbstractAttributeTest
+{
+   public DependsAttributeUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testDependsAttributeNone() throws Exception
+   {
+      noAttributes();
+   }
+
+   public void testDependsAttributeOne() throws Exception
+   {
+      ServiceAttributeMetaData attribute = unmarshallSingleAttribute();
+      assertDependsAttribute(attribute);
+   }
+
+   public void testDependsAttributeTwo() throws Exception
+   {
+      List<ServiceAttributeMetaData> attributes = unmarshallMultipleAttributes(2);
+      ServiceAttributeMetaData test = attributes.get(0);
+      assertDependsAttribute(test, "Attribute1", TEST1);
+      test = attributes.get(1);
+      assertDependsAttribute(test, "Attribute2", TEST2);
+   }
+
+   public void testDependsAttributeNoName() throws Exception
+   {
+      // REVIEW shouldn't this be an error?
+      noAttributes();
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/attributes/test/DependsListAttributeUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,78 @@
+/*
+* 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.metadata.attributes.test;
+
+import java.util.List;
+
+import org.jboss.system.metadata.ServiceAttributeMetaData;
+
+/**
+ * DependsListAttributeUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependsListAttributeUnitTestCase extends AbstractAttributeTest
+{
+   public DependsListAttributeUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testDependsListAttributeNone() throws Exception
+   {
+      noAttributes();
+   }
+
+   public void testDependsListAttributeOne() throws Exception
+   {
+      ServiceAttributeMetaData attribute = unmarshallSingleAttribute();
+      assertDependsListAttribute(attribute);
+   }
+
+   public void testDependsListAttributeTwo() throws Exception
+   {
+      List<ServiceAttributeMetaData> attributes = unmarshallMultipleAttributes(2);
+      ServiceAttributeMetaData test = attributes.get(0);
+      assertDependsListAttribute(test, "Attribute1", TEST1);
+      test = attributes.get(1);
+      assertDependsListAttribute(test, "Attribute2", TEST2);
+   }
+
+   public void testDependsListAttributeNoValue() throws Exception
+   {
+      ServiceAttributeMetaData attribute = unmarshallSingleAttribute();
+      assertDependsListAttributeEmpty(attribute);
+   }
+
+   public void testDependsListAttributeEmptyValue() throws Exception
+   {
+      ServiceAttributeMetaData attribute = unmarshallSingleAttribute();
+      assertDependsListAttributeEmpty(attribute);
+   }
+
+   public void testDependsListAttributeNoName() throws Exception
+   {
+      // REVIEW shouldn't this be an error?
+      noAttributes();
+   }
+}

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/basic/test/BasicMBeanUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -24,7 +24,6 @@
 import javax.management.MalformedObjectNameException;
 
 import org.jboss.deployment.DeploymentException;
-import org.jboss.system.ConfigurationException;
 import org.jboss.system.metadata.ServiceMetaData;
 import org.jboss.test.system.metadata.test.AbstractMetaDataTest;
 
@@ -65,16 +64,6 @@
       assertFailUnmarshal(MalformedObjectNameException.class);
    }
 
-   public void testBasicMBeanNoCode() throws Exception
-   {
-      assertFailUnmarshal(ConfigurationException.class);
-   }
-
-   public void testBasicMBeanEmptyCode() throws Exception
-   {
-      assertFailUnmarshal(ConfigurationException.class);
-   }
-
    public void testBasicMBeanInterface() throws Exception
    {
       ServiceMetaData metaData = unmarshalSingleMBean();

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/constructor/test/ConstructorUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/constructor/test/ConstructorUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/constructor/test/ConstructorUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,7 +21,6 @@
 */
 package org.jboss.test.system.metadata.constructor.test;
 
-import org.jboss.system.ConfigurationException;
 import org.jboss.system.metadata.ServiceMetaData;
 import org.jboss.test.system.metadata.test.AbstractMetaDataTest;
 
@@ -67,21 +66,6 @@
       assertOthers(metaData);
    }
 
-   public void testConstructorNoType() throws Exception
-   {
-      assertFailUnmarshal(ConfigurationException.class);
-   }
-
-   public void testConstructorEmptyType() throws Exception
-   {
-      assertFailUnmarshal(ConfigurationException.class);
-   }
-
-   public void testConstructorNoValue() throws Exception
-   {
-      assertFailUnmarshal(ConfigurationException.class);
-   }
-
    public void testConstructorEmptyValue() throws Exception
    {
       ServiceMetaData metaData = unmarshalSingleMBean();

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/depends/test/DependsOptionalAttributeUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,10 +21,6 @@
 */
 package org.jboss.test.system.metadata.depends.test;
 
-import javax.management.MalformedObjectNameException;
-import javax.management.ObjectName;
-
-import org.jboss.deployment.DeploymentException;
 import org.jboss.system.metadata.ServiceMetaData;
 import org.jboss.test.system.metadata.test.AbstractMetaDataTest;
 
@@ -46,21 +42,6 @@
       dependsOne();
    }
 
-   public void testDependsOptionalAttributeEmpty() throws Exception
-   {
-      assertFailUnmarshal(DeploymentException.class);
-   }
-
-   public void testDependsOptionalAttributeNoNestedMBean() throws Exception
-   {
-      assertFailUnmarshal(DeploymentException.class);
-   }
-
-   public void testDependsInvalidObjectName() throws Exception
-   {
-      assertFailUnmarshal(MalformedObjectNameException.class);
-   }
-
    public void testDependsOptionalAttributeNestedMBean() throws Exception
    {
       dependsOne();
@@ -76,34 +57,17 @@
       dependsOne();
    }
 
-   public void testDependsListOptionalAttributeElementEmpty() throws Exception
-   {
-      assertFailUnmarshal(DeploymentException.class);
-   }
-
-   public void testDependsListOptionalAttributeElementNoNestedMBean() throws Exception
-   {
-      assertFailUnmarshal(DeploymentException.class);
-   }
-
-   public void testDependsListOptionalAttributeInvalidObjectName() throws Exception
-   {
-      assertFailUnmarshal(MalformedObjectNameException.class);
-   }
-
    protected void dependsOne() throws Exception
    {
       ServiceMetaData metaData = unmarshalSingleMBean();
-      ObjectName[] expected = { new ObjectName("test:test=1") };
-      assertDependencies(metaData, expected);
+      assertAttribute(metaData, "AttributeName");
       assertOthers(metaData);
    }
 
    protected void dependsTwo() throws Exception
    {
       ServiceMetaData metaData = unmarshalSingleMBean();
-      ObjectName[] expected = { new ObjectName("test:test=1"), new ObjectName("test:test=2") };
-      assertDependencies(metaData, expected);
+      assertAttributes(metaData, new String[] { "AttributeName1", "AttributeName2" });
       assertOthers(metaData);
    }
 
@@ -113,7 +77,7 @@
       assertEquals(testBasicMBeanCode, metaData.getCode());
       assertNull(metaData.getInterfaceName());
       assertDefaultConstructor(metaData);
-      // TODO assertAttributes(metaData);
+      assertNoDependencies(metaData);
       assertNoXMBean(metaData);
    }
 }

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/depends/test/DependsUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/depends/test/DependsUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/depends/test/DependsUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,10 +21,8 @@
 */
 package org.jboss.test.system.metadata.depends.test;
 
-import javax.management.MalformedObjectNameException;
 import javax.management.ObjectName;
 
-import org.jboss.deployment.DeploymentException;
 import org.jboss.system.metadata.ServiceMetaData;
 import org.jboss.test.system.metadata.test.AbstractMetaDataTest;
 
@@ -61,21 +59,6 @@
       dependsOne();
    }
 
-   public void testDependsEmpty() throws Exception
-   {
-      assertFailUnmarshal(DeploymentException.class);
-   }
-
-   public void testDependsNoNestedMBean() throws Exception
-   {
-      assertFailUnmarshal(DeploymentException.class);
-   }
-
-   public void testDependsInvalidObjectName() throws Exception
-   {
-      assertFailUnmarshal(MalformedObjectNameException.class);
-   }
-
    // @review shouldn't an empty depends-list be an error?
    public void testDependsListNone() throws Exception
    {
@@ -97,21 +80,6 @@
       dependsOne();
    }
 
-   public void testDependsListElementEmpty() throws Exception
-   {
-      assertFailUnmarshal(DeploymentException.class);
-   }
-
-   public void testDependsListElementNoNestedMBean() throws Exception
-   {
-      assertFailUnmarshal(DeploymentException.class);
-   }
-
-   public void testDependsListInvalidObjectName() throws Exception
-   {
-      assertFailUnmarshal(MalformedObjectNameException.class);
-   }
-
    protected void dependsNone() throws Exception
    {
       ServiceMetaData metaData = unmarshalSingleMBean();
@@ -122,7 +90,7 @@
    protected void dependsOne() throws Exception
    {
       ServiceMetaData metaData = unmarshalSingleMBean();
-      ObjectName[] expected = { new ObjectName("test:test=1") };
+      ObjectName[] expected = { TEST1 };
       assertDependencies(metaData, expected);
       assertOthers(metaData);
    }
@@ -130,7 +98,7 @@
    protected void dependsTwo() throws Exception
    {
       ServiceMetaData metaData = unmarshalSingleMBean();
-      ObjectName[] expected = { new ObjectName("test:test=1"), new ObjectName("test:test=2") };
+      ObjectName[] expected = { TEST1, TEST2 };
       assertDependencies(metaData, expected);
       assertOthers(metaData);
    }

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/test/AbstractMetaDataTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/test/AbstractMetaDataTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/test/AbstractMetaDataTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -22,6 +22,7 @@
 package org.jboss.test.system.metadata.test;
 
 import java.net.URL;
+import java.util.Arrays;
 import java.util.HashSet;
 import java.util.List;
 
@@ -32,10 +33,20 @@
 import org.jboss.mx.util.ObjectNameFactory;
 import org.jboss.system.metadata.ServiceAttributeMetaData;
 import org.jboss.system.metadata.ServiceConstructorMetaData;
+import org.jboss.system.metadata.ServiceDependencyListValueMetaData;
 import org.jboss.system.metadata.ServiceDependencyMetaData;
+import org.jboss.system.metadata.ServiceDependencyValueMetaData;
+import org.jboss.system.metadata.ServiceElementValueMetaData;
+import org.jboss.system.metadata.ServiceJBXBValueMetaData;
+import org.jboss.system.metadata.ServiceJavaBeanValueMetaData;
 import org.jboss.system.metadata.ServiceMetaData;
+import org.jboss.system.metadata.ServiceTextValueMetaData;
+import org.jboss.system.metadata.ServiceValueMetaData;
 import org.jboss.test.AbstractSystemTest;
 import org.jboss.test.AbstractTestDelegate;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
 
 /**
  * A MetaDataTest.
@@ -45,9 +56,12 @@
  */
 public class AbstractMetaDataTest extends AbstractSystemTest
 {
-   protected ObjectName testBasicMBeanName = ObjectNameFactory.create("jboss.test:type=BasicMBeanName");
-   protected String testBasicMBeanCode = "BasicMBeanCode";
-   protected String testBasicMBeanInterface = "BasicMBeanInterface";
+   protected static ObjectName testBasicMBeanName = ObjectNameFactory.create("jboss.test:type=BasicMBeanName");
+   protected static String testBasicMBeanCode = "BasicMBeanCode";
+   protected static String testBasicMBeanInterface = "BasicMBeanInterface";
+   protected static ObjectName TEST1 = ObjectNameFactory.create("test:test=1");
+   protected static ObjectName TEST2 = ObjectNameFactory.create("test:test=2");
+   protected static ObjectName[] NO_OBJECT_NAMES = new ObjectName[0];
    
    /**
     * Create a new ContainerTest.
@@ -189,7 +203,222 @@
       assertNotNull(attributes);
       assertEquals(0, attributes.size());
    }
+
+   protected void assertAttributeName(ServiceAttributeMetaData attribute, String name) throws Exception
+   {
+      assertNotNull(attribute);
+      String result = attribute.getName();
+      assertNotNull(result);
+      assertEquals("Expected attribute with name " + name + " got " + result, name, result);
+   }
+
+   protected void assertAttribute(ServiceMetaData metaData, String name) throws Exception
+   {
+      assertNotNull(metaData);
+      List<ServiceAttributeMetaData> attributes = metaData.getAttributes();
+      assertNotNull(attributes);
+      assertEquals(1, attributes.size());
+      ServiceAttributeMetaData attribute = attributes.get(0);
+      assertAttributeName(attribute, name);
+   }
+
+   protected void assertAttributes(ServiceMetaData metaData, String[] names) throws Exception
+   {
+      assertNotNull(names);
+      assertNotNull(metaData);
+      List<ServiceAttributeMetaData> attributes = metaData.getAttributes();
+      assertNotNull(attributes);
+      assertEquals(names.length, attributes.size());
+      ServiceAttributeMetaData attribute = attributes.get(0);
+      for (String name : names)
+         assertAttributeName(attribute, name);
+   }
    
+   protected void assertAttribute(ServiceAttributeMetaData attribute, boolean trim, boolean replace, String name) throws Exception
+   {
+      assertNotNull(attribute);
+      String result = attribute.getName();
+      assertNotNull(result);
+      assertEquals(name, result);
+      assertEquals(trim, attribute.isTrim());
+      assertEquals(replace, attribute.isReplace());
+   }
+
+   protected void assertTextAttribute(ServiceAttributeMetaData attribute) throws Exception
+   {
+      assertTextAttribute(attribute, true, true, "Attribute", "value");
+   }
+
+   protected void assertTextAttribute(ServiceAttributeMetaData attribute, String value) throws Exception
+   {
+      assertTextAttribute(attribute, true, true, "Attribute", value);
+   }
+
+   protected void assertTextAttribute(ServiceAttributeMetaData attribute, String name, String value) throws Exception
+   {
+      assertTextAttribute(attribute, true, true, name, value);
+   }
+
+   protected void assertTextAttribute(ServiceAttributeMetaData attribute, boolean trim, boolean replace) throws Exception
+   {
+      assertTextAttribute(attribute, trim, replace, "Attribute", "value");
+   }
+
+   protected void assertTextAttribute(ServiceAttributeMetaData attribute, boolean trim, boolean replace, String name, String value) throws Exception
+   {
+      assertAttribute(attribute, trim, replace, name);
+      ServiceValueMetaData actual = attribute.getValue();
+      assertNotNull(actual);
+      assertTextValue(actual, value);
+   }
+
+   protected void assertDependsAttribute(ServiceAttributeMetaData attribute) throws Exception
+   {
+      assertDependsAttribute(attribute, false, false, "Attribute", TEST1);
+   }
+
+   protected void assertDependsAttribute(ServiceAttributeMetaData attribute, String name, ObjectName value) throws Exception
+   {
+      assertDependsAttribute(attribute, false, false, name, value);
+   }
+
+   protected void assertDependsAttribute(ServiceAttributeMetaData attribute, boolean trim, boolean replace, String name, ObjectName value) throws Exception
+   {
+      assertAttribute(attribute, trim, replace, name);
+      ServiceValueMetaData actual = attribute.getValue();
+      assertNotNull(actual);
+      assertDependencyValue(actual, value);
+   }
+
+   protected void assertDependsListAttribute(ServiceAttributeMetaData attribute) throws Exception
+   {
+      assertDependsListAttribute(attribute, false, false, "Attribute", TEST1);
+   }
+
+   protected void assertDependsListAttribute(ServiceAttributeMetaData attribute, String name, ObjectName value) throws Exception
+   {
+      assertDependsListAttribute(attribute, false, false, name, value);
+   }
+
+   protected void assertDependsListAttribute(ServiceAttributeMetaData attribute, boolean trim, boolean replace, String name, ObjectName value) throws Exception
+   {
+      assertDependsListAttribute(attribute, trim, replace, name, new ObjectName[] { value });
+   }
+
+   protected void assertDependsListAttribute(ServiceAttributeMetaData attribute, boolean trim, boolean replace, String name, ObjectName[] value) throws Exception
+   {
+      assertAttribute(attribute, trim, replace, name);
+      ServiceValueMetaData actual = attribute.getValue();
+      assertNotNull(actual);
+      assertDependencyListValue(actual, value);
+   }
+
+   protected void assertDependsListAttributeEmpty(ServiceAttributeMetaData attribute) throws Exception
+   {
+      assertDependsListAttribute(attribute, false, false, "Attribute", NO_OBJECT_NAMES);
+   }
+   
+   protected void assertTextValue(ServiceValueMetaData actual, String expected) throws Exception
+   {
+      assertNotNull(expected);
+      assertNotNull(actual);
+      
+      ServiceTextValueMetaData value = assertInstanceOf(ServiceTextValueMetaData.class, actual);
+      
+      assertEquals(expected, value.getText());
+   }
+   
+   protected void assertDependencyValue(ServiceValueMetaData actual, ObjectName expected) throws Exception
+   {
+      assertDependencyValue(actual, expected, null);
+   }
+   
+   protected void assertDependencyValue(ServiceValueMetaData actual, ObjectName expected, String proxyType) throws Exception
+   {
+      assertNotNull(expected);
+      assertNotNull(actual);
+      
+      ServiceDependencyValueMetaData value = assertInstanceOf(ServiceDependencyValueMetaData.class, actual);
+      
+      assertEquals(expected, value.getObjectName());
+      assertEquals(proxyType, value.getProxyType());
+   }
+   
+   protected void assertDependencyListValueEmpty(ServiceValueMetaData actual) throws Exception
+   {
+      assertDependencyListValue(actual, NO_OBJECT_NAMES );
+   }
+   
+   protected void assertDependencyListValue(ServiceValueMetaData actual, ObjectName expected) throws Exception
+   {
+      assertDependencyListValue(actual, new ObjectName[] { expected } );
+   }
+   
+   protected void assertDependencyListValue(ServiceValueMetaData actual, ObjectName[] expected) throws Exception
+   {
+      assertNotNull(expected);
+      assertNotNull(actual);
+      
+      ServiceDependencyListValueMetaData value = assertInstanceOf(ServiceDependencyListValueMetaData.class, actual);
+      
+      List<ObjectName> list = value.getObjectNames();
+      assertNotNull(list);
+      ObjectName[] test = list.toArray(new ObjectName[list.size()]);
+      
+      assertTrue("Expected " + Arrays.asList(expected) + " got " + Arrays.asList(test), Arrays.equals(expected, test));
+   }
+   
+   protected void assertElementValue(ServiceValueMetaData actual, String expected) throws Exception
+   {
+      assertNotNull(expected);
+      assertNotNull(actual);
+      
+      ServiceElementValueMetaData value = assertInstanceOf(ServiceElementValueMetaData.class, actual);
+      
+      Element element = value.getElement();
+      assertNotNull(element);
+      
+      String name = element.getTagName();
+      assertNotNull(name);
+      
+      assertEquals(expected, name);
+   }
+   
+   protected void assertJavaBeanValue(ServiceValueMetaData actual, String expected) throws Exception
+   {
+      assertNotNull(actual);
+
+      ServiceJavaBeanValueMetaData value = assertInstanceOf(ServiceJavaBeanValueMetaData.class, actual);
+      
+      Element element = value.getElement();
+      assertChildOfAttribute(element, expected);
+   }
+   
+   protected void assertJBXBValue(ServiceValueMetaData actual, String expected) throws Exception
+   {
+      assertNotNull(actual);
+
+      ServiceJBXBValueMetaData value = assertInstanceOf(ServiceJBXBValueMetaData.class, actual);
+      
+      Element element = value.getElement();
+      assertChildOfAttribute(element, expected);
+   }
+   
+   protected void assertChildOfAttribute(Element element, String expected) throws Exception
+   {
+      assertNotNull(element);
+      
+      String name = element.getTagName();
+      assertEquals("attribute", name);
+      
+      NodeList children = element.getChildNodes();
+      assertEquals(1, children.getLength());
+      Node node = children.item(0);
+      element = assertInstanceOf(Element.class, node);
+      name = element.getTagName();
+      assertEquals(expected, name);
+   }
+   
    protected void assertNoDependencies(ServiceMetaData metaData) throws Exception
    {
       List<ServiceDependencyMetaData> dependencies = metaData.getDependencies();
@@ -207,7 +436,7 @@
          expectedSet.add(expect);
       HashSet<ObjectName> actual = new HashSet<ObjectName>();
       for (ServiceDependencyMetaData depends : dependencies)
-         actual.add(depends.getIDependOn());
+         actual.add(depends.getIDependOnObjectName());
       assertEquals(expectedSet, actual);
    }
    

Modified: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/test/MetaDataTestSuite.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/test/MetaDataTestSuite.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/test/MetaDataTestSuite.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -21,9 +21,15 @@
 */
 package org.jboss.test.system.metadata.test;
 
+import org.jboss.test.system.metadata.attributes.test.AttributeUnitTestCase;
+import org.jboss.test.system.metadata.attributes.test.AttributeValueUnitTestCase;
+import org.jboss.test.system.metadata.attributes.test.DependsAttributeUnitTestCase;
+import org.jboss.test.system.metadata.attributes.test.DependsListAttributeUnitTestCase;
 import org.jboss.test.system.metadata.basic.test.BasicMBeanUnitTestCase;
 import org.jboss.test.system.metadata.constructor.test.ConstructorUnitTestCase;
+import org.jboss.test.system.metadata.depends.test.DependsOptionalAttributeUnitTestCase;
 import org.jboss.test.system.metadata.depends.test.DependsUnitTestCase;
+import org.jboss.test.system.metadata.value.MetaDataValueTestSuite;
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
@@ -49,6 +55,12 @@
       suite.addTest(new TestSuite(BasicMBeanUnitTestCase.class));
       suite.addTest(new TestSuite(ConstructorUnitTestCase.class));
       suite.addTest(new TestSuite(DependsUnitTestCase.class));
+      suite.addTest(new TestSuite(DependsOptionalAttributeUnitTestCase.class));
+      suite.addTest(new TestSuite(AttributeUnitTestCase.class));
+      suite.addTest(new TestSuite(DependsAttributeUnitTestCase.class));
+      suite.addTest(new TestSuite(DependsListAttributeUnitTestCase.class));
+      suite.addTest(new TestSuite(AttributeValueUnitTestCase.class));
+      suite.addTest(MetaDataValueTestSuite.suite());
       
       return suite;
    }

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/AbstractValueTest.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/AbstractValueTest.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/AbstractValueTest.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.metadata.value;
+
+import java.util.List;
+
+import org.jboss.system.metadata.ServiceAttributeMetaData;
+import org.jboss.system.metadata.ServiceMetaData;
+import org.jboss.system.metadata.ServiceValueMetaData;
+import org.jboss.test.system.metadata.test.AbstractMetaDataTest;
+
+/**
+ * AbstractValueTest.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class AbstractValueTest extends AbstractMetaDataTest
+{
+   public AbstractValueTest(String name)
+   {
+      super(name);
+   }
+
+   protected ServiceAttributeMetaData unmarshallSingleAttribute() throws Exception
+   {
+      ServiceMetaData metaData = unmarshalSingleMBean();
+      assertOthers(metaData);
+      List<ServiceAttributeMetaData> attributes = metaData.getAttributes();
+      assertNotNull(attributes);
+      assertEquals(1, attributes.size());
+      return attributes.get(0);
+   }
+
+   protected ServiceValueMetaData unmarshallSingleValue() throws Exception
+   {
+      ServiceMetaData metaData = unmarshalSingleMBean();
+      assertOthers(metaData);
+      List<ServiceAttributeMetaData> attributes = metaData.getAttributes();
+      assertNotNull(attributes);
+      assertEquals(1, attributes.size());
+      ServiceAttributeMetaData attribute = attributes.get(0);
+      assertAttributeName(attribute, "Attribute");
+      ServiceValueMetaData result = attribute.getValue();
+      assertNotNull(result);
+      return result;
+   }
+
+   protected void assertOthers(ServiceMetaData metaData) throws Exception
+   {
+      assertEquals(testBasicMBeanName, metaData.getObjectName());
+      assertEquals(testBasicMBeanCode, metaData.getCode());
+      assertNull(metaData.getInterfaceName());
+      assertDefaultConstructor(metaData);
+      assertNoXMBean(metaData);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/MetaDataValueTestSuite.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/MetaDataValueTestSuite.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/MetaDataValueTestSuite.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,61 @@
+/*
+* 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.metadata.value;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.system.metadata.value.depends.test.DependencyValueUnitTestCase;
+import org.jboss.test.system.metadata.value.dependslist.test.DependencyListValueUnitTestCase;
+import org.jboss.test.system.metadata.value.element.test.ElementValueUnitTestCase;
+import org.jboss.test.system.metadata.value.javabean.test.JavaBeanValueUnitTestCase;
+import org.jboss.test.system.metadata.value.jbxb.test.JBXBValueUnitTestCase;
+import org.jboss.test.system.metadata.value.text.test.TextValueUnitTestCase;
+
+/**
+ * MetaData Value Test Suite.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.8 $
+ */
+public class MetaDataValueTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("MetaData Value Tests");
+
+      suite.addTest(new TestSuite(TextValueUnitTestCase.class));
+      suite.addTest(new TestSuite(DependencyValueUnitTestCase.class));
+      suite.addTest(new TestSuite(DependencyListValueUnitTestCase.class));
+      suite.addTest(new TestSuite(ElementValueUnitTestCase.class));
+      suite.addTest(new TestSuite(JavaBeanValueUnitTestCase.class));
+      suite.addTest(new TestSuite(JBXBValueUnitTestCase.class));
+      
+      return suite;
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/depends/test/DependencyValueUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/depends/test/DependencyValueUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/depends/test/DependencyValueUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -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.metadata.value.depends.test;
+
+import org.jboss.system.metadata.ServiceValueMetaData;
+import org.jboss.test.system.metadata.value.AbstractValueTest;
+
+/**
+ * DependencyValueUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependencyValueUnitTestCase extends AbstractValueTest
+{
+   public DependencyValueUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testDependency() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertDependencyValue(value, TEST1);
+   }
+
+   public void testDependencyProxyType() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertDependencyValue(value, TEST1, "ProxyType");
+   }
+
+   public void testDependencyNested() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertDependencyValue(value, TEST1);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListValueUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListValueUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/dependslist/test/DependencyListValueUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,65 @@
+/*
+* 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.metadata.value.dependslist.test;
+
+import javax.management.ObjectName;
+
+import org.jboss.system.metadata.ServiceValueMetaData;
+import org.jboss.test.system.metadata.value.AbstractValueTest;
+
+/**
+ * DependencyListValueUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DependencyListValueUnitTestCase extends AbstractValueTest
+{
+   public DependencyListValueUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testDependencyListNone() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertDependencyListValueEmpty(value);
+   }
+
+   public void testDependencyListOne() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertDependencyListValue(value, TEST1);
+   }
+
+   public void testDependencyListTwo() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertDependencyListValue(value, new ObjectName[] { TEST1, TEST2 });
+   }
+
+   public void testDependencyListNested() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertDependencyListValue(value, TEST1);
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/element/test/ElementValueUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/element/test/ElementValueUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/element/test/ElementValueUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,45 @@
+/*
+* 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.metadata.value.element.test;
+
+import org.jboss.system.metadata.ServiceValueMetaData;
+import org.jboss.test.system.metadata.value.AbstractValueTest;
+
+/**
+ * ElementValueUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class ElementValueUnitTestCase extends AbstractValueTest
+{
+   public ElementValueUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testElement() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertElementValue(value, "dummy");
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/javabean/test/JavaBeanValueUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/javabean/test/JavaBeanValueUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/javabean/test/JavaBeanValueUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,45 @@
+/*
+* 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.metadata.value.javabean.test;
+
+import org.jboss.system.metadata.ServiceValueMetaData;
+import org.jboss.test.system.metadata.value.AbstractValueTest;
+
+/**
+ * JavaBeanValueUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class JavaBeanValueUnitTestCase extends AbstractValueTest
+{
+   public JavaBeanValueUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testJavaBean() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertJavaBeanValue(value, "dummy");
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/jbxb/test/JBXBValueUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/jbxb/test/JBXBValueUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/jbxb/test/JBXBValueUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,45 @@
+/*
+* 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.metadata.value.jbxb.test;
+
+import org.jboss.system.metadata.ServiceValueMetaData;
+import org.jboss.test.system.metadata.value.AbstractValueTest;
+
+/**
+ * JBXBValueUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class JBXBValueUnitTestCase extends AbstractValueTest
+{
+   public JBXBValueUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testJBXB() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertJBXBValue(value, "dummy");
+   }
+}

Added: branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/text/test/TextValueUnitTestCase.java
===================================================================
--- branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/text/test/TextValueUnitTestCase.java	2006-08-09 16:32:02 UTC (rev 55443)
+++ branches/MC_VDF_WORK/system-jmx/src/tests/org/jboss/test/system/metadata/value/text/test/TextValueUnitTestCase.java	2006-08-09 16:56:31 UTC (rev 55444)
@@ -0,0 +1,45 @@
+/*
+* 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.metadata.value.text.test;
+
+import org.jboss.system.metadata.ServiceValueMetaData;
+import org.jboss.test.system.metadata.value.AbstractValueTest;
+
+/**
+ * TextValueUnitTestCase.
+ * 
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class TextValueUnitTestCase extends AbstractValueTest
+{
+   public TextValueUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testText() throws Exception
+   {
+      ServiceValueMetaData value = unmarshallSingleValue();
+      assertTextValue(value, "value");
+   }
+}




More information about the jboss-cvs-commits mailing list