use of org.estatio.module.capex.imports.CodaMappingManager in project estatio by estatio.
the class CodaMappingManager_IntegTest method upload.
@Test
public void upload() throws Exception {
String fileName = "CODAMappings.xlsx";
final byte[] pdfBytes = Resources.toByteArray(Resources.getResource(CodaMappingManager_IntegTest.class, fileName));
final Blob blob = new Blob(fileName, "application/pdf", pdfBytes);
// When
wrap(new CodaMappingManager()).upload(blob);
// Then
assertThat(codaMappingRepository.all()).hasSize(46);
}
Aggregations