mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
test for game hangs when computer cant find card in library
This commit is contained in:
parent
fa9f6115cf
commit
dfddc70984
2 changed files with 22 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
package org.mage.test.ai.bugs;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import mage.Constants;
|
||||
import mage.game.permanent.Permanent;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestBase;
|
||||
|
||||
public class BugCantFindCardInLibrary extends CardTestBase {
|
||||
|
||||
@Test
|
||||
public void testWithSquadronHawk() {
|
||||
addCard(Constants.Zone.HAND, playerA, "Squadron Hawk");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Plains");
|
||||
|
||||
execute();
|
||||
Permanent merfolk = getPermanent("Squadron Hawk", playerA.getId());
|
||||
Assert.assertNotNull(merfolk);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue