Renamed unit tests to have a consistent naming scheme
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package com.gempukku.lotro.cards.official.set1;
|
package com.gempukku.lotro.cards.official.set01;
|
||||||
|
|
||||||
import com.gempukku.lotro.cards.GenericCardTestHelper;
|
import com.gempukku.lotro.cards.GenericCardTestHelper;
|
||||||
import com.gempukku.lotro.common.Phase;
|
import com.gempukku.lotro.common.Phase;
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
package com.gempukku.lotro.cards.official.set2;
|
package com.gempukku.lotro.cards.official.set02;
|
||||||
|
|
||||||
import com.gempukku.lotro.cards.GenericCardTestHelper;
|
import com.gempukku.lotro.cards.GenericCardTestHelper;
|
||||||
import com.gempukku.lotro.common.Keyword;
|
|
||||||
import com.gempukku.lotro.common.Phase;
|
import com.gempukku.lotro.common.Phase;
|
||||||
import com.gempukku.lotro.game.CardNotFoundException;
|
import com.gempukku.lotro.game.CardNotFoundException;
|
||||||
import com.gempukku.lotro.game.PhysicalCardImpl;
|
import com.gempukku.lotro.game.PhysicalCardImpl;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.gempukku.lotro.cards.official.set2;
|
package com.gempukku.lotro.cards.official.set02;
|
||||||
|
|
||||||
import com.gempukku.lotro.cards.GenericCardTestHelper;
|
import com.gempukku.lotro.cards.GenericCardTestHelper;
|
||||||
import com.gempukku.lotro.common.Phase;
|
import com.gempukku.lotro.common.Phase;
|
||||||
@@ -12,7 +12,7 @@ import java.util.*;
|
|||||||
|
|
||||||
import static junit.framework.Assert.assertEquals;
|
import static junit.framework.Assert.assertEquals;
|
||||||
|
|
||||||
public class Elrond_LoRErrataTests
|
public class Card_01_040_ErrataTests
|
||||||
{
|
{
|
||||||
|
|
||||||
protected GenericCardTestHelper GetSimpleDeckScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetSimpleDeckScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
@@ -13,7 +13,7 @@ import org.junit.Test;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
public class Galadriel_LoLErrataTests
|
public class Card_01_045_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetSimplePlayScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetSimplePlayScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
@@ -13,7 +13,7 @@ import static junit.framework.Assert.assertEquals;
|
|||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
public class NoStrangerErrataTests
|
public class Card_01_108_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
@@ -1,8 +1,13 @@
|
|||||||
package com.gempukku.lotro.cards.unofficial.pc.errata.set01;
|
package com.gempukku.lotro.cards.unofficial.pc.errata.set01;
|
||||||
|
|
||||||
import com.gempukku.lotro.cards.GenericCardTestHelper;
|
import com.gempukku.lotro.cards.GenericCardTestHelper;
|
||||||
|
import com.gempukku.lotro.common.CardType;
|
||||||
|
import com.gempukku.lotro.common.Culture;
|
||||||
|
import com.gempukku.lotro.common.Keyword;
|
||||||
import com.gempukku.lotro.game.CardNotFoundException;
|
import com.gempukku.lotro.game.CardNotFoundException;
|
||||||
|
import com.gempukku.lotro.game.PhysicalCardImpl;
|
||||||
import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException;
|
import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException;
|
||||||
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@@ -24,14 +29,16 @@ public class Card_01_195_ErrataTests
|
|||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void DwarfStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException {
|
public void RelicsStatsAndKeywordsAreCorrect() throws DecisionResultInvalidException, CardNotFoundException {
|
||||||
|
|
||||||
// Each of these dwarves (and lorien elf) had their strength boosted by 1.
|
|
||||||
|
|
||||||
//Pre-game setup
|
//Pre-game setup
|
||||||
GenericCardTestHelper scn = GetSimpleDeckScenario();
|
GenericCardTestHelper scn = GetSimpleDeckScenario();
|
||||||
|
PhysicalCardImpl relics = scn.GetFreepsCard("relics");
|
||||||
|
|
||||||
assertTrue( scn.GetFreepsCard("relics").getBlueprint().isUnique());
|
assertTrue(relics.getBlueprint().isUnique());
|
||||||
|
assertEquals(CardType.CONDITION, relics.getBlueprint().getCardType());
|
||||||
|
assertEquals(Culture.MORIA, relics.getBlueprint().getCulture());
|
||||||
|
Assert.assertTrue(scn.HasKeyword(relics, Keyword.SUPPORT_AREA));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
public class Sam_SoHErrataTests
|
public class Card_01_311_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
@@ -15,7 +15,7 @@ import static junit.framework.Assert.assertEquals;
|
|||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
public class StingErrataTests
|
public class Card_01_313_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
@@ -13,7 +13,7 @@ import static junit.framework.Assert.assertEquals;
|
|||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
public class TalentForNBSErrataTests
|
public class Card_01_316_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
@@ -13,7 +13,7 @@ import java.util.HashMap;
|
|||||||
import static junit.framework.Assert.assertEquals;
|
import static junit.framework.Assert.assertEquals;
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class FlamingBrandErrataTests
|
public class Card_02_032_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
@@ -16,7 +16,7 @@ import static junit.framework.Assert.assertEquals;
|
|||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
public class Gimli_DotMrErrataTests
|
public class Card_02_121_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
@@ -15,7 +15,7 @@ import static junit.framework.Assert.assertEquals;
|
|||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
public class Aragorn_HttWCErrataTests
|
public class Card_03_038_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
@@ -13,7 +13,7 @@ import java.util.HashMap;
|
|||||||
import static junit.framework.Assert.assertEquals;
|
import static junit.framework.Assert.assertEquals;
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class HornOfBoromirErrataTests
|
public class Card_03_042_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetFOTRScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetFOTRScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
@@ -14,7 +14,7 @@ import static junit.framework.Assert.assertEquals;
|
|||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
public class Saruman_KoIErrataTests
|
public class Card_03_068_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
@@ -17,7 +17,7 @@ import static junit.framework.Assert.assertEquals;
|
|||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
public class BillThePonyErrataTests
|
public class Card_03_106_ErrataTests
|
||||||
{
|
{
|
||||||
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
protected GenericCardTestHelper GetScenario() throws CardNotFoundException, DecisionResultInvalidException {
|
||||||
return new GenericCardTestHelper(
|
return new GenericCardTestHelper(
|
||||||
Reference in New Issue
Block a user