From c8def9b1ca03b25e25412f2c7b22dd87b1b57b1d Mon Sep 17 00:00:00 2001 From: Hans Mackowiak Date: Sun, 7 Jan 2024 07:29:19 +0100 Subject: [PATCH] GameSimulationTest: update some hasKeyword tests --- .../test/java/forge/ai/simulation/GameSimulationTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulationTest.java b/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulationTest.java index 9c8074a0cb9..4f94bc752fb 100644 --- a/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulationTest.java +++ b/forge-gui-desktop/src/test/java/forge/ai/simulation/GameSimulationTest.java @@ -318,7 +318,7 @@ public void testManifest() { "Unmanifest"); AssertJUnit.assertNotNull(unmanifestSA); AssertJUnit.assertEquals(2, manifestedCreature.getNetPower()); - AssertJUnit.assertFalse(manifestedCreature.hasKeyword("Flying")); + AssertJUnit.assertFalse(manifestedCreature.hasKeyword(Keyword.FLYING)); GameSimulator sim2 = createSimulator(simGame, simGame.getPlayers().get(1)); Game simGame2 = sim2.getSimulatedGameState(); @@ -330,7 +330,7 @@ public void testManifest() { Card ornithopter = findCardWithName(simGame2, "Ornithopter"); AssertJUnit.assertEquals(0, ornithopter.getNetPower()); - AssertJUnit.assertTrue(ornithopter.hasKeyword("Flying")); + AssertJUnit.assertTrue(ornithopter.hasKeyword(Keyword.FLYING)); AssertJUnit.assertNull(findSAWithPrefix(ornithopter, "Unmanifest")); GameCopier copier = new GameCopier(simGame2); @@ -1359,12 +1359,12 @@ public void testPlayerXCount() { Card bloodghast = addCardToZone("Bloodghast", p, ZoneType.Battlefield); game.getAction().checkStateEffects(true); - assert (!bloodghast.hasKeyword("Haste")); + AssertJUnit.assertFalse(bloodghast.hasKeyword(Keyword.HASTE)); opp.setLife(5, null); game.getAction().checkStateEffects(true); - assert (bloodghast.hasKeyword("Haste")); + AssertJUnit.assertTrue(bloodghast.hasKeyword(Keyword.HASTE)); } @Test