Package org.jboss.test.managed.factory.support.defaults

Examples of org.jboss.test.managed.factory.support.defaults.DefaultsBean


   /**
    * Test default value for Boolean property types
    */
   public void testBooleanDefaults()
   {
      DefaultsBean bean = new DefaultsBean();
      ManagedObject managedObject = super.initManagedObject(bean);
      ManagedProperty propBoolean = managedObject.getProperty("propBoolean");
      SimpleValue defaultValue = (SimpleValue) propBoolean.getDefaultValue();
      assertNotNull(defaultValue);
      assertEquals(SimpleMetaType.BOOLEAN, defaultValue.getMetaType());
View Full Code Here


    * Test default value for a Properties type
    */
   public void testPropertiesDefault()
      throws Exception
   {
      DefaultsBean bean = new DefaultsBean();
      ManagedObject managedObject = super.initManagedObject(bean);
      ManagedProperty props = managedObject.getProperty("props");
      MetaValue defaultValue = props.getDefaultValue();
      assertNotNull(defaultValue);
      getLog().debug("props default: "+defaultValue);
View Full Code Here

   /**
    * Test default value for a Properties type with a DefaultValueBuilderFactory
    */
   public void testOverridenPropertiesDefault()
   {
      DefaultsBean bean = new DefaultsBean();
      ManagedObject managedObject = super.initManagedObject(bean);
      ManagedProperty props = managedObject.getProperty("props2");
      MetaValue defaultValue = props.getDefaultValue();
      assertNotNull(defaultValue);
      getLog().debug("props default: "+defaultValue);
View Full Code Here

    * Test default value for a ObjectName type with SimpleMetaType.STRING type
    */
   public void testStringObjectNameDefault()
      throws Exception
   {
      DefaultsBean bean = new DefaultsBean();
      ManagedObject managedObject = super.initManagedObject(bean);
      ManagedProperty nameAsString = managedObject.getProperty("nameAsString");
      MetaValue defaultValue = nameAsString.getDefaultValue();
      assertNotNull(defaultValue);
      getLog().debug("nameAsString default: "+defaultValue);
View Full Code Here

    * Test default value for a ObjectName type with PropertiesMetaType
    */
   public void testPropertiesObjectNameDefault()
      throws Exception
   {
      DefaultsBean bean = new DefaultsBean();
      ManagedObject managedObject = super.initManagedObject(bean);
      ManagedProperty nameAsProperties = managedObject.getProperty("nameAsProperties");
      MetaValue defaultValue = nameAsProperties.getDefaultValue();
      assertNotNull(defaultValue);
      getLog().debug("nameAsProperties default: "+defaultValue);
View Full Code Here

    * Test default value for a ObjectName type with default meta type
    */
   public void testDefaultObjectNameDefault()
      throws Exception
   {
      DefaultsBean bean = new DefaultsBean();
      ManagedObject managedObject = super.initManagedObject(bean);
      ManagedProperty nameAsProperties = managedObject.getProperty("nameAsDefault");
      MetaValue defaultValue = nameAsProperties.getDefaultValue();
      assertNotNull(defaultValue);
      getLog().debug("nameAsProperties default: "+defaultValue);
View Full Code Here

TOP

Related Classes of org.jboss.test.managed.factory.support.defaults.DefaultsBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.