test_class.declarator: logger = LoggerFactory.getLogger(ClassUtilTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(ClassUtilTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.file: ch-commons-util/src/test/java/com/cloudhopper/commons/util/ClassUtilTest.java
test_class.identifier: ClassUtilTest
test_case.body: @Test
      public void getBeanMethods() throws Exception {
          Method expectedGetMethod = Person.class.getMethod("getFirstName");
          Method expectedSetMethod = Person.class.getMethod("setFirstName", String.class);
  
          // case insensitive
          Method[] methods = ClassUtil.getBeanMethods(InternetPerson.class, "firstname", String.class, false);
          Assert.assertEquals(expectedGetMethod, methods[0]);
          Assert.assertEquals(expectedSetMethod, methods[1]);
  
          // case sensitive
          methods = ClassUtil.getBeanMethods(InternetPerson.class, "FirstName", String.class, true);
          Assert.assertEquals(expectedGetMethod, methods[0]);
          Assert.assertEquals(expectedSetMethod, methods[1]);
      }
test_case.class_method_signature: ClassUtilTest.getBeanMethods()
test_case.full_signature: @Test public void getBeanMethods()
test_case.identifier: getBeanMethods
test_case.invocations: getMethod getMethod getBeanMethods assertEquals assertEquals getBeanMethods assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getBeanMethods()
focal_class.file: ch-commons-util/src/main/java/com/cloudhopper/commons/util/ClassUtil.java
focal_class.identifier: ClassUtil
focal_class.class_method_signature: ClassUtil.findEnumConstant(Class<?> type, String constantName)
focal_class.full_signature: public static Object findEnumConstant(Class<?> type, String constantName)
focal_class.identifier: findEnumConstant
focal_class.modifiers: public static
focal_class.parameters: (Class<?> type, String constantName)
focal_class.return: Object
focal_class.signature: Object findEnumConstant(Class<?> type, String constantName)
focal_class.class_method_signature: ClassUtil.findEnumConstant(Class<?> type, String constantName, boolean caseSensitive)
focal_class.full_signature: public static Object findEnumConstant(Class<?> type, String constantName, boolean caseSensitive)
focal_class.identifier: findEnumConstant
focal_class.modifiers: public static
focal_class.parameters: (Class<?> type, String constantName, boolean caseSensitive)
focal_class.return: Object
focal_class.signature: Object findEnumConstant(Class<?> type, String constantName, boolean caseSensitive)
focal_class.class_method_signature: ClassUtil.getClassHierarchy(Class<?> type)
focal_class.full_signature: public static Class<?>[] getClassHierarchy(Class<?> type)
focal_class.identifier: getClassHierarchy
focal_class.modifiers: public static
focal_class.parameters: (Class<?> type)
focal_class.return: Class<?>[]
focal_class.signature: Class<?>[] getClassHierarchy(Class<?> type)
focal_class.class_method_signature: ClassUtil.hasBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_class.full_signature: public static boolean hasBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_class.identifier: hasBeanMethods
focal_class.modifiers: public static
focal_class.parameters: (Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_class.return: boolean
focal_class.signature: boolean hasBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_class.class_method_signature: ClassUtil.getBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_class.full_signature: public static Method[] getBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_class.identifier: getBeanMethods
focal_class.modifiers: public static
focal_class.parameters: (Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_class.return: Method[]
focal_class.signature: Method[] getBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_class.class_method_signature: ClassUtil.getMethod(Class<?> type, String name, Class<?> returnType, Class<?> paramType, boolean caseSensitive)
focal_class.full_signature: public static Method getMethod(Class<?> type, String name, Class<?> returnType, Class<?> paramType, boolean caseSensitive)
focal_class.identifier: getMethod
focal_class.modifiers: public static
focal_class.parameters: (Class<?> type, String name, Class<?> returnType, Class<?> paramType, boolean caseSensitive)
focal_class.return: Method
focal_class.signature: Method getMethod(Class<?> type, String name, Class<?> returnType, Class<?> paramType, boolean caseSensitive)
focal_method.body: public static Method[] getBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
          throws IllegalAccessException, NoSuchMethodException {
          Method methods[] = new Method[2];
          // search for the "get"
          methods[0] = getMethod(type, "get"+propertyName, propertyType, null, caseSensitive);
          // search for the "set"
          methods[1] = getMethod(type, "set"+propertyName, null, propertyType, caseSensitive);
          return methods;
      }
focal_method.class_method_signature: ClassUtil.getBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_method.full_signature: public static Method[] getBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_method.identifier: getBeanMethods
focal_method.invocations: getMethod getMethod
focal_method.modifiers: public static
focal_method.parameters: (Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)
focal_method.return: Method[]
focal_method.signature: Method[] getBeanMethods(Class<?> type, String propertyName, Class<?> propertyType, boolean caseSensitive)