Le Wed, 27 Jan 2010 16:01:07 +0100 (CET), echatellier@users.nuiton.org a écrit :
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
Ca serait quand même mieux que ça soit des tests unitaire car c'est facile à lancer :)
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"
_______________________________________________ Sandbox-commits mailing list Sandbox-commits@list.nuiton.org http://list.nuiton.org/cgi-bin/mailman/listinfo/sandbox-commits
-- Tony Chemit -------------------- tél: +33 (0) 2 40 50 29 28 email: chemit@codelutin.com http://www.codelutin.com