@Test public void example_3_user2projects_can_be_imported() throws Exception { File file = DeveloperToolsTestFileSupport.getTestfileSupport().createFileFromResourcePath("csv/example3-developer-admin-ui_mass-import_user2projects.csv"); importerToTest.importUsersToProjectAssignmentsByCSV(file); verify(administration).assignUserToProject("scenario2_user1", "testproject_1"); verify(administration).assignUserToProject("scenario2_user2", "testproject_2"); verify(administration,never()).assignUserToProject("scenario2_user1", "testproject_2"); verify(administration).assignUserToProject("scenario2_user1", "testproject_3"); verify(administration).assignUserToProject("scenario2_user2", "testproject_3"); }
public void importUsersToProjectAssignmentsByCSV(File file) throws IOException { List<CSVRow> rows = csvImporter.importCSVFile(file, 2, 1); for (CSVRow row: rows) { importRow(row); } }
AssignUserToProjectMassCSVImporter { public void importUsersToProjectAssignmentsByCSV(File file) throws IOException { List<CSVRow> rows = csvImporter.importCSVFile(file, 2, 1); for (CSVRow row: rows) { importRow(row); } } }
AssignUserToProjectMassCSVImporter { public void importUsersToProjectAssignmentsByCSV(File file) throws IOException { List<CSVRow> rows = csvImporter.importCSVFile(file, 2, 1); for (CSVRow row: rows) { importRow(row); } } AssignUserToProjectMassCSVImporter(DeveloperAdministration administration); }
AssignUserToProjectMassCSVImporter { public void importUsersToProjectAssignmentsByCSV(File file) throws IOException { List<CSVRow> rows = csvImporter.importCSVFile(file, 2, 1); for (CSVRow row: rows) { importRow(row); } } AssignUserToProjectMassCSVImporter(DeveloperAdministration administration); void importUsersToProjectAssignmentsByCSV(File file); }
AssignUserToProjectMassCSVImporter { public void importUsersToProjectAssignmentsByCSV(File file) throws IOException { List<CSVRow> rows = csvImporter.importCSVFile(file, 2, 1); for (CSVRow row: rows) { importRow(row); } } AssignUserToProjectMassCSVImporter(DeveloperAdministration administration); void importUsersToProjectAssignmentsByCSV(File file);  }