mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Fix failing tests that were doing Object.Equels where == was needed
This commit is contained in:
parent
4201520cb4
commit
845e406d63
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -60,7 +60,7 @@ public class CounterTest {
|
|||
|
||||
// then
|
||||
assertEquals(copy, counter);
|
||||
assertFalse(Objects.equals(copy, counter));
|
||||
assertNotSame(copy, counter);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue