Add api football files updater

This commit is contained in:
2020-10-07 22:14:13 +02:00
parent bce0f3800c
commit f22f9a929b
18 changed files with 15808 additions and 1048 deletions
@@ -5,7 +5,7 @@ import org.junit.Test;
public class TLWTeamsUpdaterTest {
@Test
public void getTeamsTest() throws Exception {
public void getInsertSQLTest1() throws Exception {
TLWMatchesUpdaterFootball matchesUpdater = new TLWMatchesUpdaterFootball(2021, 1, "Tippliga.json");
TLWTeamsUpdater teamsUpdater = new TLWTeamsUpdater(2021, 1, matchesUpdater.tlwMatchesUpdated);
@@ -13,4 +13,14 @@ public class TLWTeamsUpdaterTest {
System.out.println(sql);
}
@Test
public void getInsertSQLTest2() throws Exception {
TLWMatchesUpdaterFootball matchesUpdater = new TLWMatchesUpdaterFootball(2021, 2, "Tippliga.json");
TLWTeamsUpdater teamsUpdater = new TLWTeamsUpdater(2021, 2, matchesUpdater.tlwMatchesUpdated);
String sql = teamsUpdater.getInsertSQL();
System.out.println(sql);
}
}