@@ -0,0 +1,2133 @@
+/*%0D%0A * jETeL/CloverETL - Java based ETL application framework.%0D%0A * Copyright (c) Javlin, a.s. (info@cloveretl.com)%0D%0A *  %0D%0A * This library is free software; you can redistribute it and/or%0D%0A * modify it under the terms of the GNU Lesser General Public%0D%0A * License as published by the Free Software Foundation; either%0D%0A * version 2.1 of the License, or (at your option) any later version.%0D%0A *%0D%0A * This library is distributed in the hope that it will be useful,%0D%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0D%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0D%0A * Lesser General Public License for more details.%0D%0A *%0D%0A * You should have received a copy of the GNU Lesser General Public%0D%0A * License along with this library; if not, write to the Free Software%0D%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA%0D%0A */%0D%0Apackage org.jetel.metadata;%0D%0A%0D%0Aimport org.jetel.exception.JetelRuntimeException;%0D%0Aimport org.jetel.test.CloverTestCase;%0D%0A%0D%0A/**%0D%0A * @author Kokon (info@cloveretl.com)%0D%0A *         (c) Javlin, a.s. (www.cloveretl.com)%0D%0A *%0D%0A * @created 14. 11. 2014%0D%0A */%0D%0Apublic class DataRecordParsingTypeTest extends CloverTestCase %7B%0D%0A%0D%0A%09public void testFromString() %7B%0D%0A%09%09assertEquals(DataRecordParsingType.DELIMITED, DataRecordParsingType.fromString(%22delimited%22));%0D%0A%09%09assertEquals(DataRecordParsingType.DELIMITED, DataRecordParsingType.fromString(%22Delimited%22));%0D%0A%09%09assertEquals(DataRecordParsingType.FIXEDLEN, DataRecordParsingType.fromString(%22fixed%22));%0D%0A%09%09assertEquals(DataRecordParsingType.FIXEDLEN, DataRecordParsingType.fromString(%22fIXED%22));%0D%0A%09%09assertEquals(DataRecordParsingType.MIXED, DataRecordParsingType.fromString(%22mixed%22));%0D%0A%09%09assertEquals(DataRecordParsingType.MIXED, DataRecordParsingType.fromString(%22MIXED%22));%0D%0A%09%09%0D%0A%09%09try %7B DataRecordParsingType.fromString(%22neco%22); assertTrue(false); %7D catch (JetelRuntimeException e) %7B /*OK*/ %7D%0D%0A%09%09try %7B DataRecordParsingType.fromString(%22%22); assertTrue(false); %7D catch (JetelRuntimeException e) %7B /*OK*/ %7D%0D%0A%09%09try %7B DataRecordParsingType.fromString(null); assertTrue(false); %7D catch (JetelRuntimeException e) %7B /*OK*/ %7D%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

test for DataRecordParsingType.fromString() method