Add auto update of results
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package de.jeyp91.tippliga;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class TLWMatchesResultsUpdaterTest {
|
||||
|
||||
@Test
|
||||
public void updateResultsTest1() {
|
||||
TLWMatchesResultsUpdater updater = new TLWMatchesResultsUpdater(2023, 2, "Tippliga");
|
||||
System.out.println(updater.getBeautifulInfo());
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,21 @@
|
||||
package de.jeyp91.tippligaforum;
|
||||
|
||||
import de.jeyp91.tippliga.TLWMatch;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TippligaWebsiteConnectorTest {
|
||||
@Test
|
||||
public void getChecksumOfPostTest() throws IOException {
|
||||
public void updateResultsAdminTest() throws IOException {
|
||||
TippligaWebsiteConnector con = new TippligaWebsiteConnector();
|
||||
List<TLWMatch> matches = new ArrayList<>();
|
||||
TLWMatch match = new TLWMatch(2023, 48, 5, 61, "0", 3, 0);
|
||||
match.setGoalsHome(1);
|
||||
match.setGoalsGuest(5);
|
||||
matches.add(match);
|
||||
con.updateResultsAdmin(2023, 48, 5, matches);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user