Search in sources :

Example 1 with ProfessorC

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

the class CsvMapperJoinTest method testDynamicProfessorC.

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

Example 2 with ProfessorC

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

the class CsvMapperJoinTest method testDynamicProfessorCSharding.

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

Aggregations

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