Skip to content

Commit

Permalink
Minor polish to apply best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Nov 4, 2024
1 parent 1dd2ee0 commit d250703
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.openrewrite.java.dependencies.search;

import org.junit.jupiter.api.Test;
import org.openrewrite.DocumentExample;
import org.openrewrite.test.RecipeSpec;
import org.openrewrite.test.RewriteTest;

Expand All @@ -31,6 +32,7 @@ public void defaults(RecipeSpec spec) {
spec.recipe(new FindMinimumDependencyVersion("com.fasterxml.jackson*", "jackson-core", "2.14-2.16"));
}

@DocumentExample
@Test
void minimumMaven() {
rewriteRun(
Expand Down Expand Up @@ -167,6 +169,7 @@ void noMatchBecauseVersionIsOutsideRange() {
@Test
void findMultiple() {
rewriteRun(
//language=yaml
spec -> spec.recipeFromYaml("""
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.MyRecipe
Expand Down

0 comments on commit d250703

Please sign in to comment.