public void testReadRowSalesman() {
try {
String[] row = ImportFile.getCSVReader(FactoryDataFileTest.FILE_DIR_TYPE_1).readNext();
DomainSalesman domainSalesman = (DomainSalesman) instance.readRow(row);
Assert.assertNotNull("Read Salesman row fail", domainSalesman);
if (domainSalesman == null) {
return;
}
Assert.assertEquals("Error on assert salesman name", "Diego", domainSalesman.getName());
Assert.assertEquals("Error on assert salesman cpf", "1234567891234", domainSalesman.getCpf());
Assert.assertEquals("Error on assert salesman salary", 50000D, domainSalesman.getSalary());
} catch (Exception e) {
fail(e.getMessage());
}
}