Changed tests
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
7813f148eb
commit
fddd5b757d
@ -10,12 +10,11 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class FileReaderTest {
|
public class FileReaderTest {
|
||||||
@Test
|
@Test
|
||||||
public void shoulReturnNull() {
|
public void shouldNotReturnNull() {
|
||||||
final InputStream inputStream = getClass().getClassLoader().getResourceAsStream("Zajecia.xlsx");
|
final InputStream inputStream = getClass().getClassLoader().getResourceAsStream("Zajecia.xlsx");
|
||||||
final FileReader r = new FileReader(inputStream);
|
final FileReader r = new FileReader(inputStream);
|
||||||
final FileData d = r.read();
|
final FileData d = r.read();
|
||||||
assertTrue(d.getRows().next().getCell(0).toString().equals("1.0"));
|
assertTrue(d.getKeys().size() == 12);
|
||||||
assertTrue(d.getKeys().size() == 24);
|
|
||||||
assertTrue(d != null);
|
assertTrue(d != null);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user