La méthode takePickomino ne lance pas UnknownIdException/IncorrectKeyException pour un ID/key invalide
Bonjour,
J'ai remarqué que la méthode takePickomino ne lance pas UnknownIdException lorsqu'elle est appelée avec un identifiant de partie invalide.
Voici le test qui échoue actuellement :
// Test si la méthode takePickomino() lance une UnknownIdException avec un identifiant invalide
@Test
fun testUnknownIdExceptionTakePickomino() {
assertThrows<UnknownIdException> {
this.connector.takePickomino(0, this.gameKey, 1)
}
}
Et aussi, c'est la même chose avec une clef invalide :
// Test si la méthode takePickomino() lance une IncorrectKeyException avec une clef invalide
@Test
fun testIncorrectKeyExceptionTakePickomino() {
assertThrows<IncorrectKeyException> {
this.connector.takePickomino(this.gameId, 0, 1)
}
}
Et pourtant dans la documentation il est marqué qu'elle est sensé lancer ces exceptions.