Season 2023
This commit is contained in:
@@ -119,7 +119,7 @@ public class TLWMatch extends BaseMatch{
|
|||||||
this.matchDatetime = matchDatetime;
|
this.matchDatetime = matchDatetime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TLWMatch(int season, int league, int matchday, int matchNo, int teamIdHome, int teamIdGuest, String matchDatetime) {
|
public TLWMatch(int season, int league, int matchday, int matchNo, int teamIdHome, int teamIdGuest, String matchDatetime, int koMatch) {
|
||||||
this.season = season;
|
this.season = season;
|
||||||
this.matchday = matchday;
|
this.matchday = matchday;
|
||||||
this.league = league;
|
this.league = league;
|
||||||
@@ -128,6 +128,7 @@ public class TLWMatch extends BaseMatch{
|
|||||||
this.teamIdGuest = teamIdGuest;
|
this.teamIdGuest = teamIdGuest;
|
||||||
this.matchDatetime = matchDatetime;
|
this.matchDatetime = matchDatetime;
|
||||||
this.status = 0;
|
this.status = 0;
|
||||||
|
this.koMatch = koMatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TLWMatch(TLWMatch referenceMatch) {
|
public TLWMatch(TLWMatch referenceMatch) {
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class TLWMatchesCreatorTipperLeague extends TLWMatchesCreatorBase {
|
|||||||
|
|
||||||
String matchDatetime = getDeliveryDateForMatchday(matchday);
|
String matchDatetime = getDeliveryDateForMatchday(matchday);
|
||||||
|
|
||||||
TLWMatch tlwMatch = new TLWMatch(this.season, this.league, matchday, matchNo, teamIdHome, teamIdGuest, matchDatetime);
|
TLWMatch tlwMatch = new TLWMatch(this.season, this.league, matchday, matchNo, teamIdHome, teamIdGuest, matchDatetime, 0);
|
||||||
this.TLWMatches.add(tlwMatch);
|
this.TLWMatches.add(tlwMatch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ public class TLWMatchesCreatorTipperPokal extends TLWMatchesCreatorBase{
|
|||||||
|
|
||||||
String matchDatetime = getDeliveryDateForMatchday(matchday);
|
String matchDatetime = getDeliveryDateForMatchday(matchday);
|
||||||
|
|
||||||
TLWMatch tlwMatch = new TLWMatch(this.season, this.league, matchday, matchNo, teamIdHome, teamIdGuest, matchDatetime);
|
TLWMatch tlwMatch = new TLWMatch(this.season, this.league, matchday, matchNo, teamIdHome, teamIdGuest, matchDatetime, 1);
|
||||||
this.TLWMatches.add(tlwMatch);
|
this.TLWMatches.add(tlwMatch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -933,5 +933,70 @@
|
|||||||
"teamname": "Brentford",
|
"teamname": "Brentford",
|
||||||
"tippligaID": 635,
|
"tippligaID": 635,
|
||||||
"apiFootballID": 55
|
"apiFootballID": 55
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "1. FC Kaan-Marienborn 07",
|
||||||
|
"tippligaID": 636,
|
||||||
|
"apiFootballID": 12799
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "Neustrelitz",
|
||||||
|
"tippligaID": 58,
|
||||||
|
"apiFootballID": 12820
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "SV Straelen",
|
||||||
|
"tippligaID": 637,
|
||||||
|
"apiFootballID": 12862
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "FC Einheit Wernigerode",
|
||||||
|
"tippligaID": 638,
|
||||||
|
"apiFootballID": 17035
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "Illertissen",
|
||||||
|
"tippligaID": 591,
|
||||||
|
"apiFootballID": 9330
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "Stuttgarter Kickers",
|
||||||
|
"tippligaID": 600,
|
||||||
|
"apiFootballID": 12868
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "Schwarz-Weiß Rehden",
|
||||||
|
"tippligaID": 592,
|
||||||
|
"apiFootballID": 9345
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "SV Rödinghausen",
|
||||||
|
"tippligaID": 165,
|
||||||
|
"apiFootballID": 1650
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "TSV Schott Mainz",
|
||||||
|
"tippligaID": 639,
|
||||||
|
"apiFootballID": 14524
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "SV Oberachern",
|
||||||
|
"tippligaID": 640,
|
||||||
|
"apiFootballID": 12822
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "Blau-Weiß Lohne",
|
||||||
|
"tippligaID": 641,
|
||||||
|
"apiFootballID": 14629
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "Energie Cottbus",
|
||||||
|
"tippligaID": 10,
|
||||||
|
"apiFootballID": 1320
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"teamname": "FC Teutonia 05 Ottensen",
|
||||||
|
"tippligaID": 642,
|
||||||
|
"apiFootballID": 12878
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -263,5 +263,15 @@
|
|||||||
"team_id": 2124,
|
"team_id": 2124,
|
||||||
"team_name": "Olli L.",
|
"team_name": "Olli L.",
|
||||||
"team_name_short": "Olli L."
|
"team_name_short": "Olli L."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"team_id": 2131,
|
||||||
|
"team_name": "Adrian",
|
||||||
|
"team_name_short": "Adrian"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"team_id": 2133,
|
||||||
|
"team_name": "Barb",
|
||||||
|
"team_name_short": "Barb"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import static org.junit.Assert.assertEquals;
|
|||||||
|
|
||||||
public class TLWMatchdaysCreatorTest {
|
public class TLWMatchdaysCreatorTest {
|
||||||
|
|
||||||
int season = 2022;
|
int season = 2023;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchdaysTippligaTest() {
|
public void getMatchdaysTippligaTest() {
|
||||||
@@ -22,7 +22,7 @@ public class TLWMatchdaysCreatorTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchdaysWTLPokalTest() {
|
public void getMatchdaysWTLPokalTest() {
|
||||||
TLWMatchdaysCreator matchdaysCreator = new TLWMatchdaysCreator(season, 1, "WTL-Pokal");
|
TLWMatchdaysCreator matchdaysCreator = new TLWMatchdaysCreator(season, 48, "WTL-Pokal");
|
||||||
ArrayList<TLWMatchday> matchdays = matchdaysCreator.getMatchdays();
|
ArrayList<TLWMatchday> matchdays = matchdaysCreator.getMatchdays();
|
||||||
|
|
||||||
assertEquals((Integer) 1, matchdays.get(0).getMatchday());
|
assertEquals((Integer) 1, matchdays.get(0).getMatchday());
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ import static org.junit.Assert.assertEquals;
|
|||||||
|
|
||||||
public class TLWMatchesCreatorFootballTest {
|
public class TLWMatchesCreatorFootballTest {
|
||||||
|
|
||||||
int season = 2022;
|
int season = 2023;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchesTest() {
|
public void getMatchesTest() {
|
||||||
TLWMatchesCreatorFootball creator = new TLWMatchesCreatorFootball(2021, 1, "WTL-Pokal");
|
TLWMatchesCreatorFootball creator = new TLWMatchesCreatorFootball(season, 48, "WTL-Pokal");
|
||||||
ArrayList<TLWMatch> matches = creator.getMatches();
|
ArrayList<TLWMatch> matches = creator.getMatches();
|
||||||
|
|
||||||
assertEquals((Integer) 1, matches.get(0).getMatchNo());
|
assertEquals((Integer) 1, matches.get(0).getMatchNo());
|
||||||
|
|||||||
@@ -4,11 +4,13 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class TLWMatchesCreatorTipperPokalTest {
|
public class TLWMatchesCreatorTipperPokalTest {
|
||||||
|
|
||||||
|
int season = 2023;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchesWTLPokalTest() {
|
public void getMatchesWTLPokalTest() {
|
||||||
TLWMatchdaysCreator matchdaysCreator = new TLWMatchdaysCreator(2022, 48, "WTL-Pokal");
|
TLWMatchdaysCreator matchdaysCreator = new TLWMatchdaysCreator(season, 48, "WTL-Pokal");
|
||||||
|
|
||||||
TLWMatchesCreatorTipperPokal creator = new TLWMatchesCreatorTipperPokal(2022, 98, "WTL-Pokal Tipper", matchdaysCreator.getMatchdays());
|
TLWMatchesCreatorTipperPokal creator = new TLWMatchesCreatorTipperPokal(season, 98, "WTL-Pokal Tipper", matchdaysCreator.getMatchdays());
|
||||||
|
|
||||||
String sql = creator.getSQLInsertString();
|
String sql = creator.getSQLInsertString();
|
||||||
System.out.println(sql);
|
System.out.println(sql);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import static org.junit.Assert.assertEquals;
|
|||||||
|
|
||||||
public class TLWMatchesCreatorTipperTest {
|
public class TLWMatchesCreatorTipperTest {
|
||||||
|
|
||||||
int season = 2022;
|
int season = 2023;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchesTippliga1Test() {
|
public void getMatchesTippliga1Test() {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import static org.junit.Assert.assertEquals;
|
|||||||
|
|
||||||
public class TLWTeamsCreatorTest {
|
public class TLWTeamsCreatorTest {
|
||||||
|
|
||||||
int season = 2022;
|
int season = 2023;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getTeamsTippligaFootball1Test() {
|
public void getTeamsTippligaFootball1Test() {
|
||||||
@@ -48,7 +48,7 @@ public class TLWTeamsCreatorTest {
|
|||||||
|
|
||||||
TLWTeamsCreator teamCreator = new TLWTeamsCreator(2021, 49, matches);
|
TLWTeamsCreator teamCreator = new TLWTeamsCreator(2021, 49, matches);
|
||||||
String sql = teamCreator.getSql();
|
String sql = teamCreator.getSql();
|
||||||
// System.out.println(sql);
|
System.out.println(sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user