mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
update_tests
This commit is contained in:
@@ -48,7 +48,7 @@ public class CardDbCardMockTestCase extends CardMockTestCase {
|
|||||||
|
|
||||||
// Get Card From Editions Test fixtures
|
// Get Card From Editions Test fixtures
|
||||||
protected final String originalArtShivanDragonEdition = "LEA";
|
protected final String originalArtShivanDragonEdition = "LEA";
|
||||||
protected final String latestArtShivanDragonEdition = "30A";
|
protected final String latestArtShivanDragonEdition = "DMR";
|
||||||
protected final String latestArtShivanDragonEditionNoPromo = "M20";
|
protected final String latestArtShivanDragonEditionNoPromo = "M20";
|
||||||
|
|
||||||
protected final String originalArtLightningDragonEdition = "USG";
|
protected final String originalArtLightningDragonEdition = "USG";
|
||||||
@@ -1751,7 +1751,7 @@ public class CardDbCardMockTestCase extends CardMockTestCase {
|
|||||||
|
|
||||||
Date alphaReleaseDate = null;
|
Date alphaReleaseDate = null;
|
||||||
Date currentDate = Date.from(Instant.now());
|
Date currentDate = Date.from(Instant.now());
|
||||||
Date latestShivanDragonReleaseDateToDate = null; // latest print to date for Shivan is in 30A
|
Date latestShivanDragonReleaseDateToDate = null; // latest print to date for Shivan is in DMR
|
||||||
try {
|
try {
|
||||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
alphaReleaseDate = format.parse(alphaEditionReleaseDate);
|
alphaReleaseDate = format.parse(alphaEditionReleaseDate);
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public class CardEditionCollectionCardMockTestCase extends CardMockTestCase {
|
|||||||
|
|
||||||
CardDb cardDb = FModel.getMagicDb().getCommonCards();
|
CardDb cardDb = FModel.getMagicDb().getCommonCards();
|
||||||
String[] cardNames = { "Shivan Dragon", "Animate Wall", "Balance", "Blessing", "Force of Will" };
|
String[] cardNames = { "Shivan Dragon", "Animate Wall", "Balance", "Blessing", "Force of Will" };
|
||||||
String[] expectedSets = { "30A", "30A", "30A", "30A", "DMR" };
|
String[] expectedSets = { "DMR", "30A", "30A", "30A", "DMR" };
|
||||||
List<PaperCard> cards = new ArrayList<>();
|
List<PaperCard> cards = new ArrayList<>();
|
||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < 5; i++) {
|
||||||
String cardName = cardNames[i];
|
String cardName = cardNames[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user