Package org.jtester.bytecode.imposteriser.invokabel

Examples of org.jtester.bytecode.imposteriser.invokabel.FieldProxy


   * @param type
   *            spring bean的类型
   * @return
   */
  public static <T> T proxy(final Class testClazz, final Field field) {
    FieldProxy handler = new FieldProxy(testClazz, field.getName());
    Class type = field.getType();
    return (T) imposteriser.imposterise(handler, type);
  }
View Full Code Here


   * @param fieldName
   *            测试对象的字段名称
   * @return
   */
  public static <T> T proxy(final Class testClazz, final String fieldName) {
    FieldProxy handler = new FieldProxy(testClazz, fieldName);
    Field field = FieldHelper.getField(testClazz, fieldName);
    Class type = field.getType();
    return (T) imposteriser.imposterise(handler, type);
  }
View Full Code Here

TOP

Related Classes of org.jtester.bytecode.imposteriser.invokabel.FieldProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.