Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanPavilionG7 committed Jan 29, 2022
1 parent 45df102 commit 5920aec
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -26,6 +26,8 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyDouble;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
Expand Down Expand Up @@ -65,7 +67,7 @@ public void testShowContextMenuIfReplayUnavailableYet() {
ContextMenu contextMenu = mockContextMenuBuilderAndGetContextMenuMock();
setGame(game);
clickWatchButton();
verify(contextMenu).show(instance.watchButton.getScene().getWindow(), Double.NaN ,Double.NaN);
verify(contextMenu).show(eq(instance.watchButton.getScene().getWindow()), anyDouble(), anyDouble());
verify(liveReplayService, never()).runLiveReplay(any());
}

Expand Down

0 comments on commit 5920aec

Please sign in to comment.