mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Test framework: added planes support in tests (command: addPlane)
This commit is contained in:
parent
d9344093dd
commit
30fe344e23
3 changed files with 37 additions and 24 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue