Skip to content

Commit

Permalink
fix: fixed error with resolver test
Browse files Browse the repository at this point in the history
  • Loading branch information
Scoppio committed Jan 9, 2025
1 parent 723d28b commit 29abf5e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MekHQ/unittests/mekhq/campaign/autoresolve/ResolverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ public static void setupClass() throws IOException {
@Mock
private BotForce botForce;

@InjectMocks
private Resolver resolver;


@BeforeEach
public void setup() {
Expand Down Expand Up @@ -355,7 +354,7 @@ void autoResolve(Consumer<AutoResolveConcludedEvent> autoResolveConcludedEvent)
when(botForce.getTeam()).thenReturn(2);
when(botForce.getFullEntityList(any())).thenReturn(entities);

resolver = Resolver.simulationRun(new AtBSetupForces(campaign, units, scenario), SimulationOptions.empty(), new Board(30, 30));
var resolver = Resolver.simulationRun(new AtBSetupForces(campaign, units, scenario), SimulationOptions.empty(), new Board(30, 30));
autoResolveConcludedEvent.accept(resolver.resolveSimulation());
}

Expand Down

0 comments on commit 29abf5e

Please sign in to comment.