Search in sources :

Example 1 with ProfessorField

use of org.simpleflatmapper.test.beans.ProfessorField in project SimpleFlatMapper by arnaudroger.

the class CsvMapperJoinTest method testDynamicProfessorField.

@Test
public void testDynamicProfessorField() throws IOException {
    final CsvMapperFactory mapperFactory = getCsvMapperFactory();
    final List<ProfessorField> professors = mapperFactory.newMapper(ProfessorField.class).forEach(new StringReader(HEADER_DATA), new ListCollector<ProfessorField>()).getList();
    JoinTest.validateProfessors(professors);
}
Also used : ListCollector(org.simpleflatmapper.util.ListCollector) StringReader(java.io.StringReader) CsvMapperFactory(org.simpleflatmapper.csv.CsvMapperFactory) ProfessorField(org.simpleflatmapper.test.beans.ProfessorField) Test(org.junit.Test) JoinTest(org.simpleflatmapper.test.jdbc.JoinTest)

Aggregations

StringReader (java.io.StringReader)1 Test (org.junit.Test)1 CsvMapperFactory (org.simpleflatmapper.csv.CsvMapperFactory)1 ProfessorField (org.simpleflatmapper.test.beans.ProfessorField)1 JoinTest (org.simpleflatmapper.test.jdbc.JoinTest)1 ListCollector (org.simpleflatmapper.util.ListCollector)1