Examples of MethodInfo


Examples of org.jboss.reflect.spi.MethodInfo

      populateParameterTypes(allMethods, METHOD, Collections.EMPTY_LIST);
   }
  
   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));
View Full Code Here

Examples of org.jboss.reflect.spi.MethodInfo

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

Examples of org.jboss.reflect.spi.MethodInfo

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

Examples of org.jboss.reflect.spi.MethodInfo

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

Examples of org.jboss.reflect.spi.MethodInfo

      catch (IllegalArgumentException good) {}
   }
  
   public void testPartialMismatch()
   {
      MethodInfo mi = new MockMethodInfo(METHOD, new TypeInfo[]{ INTEGER_TYPE, INTEGER_TYPE } );
      allMethods.add(mi);
     
      ServiceValueFactoryParameterMetaData one = new ServiceValueFactoryParameterMetaData(ONE, null);
      ServiceValueFactoryParameterMetaData two = new ServiceValueFactoryParameterMetaData(TWO, LONG);
     
View Full Code Here

Examples of org.jboss.reflect.spi.MethodInfo

   }

   @SuppressWarnings("unchecked")
   public void testNameMismatch()
   {
      MethodInfo mi = new MockMethodInfo(METHOD, new TypeInfo[0]);
      allMethods.add(mi);
     
      try
      {
         populateParameterTypes(allMethods, OTHER_METHOD, Collections.EMPTY_LIST);
View Full Code Here

Examples of org.jboss.reflect.spi.MethodInfo

      catch (IllegalArgumentException good) {}
   }

   public void testZeroParamsToOneParam()
   {
      MethodInfo mi = new MockMethodInfo(METHOD, new TypeInfo[0]);
      allMethods.add(mi);
     
      ServiceValueFactoryParameterMetaData one = new ServiceValueFactoryParameterMetaData(ONE);
     
      try
View Full Code Here

Examples of org.jboss.reflect.spi.MethodInfo

   }

   @SuppressWarnings("unchecked")
   public void testOneParamToZeroParams()
   {
      MethodInfo mi = new MockMethodInfo(METHOD, new TypeInfo[] { OBJECT_TYPE });
      allMethods.add(mi);
     
      try
      {
         populateParameterTypes(allMethods, METHOD, Collections.EMPTY_LIST);
View Full Code Here

Examples of org.jboss.reflect.spi.MethodInfo

      catch (IllegalArgumentException good) {}
   }

   public void testTwoParamsToOneParam()
   {
      MethodInfo mi = new MockMethodInfo(METHOD, new TypeInfo[]{ INTEGER_TYPE, LONG_TYPE } );
      allMethods.add(mi);
     
      ServiceValueFactoryParameterMetaData one = new ServiceValueFactoryParameterMetaData(ONE, INTEGER);
     
      try
View Full Code Here

Examples of org.jboss.reflect.spi.MethodInfo

      catch (IllegalArgumentException good) {}
   }

   public void testOneParamToTwoParams()
   {
      MethodInfo mi = new MockMethodInfo(METHOD, new TypeInfo[] { INTEGER_TYPE });
      allMethods.add(mi);
     
      ServiceValueFactoryParameterMetaData one = new ServiceValueFactoryParameterMetaData(ONE, INTEGER);
      ServiceValueFactoryParameterMetaData two = new ServiceValueFactoryParameterMetaData(TWO, INTEGER);
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.