private void assertCurrentBet(int expectedPlayerCurrentBet, Player player) {
   int actualPlayerCurrentBet = tableFacade.getCurrentStepBet(player);
   String message =
       format(
           "Player %s current bet - expected  : %s, actual : %s",
           player.getNickname(), expectedPlayerCurrentBet, actualPlayerCurrentBet);
   assertEquals(message, expectedPlayerCurrentBet, actualPlayerCurrentBet);
 }
示例#2
0
 public FoldEvent(Player player) {
   this.player = player.clone();
 }
示例#3
0
 @Override
 public String getDescription() {
   return String.format("FoldEvent(%s)", player.getNickname());
 }