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 findEnumConstant() throws Exception {
          // non-enum classes should just return null
          Assert.assertEquals(null, ClassUtil.findEnumConstant(this.getClass(), "One", true));
          Assert.assertEquals(TestEnum.ONE, ClassUtil.findEnumConstant(TestEnum.class, "ONE", true));
          Assert.assertEquals(TestEnum.ONE, ClassUtil.findEnumConstant(TestEnum.class, "ONE", false));
          // case sensitive search should fail
          Assert.assertEquals(null, ClassUtil.findEnumConstant(TestEnum.class, "One", true));
          Assert.assertEquals(TestEnum.ONE, ClassUtil.findEnumConstant(TestEnum.class, "one", false));
          Assert.assertEquals(TestEnum.Two, ClassUtil.findEnumConstant(TestEnum.class, "Two", true));
          Assert.assertEquals(TestEnum.Two, ClassUtil.findEnumConstant(TestEnum.class, "two", false));
          Assert.assertEquals(null, ClassUtil.findEnumConstant(TestEnum.class, "two", true));
      }
test_case.class_method_signature: ClassUtilTest.findEnumConstant()
test_case.full_signature: @Test public void findEnumConstant()
test_case.identifier: findEnumConstant
test_case.invocations: assertEquals findEnumConstant getClass assertEquals findEnumConstant assertEquals findEnumConstant assertEquals findEnumConstant assertEquals findEnumConstant assertEquals findEnumConstant assertEquals findEnumConstant assertEquals findEnumConstant
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void findEnumConstant()
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 Object findEnumConstant(Class<?> type, String constantName) {
          return findEnumConstant(type, constantName, true);
      }
focal_method.class_method_signature: ClassUtil.findEnumConstant(Class<?> type, String constantName)
focal_method.full_signature: public static Object findEnumConstant(Class<?> type, String constantName)
focal_method.identifier: findEnumConstant
focal_method.invocations: findEnumConstant
focal_method.modifiers: public static
focal_method.parameters: (Class<?> type, String constantName)
focal_method.return: Object
focal_method.signature: Object findEnumConstant(Class<?> type, String constantName)