From 654622ae6c9ff24b3ce2c0d852b55232def330da Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Jan 2025 20:36:23 +0000 Subject: [PATCH] Bump de.undercouch:citeproc-java from 3.1.0 to 3.2.0 (#12347) * Bump de.undercouch:citeproc-java from 3.1.0 to 3.2.0 Bumps [de.undercouch:citeproc-java](https://github.com/michel-kraemer/citeproc-java) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/michel-kraemer/citeproc-java/releases) - [Commits](https://github.com/michel-kraemer/citeproc-java/commits) --- updated-dependencies: - dependency-name: de.undercouch:citeproc-java dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Trial commit: run tests on CI * Fix tests --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Subhramit Basu Bhowmick --- build.gradle | 2 +- .../logic/openoffice/oocsltext/CSLFormatUtilsTest.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index d9ec3cb6654..e9cb6222194 100644 --- a/build.gradle +++ b/build.gradle @@ -281,7 +281,7 @@ dependencies { // route all requests to log4j to SLF4J implementation 'org.apache.logging.log4j:log4j-to-slf4j:2.24.3' - implementation('de.undercouch:citeproc-java:3.1.0') { + implementation('de.undercouch:citeproc-java:3.2.0') { exclude group: 'org.antlr' } diff --git a/src/test/java/org/jabref/logic/openoffice/oocsltext/CSLFormatUtilsTest.java b/src/test/java/org/jabref/logic/openoffice/oocsltext/CSLFormatUtilsTest.java index dc43b0d26cb..02cd04e72ca 100644 --- a/src/test/java/org/jabref/logic/openoffice/oocsltext/CSLFormatUtilsTest.java +++ b/src/test/java/org/jabref/logic/openoffice/oocsltext/CSLFormatUtilsTest.java @@ -197,7 +197,7 @@ static Stream ooHTMLTransformFromRawBibliography() { // Small-caps Arguments.of( - " Smith, B., Jones, B., Williams, J. (2016) Title of the test entry Taylor, P. (ed.). BibTeX Journal, 34(3), pp. 45–67.

", + " Smith, B., Jones, B. and Williams, J. (2016) Title of the test entry Taylor, P. (ed.). BibTeX Journal, 34(3), pp. 45–67.

", STYLE_LIST.stream().filter(e -> "De Montfort University - Harvard".equals(e.getTitle())).findAny().get() ), @@ -305,12 +305,12 @@ static Stream ooHTMLTransformFromCitationWithSingleEntry() { ), Arguments.of( - "(Smith, Jones, Williams, 2016)", + "(Smith, Jones and Williams, 2016)", STYLE_LIST.stream().filter(e -> "De Montfort University - Harvard".equals(e.getTitle())).findAny().get() ), Arguments.of( - "(Smith, Jones, & Williams)", + "(Smith, Jones, & Williams, “Title of the test entry”)", STYLE_LIST.stream().filter(e -> "Modern Language Association 7th edition (underline)".equals(e.getTitle())).findAny().get() ), @@ -429,12 +429,12 @@ static Stream ooHTMLTransformFromCitationWithMultipleEntries() { ), Arguments.of( - "(Garcia, Lee, 2021; Smith, Johnson, 2020)", + "(Garcia and Lee, 2021; Smith and Johnson, 2020)", STYLE_LIST.stream().filter(e -> "De Montfort University - Harvard".equals(e.getTitle())).findAny().get() ), Arguments.of( - "(Garcia & Lee; Smith & Johnson)", + "(Garcia & Lee, “Quantum Entanglement in Superconductors”; Smith & Johnson, “A Study on Machine Learning Algorithms”)", STYLE_LIST.stream().filter(e -> "Modern Language Association 7th edition (underline)".equals(e.getTitle())).findAny().get() ),