diff --git a/src/test/java/org/jabref/gui/search/GlobalSearchBarTest.java b/src/test/java/org/jabref/gui/search/GlobalSearchBarTest.java index 595e5cde667..7fdfac326cc 100644 --- a/src/test/java/org/jabref/gui/search/GlobalSearchBarTest.java +++ b/src/test/java/org/jabref/gui/search/GlobalSearchBarTest.java @@ -92,7 +92,7 @@ void recordingSearchQueriesOnFocusLostOnly(FxRobot robot) throws InterruptedExce List lastSearchHistory = stateManager.getWholeSearchHistory().stream().toList(); assertFalse(lastSearchHistory.isEmpty()); - assertEquals(FXCollections.observableArrayList("Smith"), lastSearchHistory); + assertEquals(List.of("Smith"), lastSearchHistory); } @Test @@ -107,6 +107,6 @@ void emptyQueryIsNotRecorded(FxRobot robot) { DefaultTaskExecutor.runAndWaitInJavaFXThread(() -> hBox.requestFocus()); List lastSearchHistory = stateManager.getWholeSearchHistory().stream().toList(); - assertTrue(lastSearchHistory.isEmpty()); + assertEquals(List.of(), lastSearchHistory); } }