Checkpoint
This commit is contained in:
@ -0,0 +1,18 @@
|
||||
package com.plannaplan.configutils;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
import com.plannaplan.models.FileData;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class FileToDatabaseMigratorTest {
|
||||
@Test
|
||||
public void shouldInsertToDatabase() {
|
||||
FileToDatabaseMigrator migrator = new FileToDatabaseMigrator();
|
||||
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("Zajecia.xlsx");
|
||||
FileReader r = new FileReader(inputStream);
|
||||
FileData d = r.read();
|
||||
migrator.migrate(d);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user