Package org.strecks.converter

Examples of org.strecks.converter.BindableBean


  @Test
  public void testSimpleBinding() throws Exception
  {

    NestedBindableBean nested = new NestedBindableBean();
    BindableBean bindable = new BindableBean();

    bindable.setNestedBindableBean(nested);
    bindable.setIntegerValue("5");

    BindAnnotationReader bindablesReader = new BindAnnotationReader();
    BindConvertInfo bindConvertInfo = bindablesReader.readBindables(bindable);
    Map<String, BindHandler> map = bindConvertInfo.getBindMap();
     
View Full Code Here


  }

  @Test
  public void testIsGetter() throws SecurityException, NoSuchMethodException
  {
    BindableBean bean = new BindableBean();
    Class<? extends BindableBean> clazz = bean.getClass();

    Method method = clazz.getMethod("isBoolValue");
    assert ReflectHelper.isGetter(method);

    method = clazz.getMethod("getBooleanValue");
View Full Code Here

  }

  @Test
  public void testIsSetter() throws SecurityException, NoSuchMethodException
  {
    BindableBean bean = new BindableBean();
    Class<? extends BindableBean> clazz = bean.getClass();

    Method method = clazz.getMethod("setBoolValue", new Class[]
    {
      Boolean.TYPE
    });
View Full Code Here

TOP

Related Classes of org.strecks.converter.BindableBean

Copyright © 2018 www.massapicom. 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.