Skip to content

Commit

Permalink
Partial fix for failing refit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleet01 committed Feb 23, 2024
1 parent 9f60ccf commit 648fef3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MekHQ/unittests/mekhq/campaign/parts/RefitTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import mekhq.campaign.personnel.Person;
import mekhq.campaign.unit.Unit;
import mekhq.campaign.unit.UnitTestUtilities;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
Expand Down Expand Up @@ -77,6 +78,11 @@ public class RefitTest {
@Mock
private Warehouse mockWarehouse;

@BeforeAll
static void before() {
EquipmentType.initializeTypes();
}

@BeforeEach
public void beforeEach() {
lenient().when(mockCampaign.getCampaignOptions()).thenReturn(mockCampaignOptions);
Expand Down

0 comments on commit 648fef3

Please sign in to comment.