Skip to content

Commit f28480b

Browse files
Removing example from examples file and the @DocumentExample annotation from the tests since they're programmatic validation
1 parent 821e014 commit f28480b

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

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

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -303,48 +303,6 @@ examples:
303303
language: java
304304
---
305305
type: specs.openrewrite.org/v1beta/example
306-
recipeName: org.openrewrite.java.migrate.ComIntelliJAnnotationsToOrgJetbrainsAnnotations
307-
examples:
308-
- description: ''
309-
sources:
310-
- before: project
311-
language: mavenProject
312-
- before: |
313-
<project>
314-
<modelVersion>4.0.0</modelVersion>
315-
316-
<groupId>com.mycompany.app</groupId>
317-
<artifactId>my-app</artifactId>
318-
<version>1</version>
319-
320-
<dependencies>
321-
<dependency>
322-
<groupId>com.intellij</groupId>
323-
<artifactId>annotations</artifactId>
324-
<version>5.1</version>
325-
</dependency>
326-
</dependencies>
327-
</project>
328-
path: pom.xml
329-
language: xml
330-
- description: ''
331-
sources:
332-
- before: |
333-
plugins {
334-
id("java-library")
335-
}
336-
repositories {
337-
mavenCentral()
338-
}
339-
dependencies {
340-
implementation("com.intellij:annotations:5.1")
341-
implementation "com.intellij:annotations:6.0.3"
342-
implementation group: "com.intellij", name: "annotations", version: "12.0"
343-
}
344-
path: build.gradle
345-
language: groovy
346-
---
347-
type: specs.openrewrite.org/v1beta/example
348306
recipeName: org.openrewrite.java.migrate.DeleteDeprecatedFinalize
349307
examples:
350308
- description: ''

src/test/java/org/openrewrite/java/migrate/ComIntelliJAnnotationsToOrgJetbrainsAnnotationsTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public void defaults(RecipeSpec spec) {
4242
);
4343
}
4444

45-
@DocumentExample
4645
@Test
4746
void mavenDependencyUpdate() {
4847
rewriteRun(
@@ -81,7 +80,6 @@ void mavenDependencyUpdate() {
8180
);
8281
}
8382

84-
@DocumentExample
8583
@Test
8684
void gradleDependencyUpdates() {
8785
rewriteRun(

0 commit comments

Comments
 (0)