Skip to content

Commit

Permalink
fix OwnFadSetDiscretizedActionGeneratorTest
Browse files Browse the repository at this point in the history
was broken by 5e2035e
  • Loading branch information
nicolaspayette committed Nov 29, 2023
1 parent 7b084ce commit 9d83c1a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ void test() {
when(fadManager.getFadMap()).thenReturn(fadMap);
when(fadManager.getFisher()).thenReturn(fisher);

when(fisher.isAllowedAtSea()).thenReturn(true);
when(fisher.isAllowedToFishHere(any(), any())).thenReturn(true);
when(fisher.getGear()).thenReturn(gear);
when(fisher.grabState()).thenReturn(fishState);
when(fishState.getMap()).thenReturn(map);
Expand Down Expand Up @@ -162,6 +164,8 @@ void filterByValue() {
when(gear.isSafe(any())).thenReturn(true);
final FadManager fadManager = gear.getFadManager();
when(fadManager.getFisher()).thenReturn(fisher);
when(fisher.isAllowedAtSea()).thenReturn(true);
when(fisher.isAllowedToFishHere(any(), any())).thenReturn(true);
when(fisher.getGear()).thenReturn(gear);
when(fisher.grabState()).thenReturn(fishState);
when(fishState.getMap()).thenReturn(map);
Expand Down Expand Up @@ -223,6 +227,8 @@ void banLocations() {
);
final FadManager fadManager = gear.getFadManager();
when(fadManager.getFisher()).thenReturn(fisher);
when(fisher.isAllowedAtSea()).thenReturn(true);
when(fisher.isAllowedToFishHere(any(), any())).thenReturn(true);
when(fisher.getGear()).thenReturn(gear);
when(fisher.grabState()).thenReturn(fishState);
when(fishState.getMap()).thenReturn(map);
Expand Down Expand Up @@ -276,4 +282,4 @@ void banLocations() {
Assertions.assertEquals(1, initialOptions.size());
Assertions.assertEquals(3, (int) initialOptions.get(0).getValue());
}
}
}

0 comments on commit 9d83c1a

Please sign in to comment.