From eda04f3747b2b9ffd54a3cbbe3a984464465604e Mon Sep 17 00:00:00 2001 From: Christian 'ketura' McCarty Date: Mon, 27 May 2024 22:35:25 -0500 Subject: [PATCH] Deleting unit tests for the set 5/6 AIs --- .../official/set05/Card_05_123_Tests.java | 73 ----------------- .../official/set05/Card_05_124_Tests.java | 73 ----------------- .../official/set05/Card_05_125_Tests.java | 80 ------------------- .../official/set05/Card_05_126_Tests.java | 80 ------------------- .../official/set05/Card_05_127_Tests.java | 73 ----------------- .../official/set05/Card_05_128_Tests.java | 73 ----------------- .../official/set06/Card_06_123_Tests.java | 74 ----------------- .../official/set06/Card_06_124_Tests.java | 79 ------------------ .../official/set06/Card_06_125_Tests.java | 73 ----------------- .../official/set06/Card_06_126_Tests.java | 73 ----------------- .../official/set06/Card_06_127_Tests.java | 79 ------------------ .../official/set06/Card_06_128_Tests.java | 80 ------------------- 12 files changed, 910 deletions(-) delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_123_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_124_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_125_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_126_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_127_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_128_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_123_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_124_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_125_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_126_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_127_Tests.java delete mode 100644 gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_128_Tests.java diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_123_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_123_Tests.java deleted file mode 100644 index 4f5d5ac1e..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_123_Tests.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.gempukku.lotro.cards.official.set05; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_05_123_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "5_123"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void BarukKhazadStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 5 - * Name: Baruk Khazâd - * Unique: False - * Side: Free Peoples - * Culture: Dwarven - * Twilight Cost: 0 - * Type: Event - * Subtype: Maneuver - * Game Text: Maneuver: Exert a Dwarf to wound a minion. You may take the next maneuver action. - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Baruk Khazâd", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertFalse(card.getBlueprint().isUnique()); - assertEquals(Side.FREE_PEOPLE, card.getBlueprint().getSide()); - assertEquals(Culture.DWARVEN, card.getBlueprint().getCulture()); - assertEquals(CardType.EVENT, card.getBlueprint().getCardType()); - assertTrue(scn.HasKeyword(card, Keyword.MANEUVER)); - assertEquals(0, card.getBlueprint().getTwilightCost()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void BarukKhazadTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(0, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_124_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_124_Tests.java deleted file mode 100644 index 561c6a193..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_124_Tests.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.gempukku.lotro.cards.official.set05; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_05_124_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "5_124"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void BreaktheChargeStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 5 - * Name: Break the Charge - * Unique: False - * Side: Free Peoples - * Culture: Elven - * Twilight Cost: 2 - * Type: Event - * Subtype: Archery - * Game Text: Archery: Exert 3 Elf companions to make the fellowship archery total +2. - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Break the Charge", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertFalse(card.getBlueprint().isUnique()); - assertEquals(Side.FREE_PEOPLE, card.getBlueprint().getSide()); - assertEquals(Culture.ELVEN, card.getBlueprint().getCulture()); - assertEquals(CardType.EVENT, card.getBlueprint().getCardType()); - assertTrue(scn.HasKeyword(card, Keyword.ARCHERY)); - assertEquals(2, card.getBlueprint().getTwilightCost()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void BreaktheChargeTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(2, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_125_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_125_Tests.java deleted file mode 100644 index e29868b21..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_125_Tests.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.gempukku.lotro.cards.official.set05; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_05_125_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "5_125"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void FoulHordeStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 5 - * Name: Foul Horde - * Unique: True - * Side: Shadow - * Culture: Isengard - * Twilight Cost: 4 - * Type: Minion - * Subtype: Orc - * Strength: 9 - * Vitality: 3 - * Site Number: 4 - * Game Text: Warg-rider.
While Foul Horde is not exhausted, it is fierce.
While Foul Horde has at least 3 vitality, it is ambush (1).
While Foul Horde has at least 4 vitality, it is damage +1. - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Foul Horde", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertTrue(card.getBlueprint().isUnique()); - assertEquals(Side.SHADOW, card.getBlueprint().getSide()); - assertEquals(Culture.ISENGARD, card.getBlueprint().getCulture()); - assertEquals(CardType.MINION, card.getBlueprint().getCardType()); - assertEquals(Race.ORC, card.getBlueprint().getRace()); - assertTrue(scn.HasKeyword(card, Keyword.WARG_RIDER)); - assertEquals(4, card.getBlueprint().getTwilightCost()); - assertEquals(9, card.getBlueprint().getStrength()); - assertEquals(3, card.getBlueprint().getVitality()); - assertEquals(4, card.getBlueprint().getSiteNumber()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void FoulHordeTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(4, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_126_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_126_Tests.java deleted file mode 100644 index f1c688197..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_126_Tests.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.gempukku.lotro.cards.official.set05; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_05_126_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "5_126"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void ArmyofHaradrimStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 5 - * Name: Army of Haradrim - * Unique: True - * Side: Shadow - * Culture: Raider - * Twilight Cost: 7 - * Type: Minion - * Subtype: Man - * Strength: 14 - * Vitality: 4 - * Site Number: 4 - * Game Text: Southron.
Skirmish: Remove (3) to play a [raider] mount from your discard pile. - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Army of Haradrim", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertTrue(card.getBlueprint().isUnique()); - assertEquals(Side.SHADOW, card.getBlueprint().getSide()); - assertEquals(Culture.RAIDER, card.getBlueprint().getCulture()); - assertEquals(CardType.MINION, card.getBlueprint().getCardType()); - assertEquals(Race.MAN, card.getBlueprint().getRace()); - assertTrue(scn.HasKeyword(card, Keyword.SOUTHRON)); - assertEquals(7, card.getBlueprint().getTwilightCost()); - assertEquals(14, card.getBlueprint().getStrength()); - assertEquals(4, card.getBlueprint().getVitality()); - assertEquals(4, card.getBlueprint().getSiteNumber()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void ArmyofHaradrimTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(7, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_127_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_127_Tests.java deleted file mode 100644 index 44cffe225..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_127_Tests.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.gempukku.lotro.cards.official.set05; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_05_127_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "5_127"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void RohirrimHelmStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 5 - * Name: Rohirrim Helm - * Unique: False - * Side: Free Peoples - * Culture: Rohan - * Twilight Cost: 1 - * Type: Possession - * Subtype: Helm - * Game Text: Bearer must be a [rohan] Man.
Skirmish: Discard this possession to cancel a skirmish involving bearer. A minion in this skirmish may exert to prevent this. - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Rohirrim Helm", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertFalse(card.getBlueprint().isUnique()); - assertEquals(Side.FREE_PEOPLE, card.getBlueprint().getSide()); - assertEquals(Culture.ROHAN, card.getBlueprint().getCulture()); - assertEquals(CardType.POSSESSION, card.getBlueprint().getCardType()); - assertTrue(card.getBlueprint().getPossessionClasses().contains(PossessionClass.HELM)); - assertEquals(1, card.getBlueprint().getTwilightCost()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void RohirrimHelmTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(1, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_128_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_128_Tests.java deleted file mode 100644 index ca8727a93..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set05/Card_05_128_Tests.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.gempukku.lotro.cards.official.set05; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_05_128_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "5_128"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void ThunderingHostStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 5 - * Name: Thundering Host - * Unique: False - * Side: Free Peoples - * Culture: Rohan - * Twilight Cost: 1 - * Type: Condition - * Subtype: - * Game Text: Plays to your support area.
Skirmish: Discard this condition to make a mounted [rohan] Man strength +3 (and heal that Man if at a plains). - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Thundering Host", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertFalse(card.getBlueprint().isUnique()); - assertEquals(Side.FREE_PEOPLE, card.getBlueprint().getSide()); - assertEquals(Culture.ROHAN, card.getBlueprint().getCulture()); - assertEquals(CardType.CONDITION, card.getBlueprint().getCardType()); - assertTrue(scn.HasKeyword(card, Keyword.SUPPORT_AREA)); - assertEquals(1, card.getBlueprint().getTwilightCost()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void ThunderingHostTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(1, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_123_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_123_Tests.java deleted file mode 100644 index 13d62084b..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_123_Tests.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.gempukku.lotro.cards.official.set06; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_06_123_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "6_123"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void EnragedStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 6 - * Name: Enraged - * Unique: False - * Side: Free Peoples - * Culture: Gandalf - * Twilight Cost: 2 - * Type: Condition - * Subtype: - * Strength: 4 - * Game Text: Bearer must be an Ent. Limit 1 per bearer.
Discard this condition at the end of the turn. - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Enraged", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertFalse(card.getBlueprint().isUnique()); - assertEquals(Side.FREE_PEOPLE, card.getBlueprint().getSide()); - assertEquals(Culture.GANDALF, card.getBlueprint().getCulture()); - assertEquals(CardType.CONDITION, card.getBlueprint().getCardType()); - assertEquals(2, card.getBlueprint().getTwilightCost()); - assertEquals(4, card.getBlueprint().getStrength()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void EnragedTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(2, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_124_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_124_Tests.java deleted file mode 100644 index b69a5cf44..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_124_Tests.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.gempukku.lotro.cards.official.set06; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_06_124_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "6_124"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void SkinbarkStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 6 - * Name: Skinbark, Fladrif - * Unique: True - * Side: Free Peoples - * Culture: Gandalf - * Twilight Cost: 7 - * Type: Companion - * Subtype: Ent - * Strength: 8 - * Vitality: 4 - * Resistance: 6 - * Game Text: Skinbark's twilight cost is -1 for each Ent or unbound Hobbit you can spot.
Response: If an unbound Hobbit is about to take a wound, exert Skinbark to prevent that wound. - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Skinbark", card.getBlueprint().getTitle()); - assertEquals("Fladrif", card.getBlueprint().getSubtitle()); - assertTrue(card.getBlueprint().isUnique()); - assertEquals(Side.FREE_PEOPLE, card.getBlueprint().getSide()); - assertEquals(Culture.GANDALF, card.getBlueprint().getCulture()); - assertEquals(CardType.COMPANION, card.getBlueprint().getCardType()); - assertEquals(Race.ENT, card.getBlueprint().getRace()); - assertEquals(7, card.getBlueprint().getTwilightCost()); - assertEquals(8, card.getBlueprint().getStrength()); - assertEquals(4, card.getBlueprint().getVitality()); - assertEquals(6, card.getBlueprint().getResistance()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void SkinbarkTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(7, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_125_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_125_Tests.java deleted file mode 100644 index 4a87c2d37..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_125_Tests.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.gempukku.lotro.cards.official.set06; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_06_125_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "6_125"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void DontLookatThemStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 6 - * Name: Don't Look at Them - * Unique: False - * Side: Free Peoples - * Culture: Gollum - * Twilight Cost: 1 - * Type: Condition - * Subtype: - * Game Text: Plays to your support area.
Skirmish: Spot Sméagol and discard 3 cards from hand to wound a minion Sméagol is skirmishing once (or twice if that minion is a [wraith] minion). - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Don't Look at Them", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertFalse(card.getBlueprint().isUnique()); - assertEquals(Side.FREE_PEOPLE, card.getBlueprint().getSide()); - assertEquals(Culture.GOLLUM, card.getBlueprint().getCulture()); - assertEquals(CardType.CONDITION, card.getBlueprint().getCardType()); - assertTrue(scn.HasKeyword(card, Keyword.SUPPORT_AREA)); - assertEquals(1, card.getBlueprint().getTwilightCost()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void DontLookatThemTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(1, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_126_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_126_Tests.java deleted file mode 100644 index 8f9f64282..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_126_Tests.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.gempukku.lotro.cards.official.set06; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_06_126_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "6_126"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void AncientRoadsStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 6 - * Name: Ancient Roads - * Unique: False - * Side: Free Peoples - * Culture: Gondor - * Twilight Cost: 1 - * Type: Condition - * Subtype: - * Game Text: Plays to your support area.
While you can spot 3 rangers, the site number of each minion skirmishing a ranger is +2. - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Ancient Roads", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertFalse(card.getBlueprint().isUnique()); - assertEquals(Side.FREE_PEOPLE, card.getBlueprint().getSide()); - assertEquals(Culture.GONDOR, card.getBlueprint().getCulture()); - assertEquals(CardType.CONDITION, card.getBlueprint().getCardType()); - assertTrue(scn.HasKeyword(card, Keyword.SUPPORT_AREA)); - assertEquals(1, card.getBlueprint().getTwilightCost()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void AncientRoadsTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(1, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_127_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_127_Tests.java deleted file mode 100644 index fab0030d6..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_127_Tests.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.gempukku.lotro.cards.official.set06; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_06_127_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "6_127"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void IsengardMechanicsStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 6 - * Name: Isengard Mechanics - * Unique: False - * Side: Shadow - * Culture: Isengard - * Twilight Cost: 6 - * Type: Minion - * Subtype: Orc - * Strength: 11 - * Vitality: 4 - * Site Number: 4 - * Game Text: Regroup: Discard an [isengard] Orc to make the Free Peoples player wound a companion (or 2 companions if you spot 6 companions).
Regroup: If this minion is stacked on an [isengard] card, spot an [isengard] Orc and discard this minion to add (3). - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Isengard Mechanics", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertFalse(card.getBlueprint().isUnique()); - assertEquals(Side.SHADOW, card.getBlueprint().getSide()); - assertEquals(Culture.ISENGARD, card.getBlueprint().getCulture()); - assertEquals(CardType.MINION, card.getBlueprint().getCardType()); - assertEquals(Race.ORC, card.getBlueprint().getRace()); - assertEquals(6, card.getBlueprint().getTwilightCost()); - assertEquals(11, card.getBlueprint().getStrength()); - assertEquals(4, card.getBlueprint().getVitality()); - assertEquals(4, card.getBlueprint().getSiteNumber()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void IsengardMechanicsTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(6, scn.GetTwilight()); - } -} diff --git a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_128_Tests.java b/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_128_Tests.java deleted file mode 100644 index b8488dda5..000000000 --- a/gemp-lotr/gemp-lotr-server/src/test/java/com/gempukku/lotro/cards/official/set06/Card_06_128_Tests.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.gempukku.lotro.cards.official.set06; - -import com.gempukku.lotro.cards.GenericCardTestHelper; -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.game.CardNotFoundException; -import com.gempukku.lotro.game.PhysicalCardImpl; -import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException; -import org.junit.Test; - -import java.util.HashMap; - -import static org.junit.Assert.*; - -public class Card_06_128_Tests -{ - - protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException { - return new GenericCardTestHelper( - new HashMap<>() - {{ - put("card", "6_128"); - // put other cards in here as needed for the test case - }}, - GenericCardTestHelper.FellowshipSites, - GenericCardTestHelper.FOTRFrodo, - GenericCardTestHelper.RulingRing - ); - } - - @Test - public void GateTrollStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException { - - /** - * Set: 6 - * Name: Gate Troll - * Unique: True - * Side: Shadow - * Culture: Sauron - * Twilight Cost: 8 - * Type: Minion - * Subtype: Troll - * Strength: 13 - * Vitality: 4 - * Site Number: 6 - * Game Text: Fierce.
While you can spot a Troll, Gate Troll's twilight cost is -4.
For each other [sauron] minion you can spot, this minion is strength +1. - */ - - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - - assertEquals("Gate Troll", card.getBlueprint().getTitle()); - assertNull(card.getBlueprint().getSubtitle()); - assertTrue(card.getBlueprint().isUnique()); - assertEquals(Side.SHADOW, card.getBlueprint().getSide()); - assertEquals(Culture.SAURON, card.getBlueprint().getCulture()); - assertEquals(CardType.MINION, card.getBlueprint().getCardType()); - assertEquals(Race.TROLL, card.getBlueprint().getRace()); - assertTrue(scn.HasKeyword(card, Keyword.FIERCE)); - assertEquals(8, card.getBlueprint().getTwilightCost()); - assertEquals(13, card.getBlueprint().getStrength()); - assertEquals(4, card.getBlueprint().getVitality()); - assertEquals(6, card.getBlueprint().getSiteNumber()); - } - - // Uncomment any @Test markers below once this is ready to be used - //@Test - public void GateTrollTest1() throws DecisionResultInvalidException, CardNotFoundException { - //Pre-game setup - var scn = GetScenario(); - - var card = scn.GetFreepsCard("card"); - scn.FreepsMoveCardToHand(card); - - scn.StartGame(); - scn.FreepsPlayCard(card); - - assertEquals(8, scn.GetTwilight()); - } -}