From 20b38e5d0e731f216b553c56d0a11c5f15fbae60 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 12 Aug 2024 23:05:35 +0200 Subject: [PATCH] fix tests (#11616) --- src/main/java/org/jabref/logic/openoffice/ReferenceMark.java | 2 +- src/main/resources/l10n/JabRef_en.properties | 5 ++++- .../java/org/jabref/logic/openoffice/ReferenceMarkTest.java | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jabref/logic/openoffice/ReferenceMark.java b/src/main/java/org/jabref/logic/openoffice/ReferenceMark.java index 87d2354da95..e8b466d6965 100644 --- a/src/main/java/org/jabref/logic/openoffice/ReferenceMark.java +++ b/src/main/java/org/jabref/logic/openoffice/ReferenceMark.java @@ -66,7 +66,7 @@ public String getCitationKey() { return citationKey; } - public Integer getCitationNumber() { + public int getCitationNumber() { return citationNumber; } diff --git a/src/main/resources/l10n/JabRef_en.properties b/src/main/resources/l10n/JabRef_en.properties index e1730b727a3..ee76f6c6e57 100644 --- a/src/main/resources/l10n/JabRef_en.properties +++ b/src/main/resources/l10n/JabRef_en.properties @@ -1081,6 +1081,7 @@ To\ Kindle=To Kindle Send\ to\ Kindle=Send to Kindle Email\ address\ for\ sending\ to\ Kindle=Email address for sending to Kindle References=References +Bibliography=Bibliography Sending\ of\ emails=Sending of emails Subject\ for\ sending\ an\ email\ with\ references=Subject for sending an email with references Automatically\ open\ folders\ of\ attached\ files=Automatically open folders of attached files @@ -1124,7 +1125,6 @@ No\ Writer\ documents\ found=No Writer documents found Insert\ a\ citation\ without\ text\ (the\ entry\ will\ appear\ in\ the\ reference\ list)=Insert a citation without text (the entry will appear in the reference list) Cite\ selected\ entries\ with\ extra\ information=Cite selected entries with extra information -Ensure\ that\ the\ bibliography\ is\ up-to-date=Ensure that the bibliography is up-to-date Your\ OpenOffice/LibreOffice\ document\ references\ the\ citation\ key\ '%0',\ which\ could\ not\ be\ found\ in\ your\ current\ library.=Your OpenOffice/LibreOffice document references the citation key '%0', which could not be found in your current library. @@ -1134,6 +1134,9 @@ Your\ OpenOffice/LibreOffice\ document\ references\ at\ least\ %0\ citation\ key Your\ OpenOffice/LibreOffice\ document\ references\ no\ citation\ keys\ which\ could\ also\ be\ found\ in\ your\ current\ library.=Your OpenOffice/LibreOffice document references no citation keys which could also be found in your current library. +Make/Sync\ bibliography=Make/Sync bibliography +No\ cited\ entries\ found\ in\ the\ document.=No cited entries found in the document. + Unable\ to\ synchronize\ bibliography=Unable to synchronize bibliography Combine\ pairs\ of\ citations\ that\ are\ separated\ by\ spaces\ only=Combine pairs of citations that are separated by spaces only Autodetection\ failed=Autodetection failed diff --git a/src/test/java/org/jabref/logic/openoffice/ReferenceMarkTest.java b/src/test/java/org/jabref/logic/openoffice/ReferenceMarkTest.java index c6a95b1f6d3..7ac3f127dec 100644 --- a/src/test/java/org/jabref/logic/openoffice/ReferenceMarkTest.java +++ b/src/test/java/org/jabref/logic/openoffice/ReferenceMarkTest.java @@ -18,7 +18,7 @@ void validParsing(String name, String expectedCitationKey, String expectedCitati ReferenceMark referenceMark = new ReferenceMark(name); assertEquals(expectedCitationKey, referenceMark.getCitationKey()); - assertEquals(expectedCitationNumber, referenceMark.getCitationNumber()); + assertEquals(expectedCitationNumber, String.valueOf(referenceMark.getCitationNumber())); assertEquals(expectedUniqueId, referenceMark.getUniqueId()); }