diff --git a/Mage/src/test/java/mage/ManaTest.java b/Mage/src/test/java/mage/ManaTest.java index b40b0a4562..2f49626955 100644 --- a/Mage/src/test/java/mage/ManaTest.java +++ b/Mage/src/test/java/mage/ManaTest.java @@ -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 diff --git a/Mage/src/test/java/mage/counters/CounterTest.java b/Mage/src/test/java/mage/counters/CounterTest.java index 70c33aab49..ae66b60780 100644 --- a/Mage/src/test/java/mage/counters/CounterTest.java +++ b/Mage/src/test/java/mage/counters/CounterTest.java @@ -60,7 +60,7 @@ public class CounterTest { // then assertEquals(copy, counter); - assertFalse(Objects.equals(copy, counter)); + assertNotSame(copy, counter); } @Test