Some code cleaning; define ID type as an alias to Int

This commit is contained in:
Claude Brisson
2023-05-23 18:08:04 +02:00
parent 74dcb64899
commit 728ed482f9
8 changed files with 31 additions and 25 deletions

View File

@@ -13,15 +13,15 @@ class ImportExportTests: TestBase() {
val resp = TestAPI.post("/api/tour", resource)
val id = resp.asObject().getInt("id")
val tournament = TestAPI.get("/api/tour/$id").asObject()
logger.info(tournament.toString())
logger.info(tournament.toString().slice(0..50) + "...")
val players = TestAPI.get("/api/tour/$id/part").asArray()
logger.info(players.toString())
logger.info(players.toString().slice(0..50) + "...")
for (round in 1..tournament.getInt("rounds")!!) {
val games = TestAPI.get("/api/tour/$id/res/1").asArray()
logger.info("games for round $round: {}", games.toString())
}
val xml = TestAPI.getXml("/api/tour/$id")
logger.info(xml)
logger.info(xml.slice(0..50)+"...")
}
}
}