fix tests

This commit is contained in:
Northmoc
2022-12-08 08:03:40 -05:00
parent 7e3fcb4d07
commit c4763528ff

View File

@@ -48,8 +48,9 @@ public class CardDbCardMockTestCase extends CardMockTestCase {
// Get Card From Editions Test fixtures
protected final String originalArtShivanDragonEdition = "LEA";
// next lines need to be updated with each printing of Shivan Dragon
protected final String latestArtShivanDragonEdition = "DMR";
protected final String latestArtShivanDragonEditionNoPromo = "M20";
protected final String latestArtShivanDragonEditionNoPromo = "DMR";
protected final String originalArtLightningDragonEdition = "USG";
protected final String originalArtLightningDragonEditionNoPromo = "USG";
@@ -1751,11 +1752,12 @@ public class CardDbCardMockTestCase extends CardMockTestCase {
Date alphaReleaseDate = null;
Date currentDate = Date.from(Instant.now());
Date latestShivanDragonReleaseDateToDate = null; // latest print to date for Shivan is in DMR
Date latestShivanDragonReleaseDateToDate = null;
try {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
alphaReleaseDate = format.parse(alphaEditionReleaseDate);
latestShivanDragonReleaseDateToDate = format.parse("2022-11-28");
// next line needs to be updated each time Shivan Dragon is reprinted
latestShivanDragonReleaseDateToDate = format.parse("2023-03-31");
} catch (ParseException e) {
e.printStackTrace();
fail();