Skip to content

Commit

Permalink
add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
ozlerhakan committed Jan 29, 2017
1 parent c2b5973 commit 74851c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/java/com/poiji/deserialize/DerializersTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.poiji.deserialize;

import com.poiji.deserialize.model.Employee;
import com.poiji.exception.PoijiException;
import com.poiji.internal.Poiji;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -40,6 +41,7 @@ public static Iterable<Object[]> queries() throws Exception {
return Arrays.asList(new Object[][]{
{"src/test/resources/employees.xlsx", unmarshalling(), null},
{"src/test/resources/fruits.xlsx", unmarshalling(), FileNotFoundException.class},
{"src/test/resources/cloud.xls", unmarshalling(), PoijiException.class},
});
}

Expand All @@ -66,7 +68,7 @@ public void shouldMapExcelToJava() {
assertThat(actualEmployee2.toString(), is(expectedEmployee2.toString()));
assertThat(actualEmployee3.toString(), is(expectedEmployee3.toString()));

} catch (FileNotFoundException e) {
} catch (Exception e) {
if (expectedException == null) {
fail(e.getMessage());
} else {
Expand Down
Binary file added src/test/resources/cloud.xls
Binary file not shown.

0 comments on commit 74851c8

Please sign in to comment.