Skip to content

Commit

Permalink
Code: Fixed failing tests
Browse files Browse the repository at this point in the history
Merge main
  • Loading branch information
GoldenGnu committed Sep 15, 2024
2 parents 6da5dc1 + ee99650 commit 9c3cca1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -69,6 +70,10 @@ public void testAssetIndustryJob() {
industryJob.setStationID(options.getLocationTypeEveApi());
industryJob.setCompletedDate(new Date(date.getTime() + 1L));
List<MyAsset> 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);
Expand Down

0 comments on commit 9c3cca1

Please sign in to comment.