Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
ozlerhakan committed Jan 10, 2019
1 parent 3bc6722 commit 7cf9bde
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/test/java/com/poiji/deserialize/DeserializerCaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ public static Iterable<Object[]> queries() {

@Test
public void shouldMapExcelToJava() {
try (InputStream stream = new FileInputStream(new File(path))) {
List<ProductExcelDTO> actualEmployees = Poiji.fromExcel(stream, poijiExcelType, ProductExcelDTO.class);

assertThat(actualEmployees, notNullValue());
assertThat(actualEmployees.size(), not(0));
} catch (IOException e) {
fail(e.getMessage());
}
try (InputStream stream = new FileInputStream(new File(path))) {
List<ProductExcelDTO> products = Poiji.fromExcel(stream, poijiExcelType, ProductExcelDTO.class);
assertThat(products, notNullValue());
assertThat(products.size(), not(0));
} catch (IOException e) {
fail(e.getMessage());
}
}
}

0 comments on commit 7cf9bde

Please sign in to comment.