Skip to content

Commit

Permalink
Rename recipe since package already includes Apache Commons
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Aug 10, 2023
1 parent 0c612c6 commit 7568acc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import java.util.Objects;

public class ApacheCommonsStringUtilsDefaultString {
public class DefaultString {
@BeforeTemplate
String before(String s) {
return StringUtils.defaultString(s);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import static org.openrewrite.java.Assertions.java;

public class ApacheCommonsStringUtils implements RewriteTest {
class ApacheCommonsStringUtilsTest implements RewriteTest {

@Override
public void defaults(RecipeSpec spec) {
Expand All @@ -32,7 +32,7 @@ public void defaults(RecipeSpec spec) {
@Test
void defaultString() {
rewriteRun(
spec -> spec.recipe(new ApacheCommonsStringUtilsDefaultStringRecipe()),
spec -> spec.recipe(new DefaultStringRecipe()),
//language=java
java("""
import org.apache.commons.lang3.StringUtils;
Expand Down

0 comments on commit 7568acc

Please sign in to comment.