AssertJOptionalRules Refaster recipes
Recipe ID
tech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipesArtifact
org.openrewrite.recipe:rewrite-third-partyRefaster rules related to AssertJ assertions over Optionals.
Source.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe tech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipesIf the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-third-party:0.44.0Definition
This recipe runs the following recipes in order.
- Refaster template
AssertJOptionalRules.AssertThatGettech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipes$AssertThatGetRecipe - Refaster template
AssertJOptionalRules.AbstractOptionalAssertIsPresenttech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipes$AbstractOptionalAssertIsPresentRecipe - Refaster template
AssertJOptionalRules.AssertThatIsPresenttech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipes$AssertThatIsPresentRecipe - Refaster template
AssertJOptionalRules.AbstractOptionalAssertIsEmptytech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipes$AbstractOptionalAssertIsEmptyRecipe - Refaster template
AssertJOptionalRules.AssertThatIsEmptytech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipes$AssertThatIsEmptyRecipe - Refaster template
AssertJOptionalRules.AbstractOptionalAssertHasValuetech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipes$AbstractOptionalAssertHasValueRecipe - Refaster template
AssertJOptionalRules.AbstractOptionalAssertContainsSametech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipes$AbstractOptionalAssertContainsSameRecipe - Refaster template
AssertJOptionalRules.AssertThatGetMatchestech.picnic.errorprone.refasterrules.AssertJOptionalRulesRecipes$AssertThatGetMatchesRecipe
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats