Search in sources :

Example 1 with CodaMappingManager

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);
}
Also used : Blob(org.apache.isis.applib.value.Blob) CodaMappingManager(org.estatio.module.capex.imports.CodaMappingManager) Test(org.junit.Test)

Aggregations

Blob (org.apache.isis.applib.value.Blob)1 CodaMappingManager (org.estatio.module.capex.imports.CodaMappingManager)1 Test (org.junit.Test)1