Author: tchemit Date: 2008-08-17 19:22:47 +0000 (Sun, 17 Aug 2008) New Revision: 1034 Added: trunk/maven-license-switcher-plugin/src/test/ trunk/maven-license-switcher-plugin/src/test/java/ trunk/maven-license-switcher-plugin/src/test/java/org/ trunk/maven-license-switcher-plugin/src/test/java/org/codelutin/ trunk/maven-license-switcher-plugin/src/test/java/org/codelutin/license/ trunk/maven-license-switcher-plugin/src/test/java/org/codelutin/license/LicenseTypeTest.java trunk/maven-license-switcher-plugin/src/test/resources/ Log: ajout test sur LicenseType Added: trunk/maven-license-switcher-plugin/src/test/java/org/codelutin/license/LicenseTypeTest.java =================================================================== --- trunk/maven-license-switcher-plugin/src/test/java/org/codelutin/license/LicenseTypeTest.java (rev 0) +++ trunk/maven-license-switcher-plugin/src/test/java/org/codelutin/license/LicenseTypeTest.java 2008-08-17 19:22:47 UTC (rev 1034) @@ -0,0 +1,33 @@ +/** + * *# #% Copyright (C) 2008 Code Lutin, Tony Chemit + * 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.codelutin.license; + +/** + * A class to test loading of license via {@link LicenseType} + * + * @author chemit + */ +public class LicenseTypeTest extends junit.framework.TestCase { + + private static final String ENCODING = "UTF-8"; + + public void testAcquireLicenceReaders() throws Exception { + for (LicenseType license : LicenseType.values()) { + license.getLicenceFileReader(ENCODING); + license.getLicenceHeaderReader(ENCODING); + } + } + +}