Package org.jboss.system.metadata

Examples of org.jboss.system.metadata.ServiceValueFactoryParameterMetaData


   }

   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


   }

   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

   }

   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

   }

   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

   }

   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

   }

   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

   }
  
   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

   public void testFullySpecifiedMatch()
   {
      MethodInfo mi = new MockMethodInfo(METHOD, new TypeInfo[]{ INTEGER_TYPE, LONG_TYPE } );
      allMethods.add(mi);
     
      ServiceValueFactoryParameterMetaData one = new ServiceValueFactoryParameterMetaData(ONE, INTEGER);
      ServiceValueFactoryParameterMetaData two = new ServiceValueFactoryParameterMetaData(TWO, LONG);
      populateParameterTypes(allMethods, METHOD, Arrays.asList(one, two));
     
      assertEquals(INTEGER, one.getParameterTypeName());
      assertEquals(LONG, two.getParameterTypeName());
   }
View Full Code Here

TOP

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

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.