Finish gist
This commit is contained in:
@@ -9,7 +9,7 @@ public class APIFootballConnectorTest {
|
||||
|
||||
@Test
|
||||
public void APITestGetMatchDataOfMatchdayBundesliga() {
|
||||
APIFootballConnector apiFootballConnector = new APIFootballConnector(2020);
|
||||
APIFootballConnector apiFootballConnector = APIFootballConnector.getAPIFootballConnectorInstance(2020);
|
||||
ArrayList<APIFootballMatch> matchesOfMatchday = apiFootballConnector.getMatchDataByLeagueAndMatchday(2677, 1);
|
||||
assert matchesOfMatchday.get(0).getTeamIdHome() == 744;
|
||||
assert matchesOfMatchday.get(0).getTeamIdGuest() == 159;
|
||||
|
||||
@@ -16,5 +16,13 @@ public class APIFootballUpdaterTest {
|
||||
public void updateAllFixturesTest() throws IOException {
|
||||
APIFootballUpdater updater = new APIFootballUpdater(2021);
|
||||
updater.updateAllFixtures("Tippliga.json");
|
||||
updater.updateAllFixtures("WTL_Pokal.json");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateAllRoundsTest() throws IOException {
|
||||
APIFootballUpdater updater = new APIFootballUpdater(2021);
|
||||
updater.updateAllRounds("Tippliga.json");
|
||||
updater.updateAllRounds("WTL_Pokal.json");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user