-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate doAfterSuccessOrError
to tap
#9
base: main
Are you sure you want to change the base?
Conversation
src/test/java/org/openrewrite/reactive/reactor/ReactorDoAfterSuccessOrErrorToTapTest.java
Show resolved
Hide resolved
src/test/java/org/openrewrite/reactive/reactor/ReactorDoAfterSuccessOrErrorToTapTest.java
Show resolved
Hide resolved
src/test/java/org/openrewrite/reactive/reactor/ReactorDoAfterSuccessOrErrorToTapTest.java
Outdated
Show resolved
Hide resolved
if (error != null) { | ||
System.out.println("error" + error); | ||
} else { | ||
System.out.println("success" + result); | ||
} | ||
System.out.println("other logs"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start I think to split out commands in this way; let's add a few more variants like if (error == null)
, if (null == error)
, or separate if
s, no else
, other statements before/interspersed. We're going for a bit of variety here, such that we don't overfit the recipe implementation to this one test. Then from there we can look across OSS projects that use doAfterSuccessOrError
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I already ran a FindMethods
across OSS and found none, but perhaps pattern reactor.core.publisher.Mono doAfterSuccessOrError(..)
is too specific?
Will add more test variations!
…e to tap only existing from 3.5
What's your motivation?
Further improving coverage of 3.5 and 3.6 deprecations as seen here https://projectreactor.io/docs/core/3.4.39/api/deprecated-list.html
Anything in particular you'd like reviewers to focus on?
Test coverage
Setup of the recipe
Anyone you would like to review specifically?
@OlegDokuka
@timtebeek
Checklist