Class CleanupMockitoImports
- java.lang.Object
-
- org.openrewrite.Recipe
-
- org.openrewrite.java.testing.mockito.CleanupMockitoImports
-
public class CleanupMockitoImports extends org.openrewrite.RecipeOrders imports and removes unused imports from classes which import symbols from the "org.mockito" package.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCleanupMockitoImports.CleanupMockitoImportsVisitor
-
Constructor Summary
Constructors Constructor Description CleanupMockitoImports()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()java.lang.StringgetDisplayName()java.time.DurationgetEstimatedEffortPerOccurrence()protected @Nullable org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>getSingleSourceApplicableTest()protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>getVisitor()
-
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
public java.lang.String getDescription()
- Overrides:
getDescriptionin classorg.openrewrite.Recipe
-
getEstimatedEffortPerOccurrence
public java.time.Duration getEstimatedEffortPerOccurrence()
- Overrides:
getEstimatedEffortPerOccurrencein classorg.openrewrite.Recipe
-
getVisitor
protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()
- Overrides:
getVisitorin classorg.openrewrite.Recipe
-
getSingleSourceApplicableTest
@Nullable protected @Nullable org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getSingleSourceApplicableTest()
- Overrides:
getSingleSourceApplicableTestin classorg.openrewrite.Recipe
-
-