From be18f159befeb94b955d4861f6a9034ef68a123c Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Tue, 10 Jun 2025 21:01:25 +0200 Subject: [PATCH] Fix test --- api-webapp/src/test/kotlin/TeamTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-webapp/src/test/kotlin/TeamTest.kt b/api-webapp/src/test/kotlin/TeamTest.kt index d482370..8d2614b 100644 --- a/api-webapp/src/test/kotlin/TeamTest.kt +++ b/api-webapp/src/test/kotlin/TeamTest.kt @@ -28,7 +28,7 @@ class TeamTest { assertTrue(resp.getBoolean("success") == true, "expecting success") val aTeamID = resp.getInt("id") ?: error("no null allowed here") resp = TestAPI.get("/api/tour/$aTeamTournamentID/team/$aTeamID").asObject() - assertEquals("""{"id":$aTeamID,"name":"The Buffallos","players":[$aTeamPlayerID,$anotherTeamPlayerID],"rank":-3,"country":"FR"}""", resp.toString(), "expecting team description") + assertEquals("""{"id":$aTeamID,"name":"The Buffallos","players":[$aTeamPlayerID,$anotherTeamPlayerID],"rank":-3,"country":"FR","names":["Burma Nestor","Poirot Hercule"],"ranks":[-5,-1]}""", resp.toString(), "expecting team description") arr = TestAPI.get("/api/tour/$aTeamTournamentID/pair/1").asObject().getArray("pairables") assertEquals("[$aTeamID]", arr.toString(), "expecting a singleton array") // nothing stops us in reusing players in different teams, at least for now...