Package org.nutz.lang.reflect

Examples of org.nutz.lang.reflect.ObjA


    assertNull(sv.intobj);
  }

  @Test(expected = RuntimeException.class)
  public void set_null_value_by_invoking() {
    ObjA base = new ObjA("abc");
    Mirror<ObjA> mirror = Mirror.me(ObjA.class);
    mirror.invoke(base, "setName", (Object) null);
    assertNull(base.getName());
    base.setName("FYZ");
    mirror.invoke(base, "setName", (Object[]) null);
  }
View Full Code Here


        assertNull(sv.intobj);
    }

    @Test(expected = RuntimeException.class)
    public void set_null_value_by_invoking() {
        ObjA base = new ObjA("abc");
        Mirror<ObjA> mirror = Mirror.me(ObjA.class);
        mirror.invoke(base, "setName", (Object) null);
        assertNull(base.getName());
        base.setName("FYZ");
        mirror.invoke(base, "setName", (Object[]) null);
    }
View Full Code Here

        assertNull(sv.intobj);
    }

    @Test(expected = RuntimeException.class)
    public void set_null_value_by_invoking() {
        ObjA base = new ObjA("abc");
        Mirror<ObjA> mirror = Mirror.me(ObjA.class);
        mirror.invoke(base, "setName", (Object) null);
        assertNull(base.getName());
        base.setName("FYZ");
        mirror.invoke(base, "setName", (Object[]) null);
    }
View Full Code Here

TOP

Related Classes of org.nutz.lang.reflect.ObjA

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.