1213141516171819
*/ public class JavaIntrospectorTest { @Test public void canIntrospectBean() { final PropertyDescriptor[] properties = new JavaIntrospector().perform(SimpleBean.class, Object.class); Assert.assertEquals(1, properties.length); }
18192021222324
Assert.assertEquals(1, properties.length); } @Test(expected=IllegalStateException.class) public void introspectingWithWrongBaseClassYieldsException() { new JavaIntrospector().perform(SimpleBean.class, UnrelatedBean.class); }