Exemplo n.º 1
0
  public void testTparReturn() throws Exception {
    Class<?> colClass = java.util.Collections.class;
    Method minMethod = colClass.getMethod("min", Collection.class);
    JavaUtils ju = JavaUtils.getJavaUtils();

    JavaType type = JavaUtils.genTypeFromClass(minMethod.getReturnType());
    assertNotNull(type.asClass());

    type = ju.getReturnType(minMethod);
    assertEquals("T", type.toString());
  }