test_class.file: simple-spring-memcached/src/test/java/com/google/code/ssm/util/UtilsTest.java
test_class.identifier: UtilsTest
test_case.body: @Test
      public void getMethodArgs() throws Exception {
          final Object[] answer = new Object[] { "blue", "bubba" };
          final Object[] args = new Object[] { null, "bubba", "blue" };
  
          final Method method = AOPTargetClass1.class.getDeclaredMethod("doIt", String.class, String.class, String.class);
  
          try {
              Utils.getMethodArgs(Arrays.asList(1, -1), args, method.toString());
              fail("Expected Exception");
          } catch (InvalidParameterException ex) {
              assertTrue(ex.getMessage().indexOf("is invalid") != -1);
              System.out.println(ex.getMessage());
          }
  
          try {
              Utils.getMethodArgs(Arrays.asList(2, 3), args, method.toString());
              fail("Expected Exception");
          } catch (InvalidParameterException ex) {
              assertTrue(ex.getMessage().indexOf("too big") != -1);
              System.out.println(ex.getMessage());
          }
          try {
              Utils.getMethodArgs(Arrays.asList(4, 0), args, method.toString());
              fail("Expected Exception");
          } catch (InvalidParameterException ex) {
              assertTrue(ex.getMessage().indexOf("too big") != -1);
              System.out.println(ex.getMessage());
          }
  
          try {
              Utils.getMethodArgs(Arrays.asList(1, 0), args, method.toString());
              fail("Expected Exception");
          } catch (InvalidParameterException ex) {
              assertTrue(ex.getMessage().indexOf("null") != -1);
              System.out.println(ex.getMessage());
          }
  
          assertArrayEquals(answer, Utils.getMethodArgs(Arrays.asList(2, 1), args, method.toString()));
      }
test_case.class_method_signature: UtilsTest.getMethodArgs()
test_case.full_signature: @Test public void getMethodArgs()
test_case.identifier: getMethodArgs
test_case.invocations: getDeclaredMethod getMethodArgs asList toString fail assertTrue indexOf getMessage println getMessage getMethodArgs asList toString fail assertTrue indexOf getMessage println getMessage getMethodArgs asList toString fail assertTrue indexOf getMessage println getMessage getMethodArgs asList toString fail assertTrue indexOf getMessage println getMessage assertArrayEquals getMethodArgs asList toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getMethodArgs()
focal_class.file: simple-spring-memcached/src/main/java/com/google/code/ssm/util/Utils.java
focal_class.identifier: Utils
focal_class.class_method_signature: Utils.Utils()
focal_class.full_signature: private  Utils()
focal_class.identifier: Utils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Utils()
focal_class.class_method_signature: Utils.getMethodArg(final int index, final Object[] args, final String methodDesc)
focal_class.full_signature: public static Object getMethodArg(final int index, final Object[] args, final String methodDesc)
focal_class.identifier: getMethodArg
focal_class.modifiers: public static
focal_class.parameters: (final int index, final Object[] args, final String methodDesc)
focal_class.return: Object
focal_class.signature: Object getMethodArg(final int index, final Object[] args, final String methodDesc)
focal_class.class_method_signature: Utils.getMethodArgs(final Collection<Integer> indexes, final Object[] args, final String methodDesc)
focal_class.full_signature: public static Object[] getMethodArgs(final Collection<Integer> indexes, final Object[] args, final String methodDesc)
focal_class.identifier: getMethodArgs
focal_class.modifiers: public static
focal_class.parameters: (final Collection<Integer> indexes, final Object[] args, final String methodDesc)
focal_class.return: Object[]
focal_class.signature: Object[] getMethodArgs(final Collection<Integer> indexes, final Object[] args, final String methodDesc)
focal_class.class_method_signature: Utils.getMethodParameterTypes(final Collection<Integer> indexes, final Method method)
focal_class.full_signature: public static Class<?>[] getMethodParameterTypes(final Collection<Integer> indexes, final Method method)
focal_class.identifier: getMethodParameterTypes
focal_class.modifiers: public static
focal_class.parameters: (final Collection<Integer> indexes, final Method method)
focal_class.return: Class<?>[]
focal_class.signature: Class<?>[] getMethodParameterTypes(final Collection<Integer> indexes, final Method method)
focal_method.body: public static Object[] getMethodArgs(final Collection<Integer> indexes, final Object[] args, final String methodDesc) {
          Object[] selectedArgs = new Object[indexes.size()];
          Iterator<Integer> iter = indexes.iterator();
          for (int i = 0; i < indexes.size(); i++) {
              selectedArgs[i] = getMethodArg(iter.next(), args, methodDesc);
          }
  
          return selectedArgs;
      }
focal_method.class_method_signature: Utils.getMethodArgs(final Collection<Integer> indexes, final Object[] args, final String methodDesc)
focal_method.full_signature: public static Object[] getMethodArgs(final Collection<Integer> indexes, final Object[] args, final String methodDesc)
focal_method.identifier: getMethodArgs
focal_method.invocations: size iterator size getMethodArg next
focal_method.modifiers: public static
focal_method.parameters: (final Collection<Integer> indexes, final Object[] args, final String methodDesc)
focal_method.return: Object[]
focal_method.signature: Object[] getMethodArgs(final Collection<Integer> indexes, final Object[] args, final String methodDesc)