From 0b27499ce053b393fffd8b56a901f9f385231c4b Mon Sep 17 00:00:00 2001 From: magenoxx Date: Wed, 18 Jul 2012 08:11:36 +0400 Subject: [PATCH] Changed the order of choice compare in test framework --- .../src/test/java/org/mage/test/player/TestPlayer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java b/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java index d9d2eaf01e..19c3a4b967 100644 --- a/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java +++ b/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java @@ -38,6 +38,7 @@ import mage.counters.Counter; import mage.filter.FilterPermanent; import mage.filter.common.FilterAttackingCreature; import mage.filter.common.FilterCreatureForCombat; +import mage.filter.predicate.mageobject.NamePredicate; import mage.game.Game; import mage.game.permanent.Permanent; import mage.player.ai.ComputerPlayer; @@ -51,7 +52,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.UUID; -import mage.filter.predicate.mageobject.NamePredicate; /** * @@ -170,8 +170,8 @@ public class TestPlayer extends ComputerPlayer { @Override public boolean choose(Constants.Outcome outcome, Choice choice, Game game) { if (!choices.isEmpty()) { - for (String choose1: choice.getChoices()) { - for (String choose2: choices) { + for (String choose2: choices) { + for (String choose1: choice.getChoices()) { if (choose1.equals(choose2)) { choice.setChoice(choose2); choices.remove(choose2);