From ee99650fd29cd570df676f8283f9b56a7c68f9d4 Mon Sep 17 00:00:00 2001 From: GoldenGnu Date: Sun, 15 Sep 2024 13:10:24 +0200 Subject: [PATCH] Code: Fixed failing tests --- .../java/net/nikr/eve/jeveasset/io/local/ItemFlagsTest.java | 2 +- .../net/nikr/eve/jeveasset/io/shared/DataConverterTest.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/java/net/nikr/eve/jeveasset/io/local/ItemFlagsTest.java b/src/test/java/net/nikr/eve/jeveasset/io/local/ItemFlagsTest.java index 5910ee85e..c587b3092 100644 --- a/src/test/java/net/nikr/eve/jeveasset/io/local/ItemFlagsTest.java +++ b/src/test/java/net/nikr/eve/jeveasset/io/local/ItemFlagsTest.java @@ -29,6 +29,6 @@ public class ItemFlagsTest extends TestUtil { @Test public void testItemFlags() { - assertEquals(138, StaticData.get().getItemFlags().size()); + assertEquals(140, StaticData.get().getItemFlags().size()); } } diff --git a/src/test/java/net/nikr/eve/jeveasset/io/shared/DataConverterTest.java b/src/test/java/net/nikr/eve/jeveasset/io/shared/DataConverterTest.java index 37b2643c9..37a533250 100644 --- a/src/test/java/net/nikr/eve/jeveasset/io/shared/DataConverterTest.java +++ b/src/test/java/net/nikr/eve/jeveasset/io/shared/DataConverterTest.java @@ -40,6 +40,7 @@ import net.nikr.eve.jeveasset.data.api.my.MyTransaction; import net.nikr.eve.jeveasset.data.api.raw.RawAsset; import net.nikr.eve.jeveasset.data.api.raw.RawContract; +import net.nikr.eve.jeveasset.data.api.raw.RawIndustryJob.IndustryJobStatus; import net.nikr.eve.jeveasset.data.api.raw.RawJournal; import net.nikr.eve.jeveasset.data.api.raw.RawMarketOrder; import net.nikr.eve.jeveasset.data.api.raw.RawMarketOrder.MarketOrderState; @@ -69,6 +70,10 @@ public void testAssetIndustryJob() { industryJob.setStationID(options.getLocationTypeEveApi()); industryJob.setCompletedDate(new Date(date.getTime() + 1L)); List assets = DataConverter.assetIndustryJob(Collections.singletonList(industryJob), true, true); + if (options.getIndustryJobStatusRaw() == IndustryJobStatus.ARCHIVED) { + assertTrue(assets.isEmpty()); + continue; + } assertFalse(assets.isEmpty()); MyAsset asset = assets.get(0);