Skip to content

Commit 61dc015

Browse files
nbrunotimtebeek
andauthored
Enable recipe in JUnit 5 migration (#296) (#298)
* Enable recipe in JUnit 5 migration (#296) * Enable test associated with SpringJUnitConfig --------- Co-authored-by: Tim te Beek <[email protected]>
1 parent 20ef4cc commit 61dc015

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/main/resources/META-INF/rewrite/spring-boot-24.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ recipeList:
141141
- org.openrewrite.java.spring.boot2.OutputCaptureExtension
142142
- org.openrewrite.java.spring.boot2.UnnecessarySpringRunWith
143143
- org.openrewrite.java.spring.boot2.UnnecessarySpringExtension
144-
# TODO Enable once tested on more projects through public.moderne.io
145-
# - org.openrewrite.java.spring.boot2.ReplaceExtendWithAndContextConfiguration
144+
- org.openrewrite.java.spring.boot2.ReplaceExtendWithAndContextConfiguration
146145
- org.openrewrite.java.spring.boot2.RemoveObsoleteSpringRunners
147146
- org.openrewrite.maven.AddDependency:
148147
groupId: org.springframework.boot

src/testWithSpringBoot_2_3/java/org/openrewrite/java/spring/boot2/SpringBoot2JUnit4to5MigrationTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.openrewrite.java.spring.boot2;
1717

18-
import org.junit.jupiter.api.Disabled;
1918
import org.junit.jupiter.api.Test;
2019
import org.openrewrite.Issue;
2120
import org.openrewrite.config.Environment;
@@ -82,7 +81,6 @@ void testFindAll() {
8281

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

0 commit comments

Comments
 (0)