Changed tests

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2021-01-06 11:39:58 +01:00
parent 7813f148eb
commit fddd5b757d
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -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);
} }
} }