Fix failing tests that were doing Object.Equels where == was needed

This commit is contained in:
JOAC69 2017-02-19 02:31:04 -06:00
parent 4201520cb4
commit 845e406d63
2 changed files with 4 additions and 3 deletions

View file

@ -6,6 +6,7 @@ import mage.constants.ManaType;
import mage.filter.FilterMana;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertNotSame;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
@ -527,7 +528,7 @@ public class ManaTest {
// then
assertEquals(mana, copy); // are equal
assertFalse(Objects.equals(mana, copy)); // are not the same object
assertNotSame(mana, copy); // are not the same object
}
@Test
@ -605,7 +606,7 @@ public class ManaTest {
// then
assertEquals(mana, newMana);
assertFalse(Objects.equals(mana, newMana));
assertNotSame(mana, newMana);
}
@Test

View file

@ -60,7 +60,7 @@ public class CounterTest {
// then
assertEquals(copy, counter);
assertFalse(Objects.equals(copy, counter));
assertNotSame(copy, counter);
}
@Test