Package org.jboss.system.metadata

Examples of org.jboss.system.metadata.ServiceValueMetaData


   }

   @SuppressWarnings("unchecked")
   public void testMinimal() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      assertValueFactoryValue(value, Collections.EMPTY_LIST, null);
   }
View Full Code Here


      catch (Exception expected) {}
   }

   public void testNoDefault() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      assertValueFactoryValue(value, SIMPLE_LIST, null);
   }
View Full Code Here

   }

   @SuppressWarnings("unchecked")
   public void testNoParameter() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      assertValueFactoryValue(value, Collections.EMPTY_LIST, DEFAULT);
   }
View Full Code Here

      assertValueFactoryValue(value, Collections.EMPTY_LIST, DEFAULT);
   }

   public void testNullParameter() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      ServiceValueFactoryParameterMetaData one = new ServiceValueFactoryParameterMetaData(null, 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 testElementParameter() throws Exception
   {
      ServiceValueMetaData value = unmarshallSingleValue();
      ServiceValueFactoryParameterMetaData one = new ServiceValueFactoryParameterMetaData("<element/>", null, null);
      assertValueFactoryValue(value, Arrays.asList(one), DEFAULT);
   }
View Full Code Here

      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

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.