|
| 1 | +# |
| 2 | +# Copyright 2025 the original author or authors. |
| 3 | +# <p> |
| 4 | +# Licensed under the Moderne Source Available License (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# <p> |
| 8 | +# https://docs.moderne.io/licensing/moderne-source-available-license |
| 9 | +# <p> |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +# |
| 16 | + |
| 17 | +--- |
| 18 | +type: specs.openrewrite.org/v1beta/recipe |
| 19 | +name: org.openrewrite.java.testing.junit.JupiterBestPractices |
| 20 | +displayName: JUnit Jupiter best practices |
| 21 | +description: Applies best practices to tests. |
| 22 | +tags: |
| 23 | + - testing |
| 24 | + - junit |
| 25 | +recipeList: |
| 26 | + # Included by both `JUnit6BestPractices` and `JUnit5BestPractices`, so avoid adding upgrade recipes here to run twice |
| 27 | + - org.openrewrite.java.testing.hamcrest.MigrateHamcrestToJUnit5 |
| 28 | + - org.openrewrite.java.testing.junit5.StaticImports |
| 29 | + - org.openrewrite.java.testing.junit5.CleanupAssertions |
| 30 | + - org.openrewrite.java.testing.junit5.CsvSourceToValueSource |
| 31 | + - org.openrewrite.java.testing.cleanup.AssertLiteralBooleanToFailRecipes |
| 32 | + - org.openrewrite.java.testing.cleanup.AssertLiteralBooleanRemovedRecipe |
| 33 | + - org.openrewrite.java.testing.cleanup.RemoveTestPrefix |
| 34 | + - org.openrewrite.java.testing.cleanup.SimplifyTestThrows |
| 35 | + - org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic |
| 36 | + - org.openrewrite.java.testing.cleanup.TestMethodsShouldBeVoid |
| 37 | + - org.openrewrite.java.testing.junit5.AddParameterizedTestAnnotation |
| 38 | + - org.openrewrite.java.testing.junit5.RemoveDuplicateTestTemplates |
| 39 | + - org.openrewrite.java.testing.junit5.RemoveTryCatchFailBlocks |
| 40 | + - org.openrewrite.java.testing.junit5.LifecycleNonPrivate |
| 41 | + - org.openrewrite.java.testing.junit5.AssertThrowsOnLastStatement |
| 42 | + - org.openrewrite.java.testing.junit5.AssertTrueInstanceofToAssertInstanceOf |
| 43 | + - org.openrewrite.java.testing.junit5.UseAssertSame |
0 commit comments