super.setUp();
}
@Test
public void testDoWork() {
ImportText importer = new ImportText(dataPool, settings, null);
importer.setFeatureReader(new StringReader(""));
importer.setLocationReader(new StringReader(""));
importer.setPersonReader(new StringReader(
"#id\tname\tevents\n" +
"4\tPerson1\t1\n" +
"5\tPerson2\t1\n"));
importer.setEventReader(new StringReader(
"#id\tname\tduration\tpersons\n" +
"1\tEvent1\t10\t4,5\n" +
"2\tEvent2\t12\t\n" +
"3\tEvent3\t13\t\n"));
importer.doWork();
Dao<Event> newEDao = dataPool.getDao(Event.class);
Dao<Person> newPDao = dataPool.getDao(Person.class);
assertEquals(3, newEDao.getAll().size());
assertEquals(2, newPDao.getAll().size());