First version with ability to create database for new season
This commit is contained in:
31
src/test/java/de/jeyp91/TeamIDMatcherTest.java
Normal file
31
src/test/java/de/jeyp91/TeamIDMatcherTest.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package de.jeyp91;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class TeamIDMatcherTest {
|
||||
|
||||
@Test
|
||||
public void getOpenLigaDbIdFromTippligaIdTest() {
|
||||
int openligaDBID;
|
||||
|
||||
openligaDBID = TeamIDMatcher.getOpenLigaDbIdFromTippligaId(1);
|
||||
assertEquals(40, openligaDBID);
|
||||
openligaDBID = TeamIDMatcher.getOpenLigaDbIdFromTippligaId(16);
|
||||
assertEquals(54, openligaDBID);
|
||||
openligaDBID = TeamIDMatcher.getOpenLigaDbIdFromTippligaId(12);
|
||||
assertEquals(7, openligaDBID);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getTippligaIdFromOpenLigaDbIdTest() {
|
||||
int openligaDBID;
|
||||
|
||||
openligaDBID = TeamIDMatcher.getTippligaIdFromOpenLigaDbId(40);
|
||||
assertEquals(1, openligaDBID);
|
||||
openligaDBID = TeamIDMatcher.getTippligaIdFromOpenLigaDbId(54);
|
||||
assertEquals(16, openligaDBID);
|
||||
openligaDBID = TeamIDMatcher.getTippligaIdFromOpenLigaDbId(7);
|
||||
assertEquals(12, openligaDBID);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user