Package org.jboss.system.metadata

Examples of org.jboss.system.metadata.ServiceValueMetaData


      assertValueFactoryValue(value, Arrays.asList(one), DEFAULT);
   }

   public void testState() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      assertValueFactoryValue(value, SIMPLE_LIST, DEFAULT, ControllerState.CREATE);
   }
View Full Code Here


      assertValueFactoryValue(value, SIMPLE_LIST, DEFAULT, ControllerState.CREATE);
   }

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

      assertValueFactoryValue(value, Arrays.asList(one, two), DEFAULT);
   }

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

      assertValueFactoryValue(value, Arrays.asList(one, two), DEFAULT);
   }

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

      assertValueFactoryValue(value, Arrays.asList(one, two), DEFAULT);
   }

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

      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

      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

   }

   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

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.