Examples of doSetHook()


Examples of org.jboss.test.beaninfo.support.NestedBean.doSetHook()

   public void testNestedPropertyInfo() throws Throwable
   {
      NestedBean grandchild = new NestedBean();
      NestedBean child = new NestedBean();
      child.doSetHook(grandchild);
      NestedBean parent = new NestedBean();
      parent.doSetHook(child);
      BeanInfo beanInfo = getBeanInfo(NestedBean.class);
      PropertyInfo propertyInfo = beanInfo.getProperty("string");
      PropertyInfo nestedPropertyInfo = BeanInfoUtil.getPropertyInfo(beanInfo, parent, "bean.otherBean.string");
View Full Code Here

Examples of org.jboss.test.beaninfo.support.NestedBean.doSetHook()

   {
      NestedBean grandchild = new NestedBean();
      NestedBean child = new NestedBean();
      child.doSetHook(grandchild);
      NestedBean parent = new NestedBean();
      parent.doSetHook(child);
      BeanInfo beanInfo = getBeanInfo(NestedBean.class);
      PropertyInfo propertyInfo = beanInfo.getProperty("string");
      PropertyInfo nestedPropertyInfo = BeanInfoUtil.getPropertyInfo(beanInfo, parent, "bean.otherBean.string");
      assertEquals(propertyInfo, nestedPropertyInfo);
   }
View Full Code Here

Examples of org.jboss.test.beaninfo.support.NestedBean.doSetHook()

   {
      try
      {
         NestedBean child = new NestedBean();
         NestedBean parent = new NestedBean();
         parent.doSetHook(child);
         BeanInfo beanInfo = getBeanInfo(NestedBean.class);
         BeanInfoUtil.getPropertyInfo(beanInfo, parent, "bean.differentGetter.string");
         fail("Should not be here.");
      }
      catch (Throwable t)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.