Skip to content

Commit 1302589

Browse files
sambsnydTeamModerne
andcommitted
1 parent 92de89a commit 1302589

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/main/resources/META-INF/rewrite/junit5.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ description: Replace JUnit 4's `junit.framework.AssertionFailedError` and `org.j
253253
tags:
254254
- testing
255255
- junit
256+
preconditions:
257+
- org.openrewrite.Singleton
256258
recipeList:
257259
- org.openrewrite.java.ChangeType:
258260
oldFullyQualifiedTypeName: junit.framework.AssertionFailedError

src/main/resources/META-INF/rewrite/mockito.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ preconditions:
221221
groupIdPattern: org.mockito
222222
artifactIdPattern: "*"
223223
version: "(,3.0)"
224+
- org.openrewrite.Singleton
224225
recipeList:
225226
- org.openrewrite.java.testing.mockito.AddMockitoSettingsWithWarnStrictness
226227
---
@@ -234,6 +235,7 @@ preconditions:
234235
- org.openrewrite.java.dependencies.search.ModuleHasDependency:
235236
groupIdPattern: org.junit.jupiter
236237
artifactIdPattern: junit-jupiter*
238+
- org.openrewrite.Singleton
237239
recipeList:
238240
- org.openrewrite.java.testing.mockito.ReplaceMockitoTestExecutionListener:
239241
targetFramework: jupiter
@@ -248,6 +250,7 @@ preconditions:
248250
- org.openrewrite.java.dependencies.search.ModuleHasDependency:
249251
groupIdPattern: junit
250252
artifactIdPattern: junit
253+
- org.openrewrite.Singleton
251254
recipeList:
252255
- org.openrewrite.java.testing.mockito.ReplaceMockitoTestExecutionListener:
253256
targetFramework: junit4
@@ -262,6 +265,7 @@ preconditions:
262265
- org.openrewrite.java.dependencies.search.ModuleHasDependency:
263266
groupIdPattern: org.testng
264267
artifactIdPattern: testng*
268+
- org.openrewrite.Singleton
265269
recipeList:
266270
- org.openrewrite.java.testing.mockito.ReplaceMockitoTestExecutionListener:
267271
targetFramework: testng

src/main/resources/META-INF/rewrite/testcontainers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ displayName: Migrate from `oracle-xe` to `oracle-free`
2121
description: >-
2222
Oracle Database Free is the successor of Oracle XE.
2323
Migrate from `org.testcontainers:oracle-xe` to `org.testcontainers:oracle-free`.
24+
preconditions:
25+
- org.openrewrite.Singleton
2426
recipeList:
2527
- org.openrewrite.java.testing.testcontainers.ReplaceContainerImageName:
2628
containerClass: org.testcontainers.containers.OracleContainer
@@ -40,6 +42,8 @@ displayName: Migrate to Apache Kafka Native container
4042
description: >-
4143
Replace `confluentinc/cp-kafka` with the much faster `apache/kafka-native` image
4244
and migrate from `org.testcontainers.containers.KafkaContainer` to `org.testcontainers.kafka.KafkaContainer`.
45+
preconditions:
46+
- org.openrewrite.Singleton
4347
recipeList:
4448
- org.openrewrite.java.testing.testcontainers.ReplaceContainerImageName:
4549
containerClass: org.testcontainers.containers.KafkaContainer

0 commit comments

Comments
 (0)