Author: tchemit Date: 2010-05-11 13:39:18 +0200 (Tue, 11 May 2010) New Revision: 1855 Url: http://nuiton.org/repositories/revision/nuiton-utils/1855 Log: move tests Added: trunk/src/test/java/org/nuiton/util/converter/UnregistreableConverter.java Modified: trunk/src/test/java/org/nuiton/util/UnregistreableConverter.java Modified: trunk/src/test/java/org/nuiton/util/UnregistreableConverter.java =================================================================== --- trunk/src/test/java/org/nuiton/util/UnregistreableConverter.java 2010-05-11 11:36:05 UTC (rev 1854) +++ trunk/src/test/java/org/nuiton/util/UnregistreableConverter.java 2010-05-11 11:39:18 UTC (rev 1855) @@ -31,7 +31,9 @@ * A converter with no getType method, so not registreable via {@link ConverterUtil#initConverters()} * * @author tchemit <chemit@codelutin.com> + * @deprecated since 1.3, use now {@link org.nuiton.util.converter.UnregistreableConverter}. */ +@Deprecated public class UnregistreableConverter implements Converter{ @Override Added: trunk/src/test/java/org/nuiton/util/converter/UnregistreableConverter.java =================================================================== --- trunk/src/test/java/org/nuiton/util/converter/UnregistreableConverter.java (rev 0) +++ trunk/src/test/java/org/nuiton/util/converter/UnregistreableConverter.java 2010-05-11 11:39:18 UTC (rev 1855) @@ -0,0 +1,43 @@ +/* + * #%L + * Nuiton Utils + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 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 Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + +package org.nuiton.util.converter; + +import org.apache.commons.beanutils.Converter; + +/** + * A converter with no getType method, so not registreable via {@link ConverterUtil#initConverters()} + * + * @author tchemit <chemit@codelutin.com> + * @since 1.3 (replace class {@code org.nuiton.util.UnregistreableConverter}). + */ +public class UnregistreableConverter implements Converter{ + + @Override + public Object convert(Class type, Object value) { + return value; + } + +} \ No newline at end of file Property changes on: trunk/src/test/java/org/nuiton/util/converter/UnregistreableConverter.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL