commit | f86c2f8766e28cddfbaadca320f60aa031173df6 | [log] [tgz] |
---|---|---|
author | Tim te Beek <timtebeek@gmail.com> | Sun Jan 08 16:32:35 2023 +0100 |
committer | GitHub <noreply@github.com> | Sun Jan 08 16:32:35 2023 +0100 |
tree | 6448b2bc414b241f67ff18f875f57f21f6516c40 | |
parent | 8b48a3f437b9df1249bccd7920f84f587bd20e32 [diff] |
Switch to JUnit Jupiter (#61) * Switch to JUnit Jupiter Using https://docs.openrewrite.org/reference/recipes/java/testing/junit5/junit5bestpractices ``` mvn org.openrewrite.maven:rewrite-maven-plugin:4.38.2:run \ -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-testing-frameworks:1.32.0 \ -DactiveRecipes=org.openrewrite.java.testing.junit5.JUnit5BestPractices ``` ``` Changes have been made to maven-wrapper/pom.xml by: org.openrewrite.java.testing.junit5.JUnit5BestPractices org.openrewrite.java.testing.junit5.JUnit4to5Migration org.openrewrite.java.testing.junit5.UseMockitoExtension org.openrewrite.java.testing.mockito.Mockito1to4Migration org.openrewrite.maven.UpgradeDependencyVersion: {groupId=org.mockito, artifactId=*, newVersion=4.x, retainVersions=[]} org.openrewrite.maven.RemoveDependency: {groupId=junit, artifactId=junit} org.openrewrite.maven.AddDependency: {groupId=org.junit.jupiter, artifactId=junit-jupiter, version=5.x, onlyIfUsing=org.junit.jupiter.api.Test} Changes have been made to maven-wrapper/src/test/java/org/apache/maven/wrapper/WrapperExecutorTest.java by: org.openrewrite.java.testing.junit5.JUnit5BestPractices org.openrewrite.java.testing.junit5.JUnit4to5Migration org.openrewrite.java.testing.junit5.AssertToAssertions org.openrewrite.java.testing.junit5.UpdateTestAnnotation org.openrewrite.java.testing.junit5.StaticImports org.openrewrite.java.UseStaticImport: {methodPattern=org.junit.jupiter.api.Assertions *(..)} Changes have been made to maven-wrapper/src/test/java/org/apache/maven/wrapper/SystemPropertiesHandlerTest.java by: org.openrewrite.java.testing.junit5.JUnit5BestPractices org.openrewrite.java.testing.junit5.JUnit4to5Migration org.openrewrite.java.testing.junit5.UpdateBeforeAfterAnnotations org.openrewrite.java.testing.junit5.UpdateTestAnnotation org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic Changes have been made to maven-wrapper/src/test/java/org/apache/maven/wrapper/PathAssemblerTest.java by: org.openrewrite.java.testing.junit5.JUnit5BestPractices org.openrewrite.java.testing.junit5.JUnit4to5Migration org.openrewrite.java.testing.junit5.AssertToAssertions org.openrewrite.java.testing.junit5.UpdateBeforeAfterAnnotations org.openrewrite.java.testing.junit5.UpdateTestAnnotation org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic Changes have been made to maven-wrapper/src/test/java/org/apache/maven/wrapper/DownloaderTest.java by: org.openrewrite.java.testing.junit5.JUnit5BestPractices org.openrewrite.java.testing.junit5.JUnit4to5Migration org.openrewrite.java.testing.junit5.AssertToAssertions org.openrewrite.java.testing.junit5.UpdateBeforeAfterAnnotations org.openrewrite.java.testing.junit5.UpdateTestAnnotation org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic Changes have been made to maven-wrapper/src/test/java/org/apache/maven/wrapper/HashAlgorithmVerifierTest.java by: org.openrewrite.java.testing.junit5.JUnit5BestPractices org.openrewrite.java.testing.junit5.JUnit4to5Migration org.openrewrite.java.testing.junit5.AssertToAssertions org.openrewrite.java.testing.junit5.TemporaryFolderToTempDir org.openrewrite.java.testing.junit5.UpdateBeforeAfterAnnotations org.openrewrite.java.testing.junit5.UpdateTestAnnotation org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic org.openrewrite.java.testing.junit5.StaticImports org.openrewrite.java.UseStaticImport: {methodPattern=org.junit.jupiter.api.Assertions *(..)} Changes have been made to maven-wrapper/src/test/java/org/apache/maven/wrapper/InstallerTest.java by: org.openrewrite.java.testing.junit5.JUnit5BestPractices org.openrewrite.java.testing.junit5.JUnit4to5Migration org.openrewrite.java.testing.junit5.AssertToAssertions org.openrewrite.java.testing.junit5.TemporaryFolderToTempDir org.openrewrite.java.testing.junit5.UpdateBeforeAfterAnnotations org.openrewrite.java.testing.junit5.UpdateTestAnnotation org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic org.openrewrite.java.testing.junit5.StaticImports org.openrewrite.java.UseStaticImport: {methodPattern=org.junit.jupiter.api.Assertions *(..)} ``` * Spotless apply * Introduce properties for JUnit and Mockito versions
You have found a bug or you have an idea for a cool new feature? Contributing code is a great way to give something back to the open source community. Before you dig right into the code, there are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
git diff --check
before committing.[MWRAPPER-XXX] - Subject of the JIRA Ticket Optional supplemental description.
mvn -Prun-its verify
to assure nothing else was accidentally broken.If you plan to contribute on a regular basis, please consider filing a contributor license agreement.
For changes of a trivial nature to comments and documentation, it is not always necessary to create a new ticket in JIRA. In this case, it is appropriate to start the first line of a commit with ‘(doc)’ instead of a ticket number.