Clean up shit

This commit is contained in:
2020-10-04 12:23:43 +02:00
parent e57f79c18b
commit 557cd59c8f
14 changed files with 300 additions and 68 deletions

View File

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