Search in sources :

Example 1 with FakeFox01

use of org.apache.harmony.beans.tests.support.mock.FakeFox01 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);
}
Also used : FakeFox01(org.apache.harmony.beans.tests.support.mock.FakeFox01) BeanInfo(java.beans.BeanInfo) SimpleBeanInfo(java.beans.SimpleBeanInfo) FakeFox01BeanInfo(org.apache.harmony.beans.tests.support.mock.FakeFox01BeanInfo) FakeFox01BeanInfo(org.apache.harmony.beans.tests.support.mock.FakeFox01BeanInfo)

Aggregations

BeanInfo (java.beans.BeanInfo)1 SimpleBeanInfo (java.beans.SimpleBeanInfo)1 FakeFox01 (org.apache.harmony.beans.tests.support.mock.FakeFox01)1 FakeFox01BeanInfo (org.apache.harmony.beans.tests.support.mock.FakeFox01BeanInfo)1