test for game hangs when computer cant find card in library

This commit is contained in:
Loki 2011-12-26 17:30:55 +04:00
parent fa9f6115cf
commit dfddc70984
2 changed files with 22 additions and 0 deletions

View file

@ -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);
}
}