-
-
Notifications
You must be signed in to change notification settings - Fork 71
Fix/orbit 6 issues #193
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
Fix/orbit 6 issues #193
Conversation
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.
These are non-breaking changes, if you remove a method that's definitely a v7.
@@ -31,6 +31,7 @@ public interface OrbitTestContext<STATE : Any, SIDE_EFFECT : Any, CONTAINER_HOST | |||
/** | |||
* Invoke an intent on the [ContainerHost] under test. | |||
*/ | |||
@Deprecated("Use containerHost instead", ReplaceWith("action(containerHost)")) |
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.
Does this work with IntelliJ quickfix? Is it the reason for the all the this
s in this.containerHost.x()
?
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.
Yes and yes!
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.
Hmm, I guess there's no way to exclude the this.
with the quickfix, because IJ adds it.
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.
Yep, I couldn't find a way to omit this
. But this can be easily corrected using a search and replace within test scope so it's not as bad.
Yes, I would like to fix it quickly in a way that allows people to refactor (
|
Fixes for:
Blocking intents and other container host functions can be called via
containerHost.xxx()
directly.I'm removing
invokeIntent
to keep things consistent cc @mattmook , see discussion at #180 . TL;DR is that this change will allow people not to exposeJob
from theirContainerHost
if they don't need it in tests - I think this is the solution we missed originally.