Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kuronekochomusuke committed Nov 28, 2024
1 parent 112c399 commit bf1f466
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ void testMustFleeBoard() {

// Unit is capable of fleeing.
Entity mockMek = mock(BipedMek.class);
when(mockMek.canFlee(mockMek.getPosition())).thenReturn(true);

// Unit is on home edge.
BasicPathRanker mockRanker = mock(BasicPathRanker.class);
Expand All @@ -420,6 +419,7 @@ void testMustFleeBoard() {
when(mockPrincess.getHomeEdge(any(Entity.class))).thenReturn(CardinalEdge.NORTH);
Game mockGame = mock(Game.class);
when(mockPrincess.getGame()).thenReturn(mockGame);
when(mockMek.canFlee(mockMek.getPosition())).thenReturn(true);

// In its current state, the entity does not need to flee the board.
assertFalse(mockPrincess.mustFleeBoard(mockMek));
Expand Down

0 comments on commit bf1f466

Please sign in to comment.