Test framework: added planes support in tests (command: addPlane)

This commit is contained in:
Oleg Agafonov 2020-08-29 20:38:57 +04:00
parent d9344093dd
commit 30fe344e23
3 changed files with 37 additions and 24 deletions

View file

@ -27,6 +27,7 @@ import mage.player.ai.ComputerPlayer7;
import mage.player.ai.ComputerPlayerMCTS;
import mage.players.ManaPool;
import mage.players.Player;
import mage.server.util.SystemUtil;
import mage.util.CardUtil;
import org.junit.Assert;
import org.junit.Before;
@ -657,6 +658,10 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
}
}
public void addPlane(Player player, Planes plane) {
Assert.assertTrue("Can't put plane to game: " + plane.getClassName(), SystemUtil.putPlaneToGame(currentGame, player, plane.getClassName()));
}
/**
* Returns card list container for specified game zone and player.
*