Polishing test cases.
This commit is contained in:
@@ -45,10 +45,13 @@ public class StartNormalGameTest extends TestBase {
|
||||
""));
|
||||
|
||||
PokerTHMessage msg;
|
||||
do {
|
||||
msg = receiveMessage();
|
||||
} while (msg.isPlayerListMessageSelected() || msg.isGameListMessageSelected());
|
||||
msg = receiveMessage();
|
||||
if (!msg.isGameListMessageSelected()) {
|
||||
failOnErrorMessage(msg);
|
||||
fail("Invalid message.");
|
||||
}
|
||||
|
||||
msg = receiveMessage();
|
||||
if (msg.isJoinGameReplyMessageSelected()) {
|
||||
if (!msg.getJoinGameReplyMessage().getValue().getJoinGameResult().isJoinGameAckSelected()) {
|
||||
fail("Could not create game!");
|
||||
|
||||
Reference in New Issue
Block a user