@Test public void testDrawExceptionsForConstructor() throws NoSuchMethodException { Class[] classesOfConstructorParameters = new Class[2]; classesOfConstructorParameters[0] = byte[].class; classesOfConstructorParameters[1] = String.class; assertThat(TypeRenderUtils.drawExceptions(String.class.getConstructor()), is(equalTo(""))); assertThat(TypeRenderUtils.drawExceptions(String.class.getConstructor(classesOfConstructorParameters)), is(equalTo("java.io.UnsupportedEncodingException"))); }
public static String drawExceptions(Method method) { return StringUtils.concat("\n", method.getExceptionTypes()); }
TypeRenderUtils { public static String drawExceptions(Method method) { return StringUtils.concat("\n", method.getExceptionTypes()); } }
TypeRenderUtils { public static String drawExceptions(Method method) { return StringUtils.concat("\n", method.getExceptionTypes()); }  }
TypeRenderUtils { public static String drawExceptions(Method method) { return StringUtils.concat("\n", method.getExceptionTypes()); }  static String drawInterface(Class<?> clazz); static String drawParameters(Method method); static String drawParameters(Constructor constructor); static String drawParameters(String[] parameterTypes); static String drawReturn(Method method); static String drawExceptions(Method method); static String drawExceptions(Constructor constructor); static String drawExceptions(String[] exceptionTypes); static Element drawSuperClass(ClassDetailVO clazz); static Element drawClassLoader(ClassVO clazz); static Element drawTree(String[] nodes); static Element drawField(ClassDetailVO clazz, Integer expand); static String drawAnnotation(String... annotations); static String[] getAnnotations(Class<?> clazz); static String[] getAnnotations(Annotation[] annotations); static String[] getInterfaces(Class clazz); static String[] getSuperClass(Class clazz); static String[] getClassloader(Class clazz); static FieldVO[] getFields(Class clazz); }
TypeRenderUtils { public static String drawExceptions(Method method) { return StringUtils.concat("\n", method.getExceptionTypes()); }  static String drawInterface(Class<?> clazz); static String drawParameters(Method method); static String drawParameters(Constructor constructor); static String drawParameters(String[] parameterTypes); static String drawReturn(Method method); static String drawExceptions(Method method); static String drawExceptions(Constructor constructor); static String drawExceptions(String[] exceptionTypes); static Element drawSuperClass(ClassDetailVO clazz); static Element drawClassLoader(ClassVO clazz); static Element drawTree(String[] nodes); static Element drawField(ClassDetailVO clazz, Integer expand); static String drawAnnotation(String... annotations); static String[] getAnnotations(Class<?> clazz); static String[] getAnnotations(Annotation[] annotations); static String[] getInterfaces(Class clazz); static String[] getSuperClass(Class clazz); static String[] getClassloader(Class clazz); static FieldVO[] getFields(Class clazz);  }