use of org.mule.tck.testmodels.fruit.OrangeInterface in project mule by mulesoft.
the class BeanUtilsTestCase method testBeanPropertiesOnAProxy.
@Test
public void testBeanPropertiesOnAProxy() throws Exception {
OrangeInterface o = (OrangeInterface) Proxy.newProxyInstance(getClass().getClassLoader(), new Class[] { OrangeInterface.class }, new OrangeInvocationHandler(new Orange()));
BeanUtils.populateWithoutFail(o, map, true);
assertNotNull(o);
assertEquals("Juicy!", o.getBrand());
assertEquals(new Double(2.32), o.getRadius());
assertEquals(new Integer(22), o.getSegments());
}
Aggregations