@@ -0,0 +1,2314 @@
+/*! ******************************************************************************%0A *%0A * Pentaho Data Integration%0A *%0A * Copyright (C) 2002-2016 by Pentaho : http://www.pentaho.com%0A *%0A *******************************************************************************%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with%0A * the License. You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *%0A ******************************************************************************/%0A%0Apackage org.pentaho.di.trans.steps.splitfieldtorows;%0A%0Aimport java.util.Arrays;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.pentaho.di.core.KettleEnvironment;%0Aimport org.pentaho.di.core.exception.KettleException;%0Aimport org.pentaho.di.trans.steps.loadsave.LoadSaveTester;%0Aimport org.pentaho.di.trans.steps.loadsave.validator.FieldLoadSaveValidator;%0A%0Apublic class SplitFieldToRowsMetaTest %7B%0A%0A  @BeforeClass%0A  public static void setUpBeforeClass() throws KettleException %7B%0A    KettleEnvironment.init( false );%0A  %7D%0A%0A  @Test%0A  public void loadSaveTest() throws KettleException %7B%0A    List%3CString%3E attributes = Arrays.asList( %22splitField%22, %22delimiter%22, %22newFieldname%22, %22includeRowNumber%22,%0A      %22rowNumberField%22, %22resetRowNumber%22, %22delimiterRegex%22 );%0A%0A    Map%3CString, String%3E getterMap = new HashMap%3CString, String%3E();%0A    getterMap.put( %22includeRowNumber%22, %22includeRowNumber%22 );%0A    getterMap.put( %22resetRowNumber%22, %22resetRowNumber%22 );%0A%0A    Map%3CString, String%3E setterMap = new HashMap%3CString, String%3E();%0A%0A    LoadSaveTester loadSaveTester = new LoadSaveTester(%0A      SplitFieldToRowsMeta.class, attributes, getterMap, setterMap,%0A      new HashMap%3CString, FieldLoadSaveValidator%3C?%3E%3E(), new HashMap%3CString, FieldLoadSaveValidator%3C?%3E%3E() );%0A    loadSaveTester.testRepoRoundTrip();%0A    loadSaveTester.testXmlRoundTrip();%0A  %7D%0A%7D%0A

Split Field to Rows LoadSaveTest