Author: echatellier Date: 2010-01-27 16:01:07 +0100 (Wed, 27 Jan 2010) New Revision: 366 Added: misctestproject/trunk/src/main/java/org/nuiton/test/beans/ misctestproject/trunk/src/main/java/org/nuiton/test/beans/TestBeanUtils.java Log: Add a test case about propertybeanutils Added: misctestproject/trunk/src/main/java/org/nuiton/test/beans/TestBeanUtils.java =================================================================== --- misctestproject/trunk/src/main/java/org/nuiton/test/beans/TestBeanUtils.java (rev 0) +++ misctestproject/trunk/src/main/java/org/nuiton/test/beans/TestBeanUtils.java 2010-01-27 15:01:07 UTC (rev 366) @@ -0,0 +1,54 @@ +/* *##% + * Copyright (C) 2010 Code Lutin, Chatellier Eric + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + *##%*/ + +package org.nuiton.test.beans; + +import java.lang.reflect.InvocationTargetException; + +import org.apache.commons.beanutils.PropertyUtilsBean; + +/** + * TODO add comment here. + * + * @author chatellier + * @version $Revision$ + * + * Last update : $Date$ + * By : $Author$ + */ +public class TestBeanUtils { + + private String oUser; + + public String getOUser() { + return oUser; + } + + public void setOUser(String aaa) { + + } + + public static void main(String... args) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { + + TestBeanUtils aa = new TestBeanUtils(); + + PropertyUtilsBean b = new PropertyUtilsBean(); + //b.getProperty(aa, "oUser"); // fail + b.getProperty(aa, "OUser"); + } +} Property changes on: misctestproject/trunk/src/main/java/org/nuiton/test/beans/TestBeanUtils.java ___________________________________________________________________ Added: svn:keywords + "Author Date Id Revision HeadURL"