use of org.talend.dataprep.qa.step.export.ExportSampleStep in project data-prep by Talend.
the class ExportPreparationStep method whenIExportThePreparationWithCustomParametersInto.
@When("^I export the preparation with parameters :$")
public void whenIExportThePreparationWithCustomParametersInto(Map<String, String> params) throws IOException {
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);
}
use of org.talend.dataprep.qa.step.export.ExportSampleStep 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