package com.vaadin.tests; import com.vaadin.data.util.MethodProperty; public class TestMethodProperty { /** * @param args */ public static void main(String[] args) { MyTest myTest = new MyTest(); MethodProperty methodProperty2 = new MethodProperty( Integer.TYPE, myTest, "getInt", "setInt", new Object[0], new Object[] { null }, 0); methodProperty2.setValue("3"); System.out.println("Succeeded"); } public static class MyTest { int integer; public void setInteger(Integer integer) { System.out.println("setInteger"); this.integer = integer; } public Integer getInteger() { System.out.println("getInteger"); return Integer.valueOf(integer); } public void setInt(int i) { System.out.println("setInt"); integer = i; } public int getInt() { System.out.println("getInt"); return integer; } } }