Fixing failing AT tests

This commit is contained in:
Christian 'ketura' McCarty
2024-11-01 22:41:39 -05:00
parent f700f09be6
commit 3d9767d59f
6 changed files with 28 additions and 27 deletions

View File

@@ -210,7 +210,7 @@
//One of: Variant, Errata, Reprint
//parentType: Errata
//parentPath: errata/pc
version: 1?
version: 1
collInfo: 3C14
rarity: C
setNum: "3"
@@ -224,7 +224,7 @@
culture: Elven
twilight: 2
type: Ally
allyHome: 3
allyHome: 3F
race: Elf
strength: 5
vitality: 3
@@ -348,7 +348,7 @@
//One of: Variant, Errata, Reprint
//parentType: Errata
//parentPath: errata/pc
version: 1?
version: 1
collInfo: 3U20
rarity: U
setNum: "3"
@@ -362,7 +362,7 @@
culture: Elven
twilight: 2
type: Ally
allyHome: 3
allyHome: 3F
race: Elf
strength: 4
vitality: 3
@@ -476,7 +476,7 @@
//One of: Variant, Errata, Reprint
//parentType: Errata
//parentPath: errata/pc
version: 1?
version: 1
collInfo: 3U25
rarity: U
setNum: "3"
@@ -490,7 +490,7 @@
culture: Elven
twilight: 2
type: Ally
allyHome: 3
allyHome: 3F
race: Elf
strength: 4
vitality: 3

View File

@@ -298,7 +298,7 @@ public class ModifiersAtTest extends AbstractAtTest {
JSONObject obj = new JSONObject();
obj.put("amount", 1);
ModifierSource modifierSource = new FPCultureSpot().getModifierSource(obj, lotroCardBlueprintBuilder);
ModifierSource modifierSource = new FPCultureCount().getModifierSource(obj, lotroCardBlueprintBuilder);
DefaultActionContext actionContext = new DefaultActionContext(P1, _game, null, null, null);
passUntil(Phase.FELLOWSHIP);

View File

@@ -461,23 +461,24 @@ public class TriggersAtTest extends AbstractAtTest {
assertEquals(Zone.DISCARD, iSeeYou.getZone());
}
@Test
public void siteLiberated() throws Exception {
initializeSimplestGame();
PhysicalCard drivenIntoTheHills = addToZone(createCard(P2, "102_1"), Zone.SUPPORT);
PhysicalCard theodenSonOfThengel = addToZone(createCard(P1, "4_292"), Zone.FREE_CHARACTERS);
PhysicalCard guma = addToZone(createCard(P1, "4_277"), Zone.SUPPORT);
passUntil(Phase.SHADOW);
_game.getGameState().takeControlOfCard(P2, _game, _game.getGameState().getSite(1), Zone.SUPPORT);
_game.getGameState().setPlayerPosition(P2, 2);
passUntil(Phase.REGROUP);
assertEquals(Zone.SUPPORT, drivenIntoTheHills.getZone());
selectCardAction(P1, theodenSonOfThengel);
assertEquals(Zone.DISCARD, drivenIntoTheHills.getZone());
}
// The card used in this example was reworked
// @Test
// public void siteLiberated() throws Exception {
// initializeSimplestGame();
//
// PhysicalCard drivenIntoTheHills = addToZone(createCard(P2, "102_1"), Zone.SUPPORT);
// PhysicalCard theodenSonOfThengel = addToZone(createCard(P1, "4_292"), Zone.FREE_CHARACTERS);
// PhysicalCard guma = addToZone(createCard(P1, "4_277"), Zone.SUPPORT);
//
// passUntil(Phase.SHADOW);
// _game.getGameState().takeControlOfCard(P2, _game, _game.getGameState().getSite(1), Zone.SUPPORT);
// _game.getGameState().setPlayerPosition(P2, 2);
//
// passUntil(Phase.REGROUP);
// assertEquals(Zone.SUPPORT, drivenIntoTheHills.getZone());
// selectCardAction(P1, theodenSonOfThengel);
// assertEquals(Zone.DISCARD, drivenIntoTheHills.getZone());
// }
@Test
public void siteControlled() throws Exception {

View File

@@ -59,7 +59,7 @@ public class Card_03_014_ErrataTests
assertEquals(2, card.getBlueprint().getTwilightCost());
assertEquals(5, card.getBlueprint().getStrength());
assertEquals(3, card.getBlueprint().getVitality());
assertTrue(card.getBlueprint().hasAllyHome(new AllyHome(SitesBlock.SHADOWS, 3)));
assertTrue(card.getBlueprint().hasAllyHome(new AllyHome(SitesBlock.FELLOWSHIP, 3)));
}
// Uncomment any @Test markers below once this is ready to be used

View File

@@ -59,7 +59,7 @@ public class Card_03_020_ErrataTests
assertEquals(2, card.getBlueprint().getTwilightCost());
assertEquals(4, card.getBlueprint().getStrength());
assertEquals(3, card.getBlueprint().getVitality());
assertTrue(card.getBlueprint().hasAllyHome(new AllyHome(SitesBlock.SHADOWS, 3)));
assertTrue(card.getBlueprint().hasAllyHome(new AllyHome(SitesBlock.FELLOWSHIP, 3)));
}
// Uncomment any @Test markers below once this is ready to be used

View File

@@ -59,7 +59,7 @@ public class Card_03_025_ErrataTests
assertEquals(2, card.getBlueprint().getTwilightCost());
assertEquals(4, card.getBlueprint().getStrength());
assertEquals(3, card.getBlueprint().getVitality());
assertTrue(card.getBlueprint().hasAllyHome(new AllyHome(SitesBlock.SHADOWS, 3)));
assertTrue(card.getBlueprint().hasAllyHome(new AllyHome(SitesBlock.FELLOWSHIP, 3)));
}
// Uncomment any @Test markers below once this is ready to be used