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
Implement createObservable for PreparedGetObject #568
Implement createObservable for PreparedGetObject #568
Conversation
TestSubscriber<User> testSubscriber = new TestSubscriber<User>(); | ||
userObservable.subscribe(testSubscriber); | ||
|
||
testSubscriber.awaitTerminalEvent(500, TimeUnit.MILLISECONDS); |
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.
static import for milliseconds please :)
Looks good! Just few comments. |
@nikitin-da PTAL :) |
@@ -42,6 +50,22 @@ public void shouldGetByQueryWithoutTypeMappingBlocking() { | |||
} | |||
|
|||
@Test | |||
public void shouldGetByQueryWithoutTypeMappingAsObservable() { |
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.
Maybe shouldGetObjectByQueryWithoutTypeMappingAsObservable
will be better=)
👍 LGTM |
Would be nice to also have integration tests to see that it reacts on changes of tables from query and emits new result! |
Ok, I will get my hands on it today in the evening |
Thanks! |
@artem-zinnatullin check this out! |
} | ||
|
||
@Test | ||
public void getObjectBlockingWithRawQueryObservable() { |
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.
Unneeded Blocking
in test name
Checked 👯 |
But without this |
Better to do |
Will it be something like that?
|
Yep, looks good, you can remove |
Tests are fixed now |
testSubscriber.awaitTerminalEvent(5, SECONDS); | ||
testSubscriber.assertValue(expectedUser); | ||
testSubscriber.assertNoErrors(); | ||
testSubscriber.unsubscribe(); |
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.
Not needed but I think I'll merge it anyway :)
👍 thanks again! |
Implement createObservable for PreparedGetObject
I'll try to finish Rx part for content resolver by the end of this week. Could you explain why calling |
@geralt-encore no problems! You help us a lot (I'm busy as always)! Also, you learned some Rx and that's great :) |
I am not sure about my integration tests