Skip to content

Commit

Permalink
Adapt GUI test
Browse files Browse the repository at this point in the history
  • Loading branch information
LoayGhreeb committed Jul 1, 2024
1 parent d6d455c commit b8a52cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/org/jabref/gui/search/GlobalSearchBarTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.EnumSet;
import java.util.List;

import javafx.collections.FXCollections;
import javafx.scene.Scene;
import javafx.scene.control.TextInputControl;
import javafx.scene.layout.HBox;
Expand Down Expand Up @@ -44,6 +45,7 @@ public class GlobalSearchBarTest {
public void onStart(Stage stage) {
SearchPreferences searchPreferences = mock(SearchPreferences.class);
when(searchPreferences.getSearchFlags()).thenReturn(EnumSet.noneOf(SearchRules.SearchFlags.class));
when(searchPreferences.getObservableSearchFlags()).thenReturn(FXCollections.observableSet());
PreferencesService prefs = mock(PreferencesService.class, Answers.RETURNS_DEEP_STUBS);
when(prefs.getSearchPreferences()).thenReturn(searchPreferences);

Expand Down

0 comments on commit b8a52cc

Please sign in to comment.