use of java.beans.IndexedPropertyDescriptor in project j2objc by google.
the class IntrospectorTest method test_MixedBooleanSimpleClass2.
public void test_MixedBooleanSimpleClass2() throws Exception {
BeanInfo info = Introspector.getBeanInfo(MixedBooleanSimpleClass2.class);
Method getter = MixedBooleanSimpleClass2.class.getDeclaredMethod("getList");
for (PropertyDescriptor pd : info.getPropertyDescriptors()) {
if (propertyName.equals(pd.getName())) {
assertFalse(pd instanceof IndexedPropertyDescriptor);
assertEquals(getter, pd.getReadMethod());
assertNull(pd.getWriteMethod());
}
}
}
use of java.beans.IndexedPropertyDescriptor in project j2objc by google.
the class IntrospectorTest method test_MixedBooleanSimpleClass10.
public void test_MixedBooleanSimpleClass10() throws Exception {
BeanInfo info = Introspector.getBeanInfo(MixedBooleanSimpleClass10.class);
Method getter = MixedBooleanSimpleClass10.class.getDeclaredMethod("getList", int.class);
Method setter = MixedBooleanSimpleClass10.class.getDeclaredMethod("setList", int.class, boolean.class);
for (PropertyDescriptor pd : info.getPropertyDescriptors()) {
if (propertyName.equals(pd.getName())) {
assertTrue(pd instanceof IndexedPropertyDescriptor);
assertNull(pd.getReadMethod());
assertNull(pd.getWriteMethod());
assertEquals(getter, ((IndexedPropertyDescriptor) pd).getIndexedReadMethod());
assertEquals(setter, ((IndexedPropertyDescriptor) pd).getIndexedWriteMethod());
}
}
}
use of java.beans.IndexedPropertyDescriptor in project j2objc by google.
the class IntrospectorTest method test_MixedSimpleClass8.
public void test_MixedSimpleClass8() throws Exception {
BeanInfo info = Introspector.getBeanInfo(MixedSimpleClass8.class);
Method setter = MixedSimpleClass8.class.getDeclaredMethod("setList", Object.class);
for (PropertyDescriptor pd : info.getPropertyDescriptors()) {
if (propertyName.equals(pd.getName())) {
assertFalse(pd instanceof IndexedPropertyDescriptor);
assertNull(pd.getReadMethod());
assertEquals(setter, pd.getWriteMethod());
}
}
}
use of java.beans.IndexedPropertyDescriptor in project j2objc by google.
the class IntrospectorTest method test_MixedBooleanSimpleClass22.
public void test_MixedBooleanSimpleClass22() throws Exception {
BeanInfo info = Introspector.getBeanInfo(MixedBooleanSimpleClass22.class);
Method setter = MixedBooleanSimpleClass22.class.getDeclaredMethod("setList", boolean.class);
for (PropertyDescriptor pd : info.getPropertyDescriptors()) {
if (propertyName.equals(pd.getName())) {
assertFalse(pd instanceof IndexedPropertyDescriptor);
assertNull(pd.getReadMethod());
assertEquals(setter, pd.getWriteMethod());
}
}
}
use of java.beans.IndexedPropertyDescriptor in project j2objc by google.
the class IntrospectorTest method test_MixedBooleanSimpleClass17.
public void test_MixedBooleanSimpleClass17() throws Exception {
BeanInfo info = Introspector.getBeanInfo(MixedBooleanSimpleClass17.class);
Method getter = MixedBooleanSimpleClass17.class.getDeclaredMethod("getList");
Method setter = MixedBooleanSimpleClass17.class.getDeclaredMethod("setList", boolean.class);
for (PropertyDescriptor pd : info.getPropertyDescriptors()) {
if (propertyName.equals(pd.getName())) {
assertFalse(pd instanceof IndexedPropertyDescriptor);
assertEquals(getter, pd.getReadMethod());
assertEquals(setter, pd.getWriteMethod());
}
}
}
Aggregations