Skip to content

Commit

Permalink
Enable recipe in JUnit 5 migration (#296) (#298)
Browse files Browse the repository at this point in the history
* Enable recipe in JUnit 5 migration (#296)

* Enable test associated with SpringJUnitConfig

---------

Co-authored-by: Tim te Beek <[email protected]>
  • Loading branch information
nbruno and timtebeek authored Mar 2, 2023
1 parent 20ef4cc commit 61dc015
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/resources/META-INF/rewrite/spring-boot-24.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ recipeList:
- org.openrewrite.java.spring.boot2.OutputCaptureExtension
- org.openrewrite.java.spring.boot2.UnnecessarySpringRunWith
- org.openrewrite.java.spring.boot2.UnnecessarySpringExtension
# TODO Enable once tested on more projects through public.moderne.io
# - org.openrewrite.java.spring.boot2.ReplaceExtendWithAndContextConfiguration
- org.openrewrite.java.spring.boot2.ReplaceExtendWithAndContextConfiguration
- org.openrewrite.java.spring.boot2.RemoveObsoleteSpringRunners
- org.openrewrite.maven.AddDependency:
groupId: org.springframework.boot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package org.openrewrite.java.spring.boot2;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openrewrite.Issue;
import org.openrewrite.config.Environment;
Expand Down Expand Up @@ -82,7 +81,6 @@ void testFindAll() {

@Issue("https://github.com/openrewrite/rewrite-spring/issues/296")
@Test
@Disabled("Requires inclusion of ReplaceExtendWithAndContextConfiguration after that's verified on more projects")
void springBootRunWithContextConfigurationReplacedWithSpringJUnitConfig() {
//language=java
rewriteRun(
Expand Down

0 comments on commit 61dc015

Please sign in to comment.