From 9e903db9e83441ef86bd8f784dd0712bff412ace Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 19 Aug 2024 21:55:06 +0200 Subject: [PATCH] Compilefix - and enumare rules explicitely --- rewrite.yml | 9 ++++++++- .../logic/importer/fetcher/SpringerFetcherTest.java | 8 ++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/rewrite.yml b/rewrite.yml index 9dff6a410d2..77e3a3c8bac 100644 --- a/rewrite.yml +++ b/rewrite.yml @@ -196,6 +196,13 @@ recipeList: - org.openrewrite.staticanalysis.WhileInsteadOfFor # - org.openrewrite.staticanalysis.WriteOctalValuesAsDecimal + # - org.openrewrite.java.testing.junit5.JUnit5BestPractices -- cannot be used directly, because one recipe is not working (see below) + - org.openrewrite.java.testing.cleanup.AssertLiteralBooleanToFailRecipe - org.openrewrite.java.testing.cleanup.RemoveTestPrefix + # - org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic -- does not work due to https://github.com/openrewrite/rewrite-testing-frameworks/issues/458 - org.openrewrite.java.testing.junit5.CleanupAssertions - - org.openrewrite.java.testing.junit5.JUnit5BestPractices + - org.openrewrite.java.testing.junit5.AddParameterizedTestAnnotation + - org.openrewrite.java.testing.junit5.RemoveDuplicateTestTemplates + - org.openrewrite.java.testing.junit5.RemoveTryCatchFailBlocks + - org.openrewrite.java.testing.junit5.LifecycleNonPrivate + - org.openrewrite.java.testing.junit5.StaticImports diff --git a/src/test/java/org/jabref/logic/importer/fetcher/SpringerFetcherTest.java b/src/test/java/org/jabref/logic/importer/fetcher/SpringerFetcherTest.java index 53d2eadace7..a1e5bd7e982 100644 --- a/src/test/java/org/jabref/logic/importer/fetcher/SpringerFetcherTest.java +++ b/src/test/java/org/jabref/logic/importer/fetcher/SpringerFetcherTest.java @@ -157,25 +157,25 @@ void searchByEmptyQueryFindsNothing() throws Exception { @Test @Disabled("Year search is currently broken, because the API returns mutliple years.") @Override - void supportsYearSearch() { + public void supportsYearSearch() { } @Test @Disabled("Year range search is not natively supported by the API, but can be emulated by multiple single year searches.") @Override - void supportsYearRangeSearch() { + public void supportsYearRangeSearch() { } @Test @Disabled("401 as of 2024-08-18") @Override - void supportsAuthorSearch() { + public void supportsAuthorSearch() { } @Test @Disabled("401 as of 2024-08-18") @Override - void supportsJournalSearch() { + public void supportsJournalSearch() { } @Test