Package org.jboss.system.metadata

Examples of org.jboss.system.metadata.ServiceValueMetaData


      assertValueFactoryValue(value, Arrays.asList(one, two), DEFAULT);
   }
  
   public void testTrimAndReplace() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      ServiceValueFactoryParameterMetaData one = new ServiceValueFactoryParameterMetaData(ONE, null, null);
      ServiceValueFactoryParameterMetaData two = new ServiceValueFactoryParameterMetaData(UNFIXED, null, null);
     
      assertValueFactoryValue(value, Arrays.asList(one, two), DEFAULT);
     
View Full Code Here


     
   }
  
   public void testTrimAndReplaceWithValue() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      ServiceValueFactoryParameterMetaData one = new ServiceValueFactoryParameterMetaData(ONE, null, INTEGER);
      ServiceValueFactoryParameterMetaData two = new ServiceValueFactoryParameterMetaData(UNFIXED, null, null);
     
      assertValueFactoryValue(value, Arrays.asList(one, two), DEFAULT);
     
View Full Code Here

     
   }
  
   public void testTrimAndReplaceWithValueAndOverride() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      ServiceValueFactoryParameterMetaData one = new ServiceValueFactoryParameterMetaData(ONE, null, INTEGER);
      ServiceValueFactoryParameterMetaData two = new ServiceValueFactoryParameterMetaData(ONE, null, null);
     
      assertValueFactoryValue(value, Arrays.asList(one, two), DEFAULT);
     
View Full Code Here

   }

   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);
   }
View Full Code Here

   }

   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);
   }
View Full Code Here

   }

   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);
   }
View Full Code Here

      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;
   }
View Full Code Here

      super(name);
   }

   public void testAttributeValueText() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      assertTextValue(value, "value");
   }
View Full Code Here

      assertTextValue(value, "value");
   }

   public void testAttributeValueDepends() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      assertDependencyValue(value, TEST1);
   }
View Full Code Here

      assertDependencyValue(value, TEST1);
   }

   public void testAttributeValueDependsList() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      assertDependencyListValue(value, TEST1);
   }
View Full Code Here

TOP

Related Classes of org.jboss.system.metadata.ServiceValueMetaData

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.