use of org.pentaho.di.trans.steps.textfileinput.TextFileInputField in project pentaho-kettle by pentaho.
the class TextFileInputCSVImportProgressDialogTest method fileMixFormatTestWithNoEnclosures.
@Test
public void fileMixFormatTestWithNoEnclosures() throws Exception {
TextFileInputField[] inputFileFields = createInputFileFields("String", "Number", "Boolean", "Date");
String fileContent = "String, int, boolean, date\n" + "レコード名1,1.7976E308,true,9999/12/31 23:59:59.999,\r\n" + "\"あa1\",123456789,false,2016/1/5 12:00:00.000\r\n";
fileContentTest(fileContent, inputFileFields, TextFileInputMeta.FILE_FORMAT_MIXED);
}
use of org.pentaho.di.trans.steps.textfileinput.TextFileInputField in project pentaho-kettle by pentaho.
the class TextFileInputCSVImportProgressDialogTest method createField.
private TextFileInputField createField(String name) {
TextFileInputField field = new TextFileInputField();
field.setName(name);
field.setType(ValueMetaInterface.TYPE_NONE);
return field;
}
use of org.pentaho.di.trans.steps.textfileinput.TextFileInputField in project pentaho-kettle by pentaho.
the class TextFileInputCSVImportProgressDialogTest method fileUnixFormatTestWithNoEnclosures.
@Test
public void fileUnixFormatTestWithNoEnclosures() throws Exception {
TextFileInputField[] inputFileFields = createInputFileFields("String", "Number", "Boolean", "Date");
String fileContent = "String, int, boolean, date\n" + "レコード名1,1.7976E308,true,9999/12/31 23:59:59.999,\n" + "\"あa1\",123456789,false,2016/1/5 12:00:00.000\n";
fileContentTest(fileContent, inputFileFields, TextFileInputMeta.FILE_FORMAT_UNIX);
}
Aggregations