assertEquals(true, IntrospectionSupport.isGetter(price));
assertEquals(false, IntrospectionSupport.isSetter(price));
}
public void testIsSetter() throws Exception {
ExampleBean bean = new ExampleBean();
Method name = bean.getClass().getMethod("setName", String.class);
assertEquals(false, IntrospectionSupport.isGetter(name));
assertEquals(true, IntrospectionSupport.isSetter(name));
Method price = bean.getClass().getMethod("setPrice", double.class);
assertEquals(false, IntrospectionSupport.isGetter(price));
assertEquals(true, IntrospectionSupport.isSetter(price));
}