Clean up shit
This commit is contained in:
@@ -7,25 +7,25 @@ public class TeamIDMatcherTest {
|
||||
|
||||
@Test
|
||||
public void getOpenLigaDbIdFromTippligaIdTest() {
|
||||
int openligaDBID;
|
||||
int apiFootballId;
|
||||
|
||||
openligaDBID = TeamIDMatcher.getOpenLigaDbIdFromTippligaId(1);
|
||||
assertEquals(40, openligaDBID);
|
||||
openligaDBID = TeamIDMatcher.getOpenLigaDbIdFromTippligaId(16);
|
||||
assertEquals(54, openligaDBID);
|
||||
openligaDBID = TeamIDMatcher.getOpenLigaDbIdFromTippligaId(12);
|
||||
assertEquals(7, openligaDBID);
|
||||
apiFootballId = TeamIDMatcher.getApiFootballIdFromTippligaId(505);
|
||||
assertEquals(80, apiFootballId);
|
||||
apiFootballId = TeamIDMatcher.getApiFootballIdFromTippligaId(160);
|
||||
assertEquals(91, apiFootballId);
|
||||
apiFootballId = TeamIDMatcher.getApiFootballIdFromTippligaId(182);
|
||||
assertEquals(12754, apiFootballId);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getTippligaIdFromOpenLigaDbIdTest() {
|
||||
int openligaDBID;
|
||||
int tlwId;
|
||||
|
||||
openligaDBID = TeamIDMatcher.getTippligaIdFromOpenLigaDbId(40);
|
||||
assertEquals(1, openligaDBID);
|
||||
openligaDBID = TeamIDMatcher.getTippligaIdFromOpenLigaDbId(54);
|
||||
assertEquals(16, openligaDBID);
|
||||
openligaDBID = TeamIDMatcher.getTippligaIdFromOpenLigaDbId(7);
|
||||
assertEquals(12, openligaDBID);
|
||||
tlwId = TeamIDMatcher.getTippligaIdFromApiFootballId(80);
|
||||
assertEquals(505, tlwId);
|
||||
tlwId = TeamIDMatcher.getTippligaIdFromApiFootballId(91);
|
||||
assertEquals(160, tlwId);
|
||||
tlwId = TeamIDMatcher.getTippligaIdFromApiFootballId(12754);
|
||||
assertEquals(182, tlwId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<<<<<<< HEAD
|
||||
package de.jeyp91.tippliga;
|
||||
|
||||
import org.junit.Test;
|
||||
@@ -12,7 +11,4 @@ public class TLWMatchesUpdaterFootballTest {
|
||||
|
||||
System.out.println(sql);
|
||||
}
|
||||
=======
|
||||
package de.jeyp91.tippliga;public class TLWMatchesUpdaterFootball {
|
||||
>>>>>>> origin/master
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<<<<<<< HEAD
|
||||
package de.jeyp91.tippliga;
|
||||
|
||||
import org.junit.Test;
|
||||
@@ -14,8 +13,4 @@ public class TLWTeamsUpdaterTest {
|
||||
|
||||
System.out.println(sql);
|
||||
}
|
||||
|
||||
=======
|
||||
package de.jeyp91.tippliga;public class TLWTeamsUpdaterTest {
|
||||
>>>>>>> origin/master
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ public class TippligaSQLConnectorTest {
|
||||
|
||||
@Test
|
||||
public void getTeamsBySeasonAndLeagueTest() {
|
||||
ArrayList<TLWTeam> teams = tl.getTeamsBySeasonAndLeague("2020", "1");
|
||||
ArrayList<TLWTeam> teams = tl.getTeams("2020", "1");
|
||||
|
||||
assertEquals(84, teams.size());
|
||||
|
||||
@@ -34,11 +34,9 @@ public class TippligaSQLConnectorTest {
|
||||
|
||||
@Test
|
||||
public void getTeamsByIdTest() {
|
||||
ArrayList<TLWTeam> teams = tl.getTeamsById("1");
|
||||
ArrayList<TLWTeam> teams = tl.getTeams("1");
|
||||
|
||||
assertEquals(39, teams.size());
|
||||
|
||||
assertEquals(2011, teams.get(0).getSeason());
|
||||
assertEquals(2021, teams.get(0).getSeason());
|
||||
assertEquals(1, teams.get(0).getLeague());
|
||||
assertEquals(1, teams.get(0).getTeamId());
|
||||
assertEquals("Bayern München", teams.get(0).getTeamName());
|
||||
|
||||
Reference in New Issue
Block a user