Season 2023

This commit is contained in:
2022-07-31 17:50:01 +02:00
parent 34f906f622
commit c76a972286
10 changed files with 90 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ import static org.junit.Assert.assertEquals;
public class TLWMatchdaysCreatorTest {
int season = 2022;
int season = 2023;
@Test
public void getMatchdaysTippligaTest() {
@@ -22,7 +22,7 @@ public class TLWMatchdaysCreatorTest {
@Test
public void getMatchdaysWTLPokalTest() {
TLWMatchdaysCreator matchdaysCreator = new TLWMatchdaysCreator(season, 1, "WTL-Pokal");
TLWMatchdaysCreator matchdaysCreator = new TLWMatchdaysCreator(season, 48, "WTL-Pokal");
ArrayList<TLWMatchday> matchdays = matchdaysCreator.getMatchdays();
assertEquals((Integer) 1, matchdays.get(0).getMatchday());

View File

@@ -8,11 +8,11 @@ import static org.junit.Assert.assertEquals;
public class TLWMatchesCreatorFootballTest {
int season = 2022;
int season = 2023;
@Test
public void getMatchesTest() {
TLWMatchesCreatorFootball creator = new TLWMatchesCreatorFootball(2021, 1, "WTL-Pokal");
TLWMatchesCreatorFootball creator = new TLWMatchesCreatorFootball(season, 48, "WTL-Pokal");
ArrayList<TLWMatch> matches = creator.getMatches();
assertEquals((Integer) 1, matches.get(0).getMatchNo());

View File

@@ -4,11 +4,13 @@ import org.junit.Test;
public class TLWMatchesCreatorTipperPokalTest {
int season = 2023;
@Test
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();
System.out.println(sql);

View File

@@ -8,7 +8,7 @@ import static org.junit.Assert.assertEquals;
public class TLWMatchesCreatorTipperTest {
int season = 2022;
int season = 2023;
@Test
public void getMatchesTippliga1Test() {

View File

@@ -9,7 +9,7 @@ import static org.junit.Assert.assertEquals;
public class TLWTeamsCreatorTest {
int season = 2022;
int season = 2023;
@Test
public void getTeamsTippligaFootball1Test() {
@@ -48,7 +48,7 @@ public class TLWTeamsCreatorTest {
TLWTeamsCreator teamCreator = new TLWTeamsCreator(2021, 49, matches);
String sql = teamCreator.getSql();
// System.out.println(sql);
System.out.println(sql);
}
@Test