Search in sources :

Example 1 with Woof

use of jodd.bean.data.Woof in project jodd by oblac.

the class BeanUtilGenericsTest method testAllBeanSetters.

@Test
public void testAllBeanSetters() {
    Woof woof = new Woof();
    Class type = woof.getClass();
    ClassDescriptor cd = ClassIntrospector.lookup(type);
    PropertyDescriptor[] properties = cd.getAllPropertyDescriptors();
    assertNotNull(properties);
    assertEquals(7, properties.length);
}
Also used : ClassDescriptor(jodd.introspector.ClassDescriptor) PropertyDescriptor(jodd.introspector.PropertyDescriptor) Woof(jodd.bean.data.Woof) Test(org.junit.Test)

Aggregations

Woof (jodd.bean.data.Woof)1 ClassDescriptor (jodd.introspector.ClassDescriptor)1 PropertyDescriptor (jodd.introspector.PropertyDescriptor)1 Test (org.junit.Test)1