use of org.apache.harmony.beans.tests.support.mock.FakeFox01BeanInfo in project j2objc by google.
the class IntrospectorTest method testGetBeanInfoClass_HaveBeanInfo.
/*
* There is a BeanInfo class + test cache info
*/
public void testGetBeanInfoClass_HaveBeanInfo() throws IntrospectionException {
Class<FakeFox01> beanClass = FakeFox01.class;
BeanInfo info = Introspector.getBeanInfo(beanClass);
// printInfo(info);
BeanInfo beanInfo = new FakeFox01BeanInfo();
assertBeanInfoEquals(beanInfo, info);
assertEquals(-1, info.getDefaultEventIndex());
assertEquals(0, info.getDefaultPropertyIndex());
BeanInfo cacheInfo = Introspector.getBeanInfo(beanClass);
assertSame(info, cacheInfo);
}
Aggregations