lundi 3 août 2015

Mock BeanInfo class from Object using mockito

Suppose I have the following method structure:

protected static void sub(Object obj, String filler) {

    class cls = obj.getClass();
    BeanInfo beanInfo = Introspector.getBeanInfo(cls);

    // Other code...
}

How do I mock the BeanInfo class given this structure?

Aucun commentaire:

Enregistrer un commentaire