use of org.talend.dataprep.qa.util.export.ExportType in project data-prep by Talend.
the class ExportPreparationStep method whenIExportThePreparationWithCustomParametersInto.
@When("^I export the preparation with parameters :$")
public void whenIExportThePreparationWithCustomParametersInto(DataTable dataTable) throws IOException {
Map<String, String> params = dataTable.asMap(String.class, String.class);
ExportType exportType = epAnalyzer.detectExportType(params);
ExportSampleStep exporter = epAnalyzer.getExporter(exportType);
if (exporter == null) {
Assert.fail("No exporter available for " + exportType.getName() + " export type.");
}
exporter.exportSample(params);
}
Aggregations