Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Nov 18, 2024
1 parent 5bd7ed7 commit b3e1ba8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ dependencies {
implementation("org.openrewrite:rewrite-java")
implementation("org.openrewrite:rewrite-gradle")
implementation("org.openrewrite:rewrite-maven")
implementation("org.openrewrite.recipe:rewrite-migrate-java:$rewriteVersion")
implementation("org.openrewrite.recipe:rewrite-java-dependencies:$rewriteVersion")
implementation("org.openrewrite.recipe:rewrite-static-analysis:$rewriteVersion")
runtimeOnly("org.openrewrite:rewrite-java-17")
Expand Down
22 changes: 11 additions & 11 deletions src/main/resources/META-INF/rewrite/easymock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ tags:
- easymock
recipeList:
- org.openrewrite.java.testing.easymock.EasyMockVerifyToMockitoVerify
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.IExpectationSetters times(..)
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.IExpectationSetters once()
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.IExpectationSetters atLeastOnce()
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.IExpectationSetters anyTimes()
- org.openrewrite.java.ChangeMethodName:
methodPattern: org.easymock.IExpectationSetters andReturn(..)
Expand Down Expand Up @@ -59,17 +59,17 @@ recipeList:
- org.openrewrite.java.ChangeMethodTargetToStatic:
methodPattern: org.easymock.IMocksControl createMock(..)
fullyQualifiedTargetTypeName: org.mockito.Mockito
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.IMocksControl replay(..)
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.IMocksControl verify(..)
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.IMocksControl verifyRecording(..)
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.IMocksControl verifyUnexpectedCalls(..)
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.EasyMockSupport replayAll()
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.EasyMockSupport verifyAll()
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.easymock.IArgumentMatcher
Expand All @@ -86,7 +86,7 @@ recipeList:
- org.openrewrite.java.ChangeMethodName:
methodPattern: org.easymock.EasyMock expect(..)
newMethodName: when
- org.openrewrite.java.migrate.RemoveMethodInvocation:
- org.openrewrite.java.RemoveMethodInvocations:
methodPattern: org.easymock.EasyMock replay(..)
- org.openrewrite.java.ChangeMethodName:
methodPattern: org.easymock.EasyMock createNiceMock(..)
Expand Down

0 comments on commit b3e1ba8

Please sign in to comment.