diff --git a/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java b/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java index e9df40ccb9b..e22899ae189 100644 --- a/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java +++ b/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java @@ -184,7 +184,7 @@ void restoreColumnVariablesForBackwardCompatibility() { List columnNames = Arrays.asList("entrytype", "author/editor", "title", "year", "journal/booktitle", "citationkey", "printed"); List columnWidths = Arrays.asList("100", "100", "100", "100", "100", "100", "100"); - when(prefs.getStringList(JabRefPreferences.COLUMN_NAMES)).thenReturn(updatedNames); + when(prefs.getStringList("columnNames")).thenReturn(updatedNames); when(prefs.get(JabRefPreferences.MAIN_FONT_SIZE)).thenReturn("11.2");