@Test public void example_1_projects_can_be_imported() throws Exception { File file = DeveloperToolsTestFileSupport.getTestfileSupport().createFileFromResourcePath("csv/example2-developer-admin-ui_mass-import_delete_projects.csv"); importerToTest.importProjectDeletesByCSV(file); for (int i=1;i<=15;i++) { verify(administration,times(1)).deleteProject(eq("testproject_"+i)); } }
public void importProjectDeletesByCSV(File file) throws IOException { List<CSVRow> rows = csvImporter.importCSVFile(file, 1, 1); for (CSVRow row: rows) { importRow(row); } }
DeleteProjectMassCSVImporter { public void importProjectDeletesByCSV(File file) throws IOException { List<CSVRow> rows = csvImporter.importCSVFile(file, 1, 1); for (CSVRow row: rows) { importRow(row); } } }
DeleteProjectMassCSVImporter { public void importProjectDeletesByCSV(File file) throws IOException { List<CSVRow> rows = csvImporter.importCSVFile(file, 1, 1); for (CSVRow row: rows) { importRow(row); } } DeleteProjectMassCSVImporter(DeveloperAdministration administration); }
DeleteProjectMassCSVImporter { public void importProjectDeletesByCSV(File file) throws IOException { List<CSVRow> rows = csvImporter.importCSVFile(file, 1, 1); for (CSVRow row: rows) { importRow(row); } } DeleteProjectMassCSVImporter(DeveloperAdministration administration); void importProjectDeletesByCSV(File file); }
DeleteProjectMassCSVImporter { public void importProjectDeletesByCSV(File file) throws IOException { List<CSVRow> rows = csvImporter.importCSVFile(file, 1, 1); for (CSVRow row: rows) { importRow(row); } } DeleteProjectMassCSVImporter(DeveloperAdministration administration); void importProjectDeletesByCSV(File file);  }