-
Notifications
You must be signed in to change notification settings - Fork 582
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
Mock structure changes #706
Mock structure changes #706
Conversation
Another valuable PR. I would like to address #703 first as there are some changes that raise my concerns and continue with this one after. |
# Conflicts: # mockrxandroidble/src/main/java/com/polidea/rxandroidble2/mockrxandroidble/RxBleClientMock.java
Today I have little time. Either way I plan to get back to this PR Tomorrow |
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 have pushed a merge commit from master
so only changed classes would show up here. 👍
These changes are based on PR #703 but I did a new PR as they are not really related, however merging this PR instead would mean further API deprecations are not required between the two PRs.
The main purpose of this PR is to allow users to provide their own
RxBleConnectionMock
instance, so they can customise the behaviour of the mock during connection. It also makes the interfaces a bit cleaner, and moves theRxBleDeviceMock
builder inside that class which is a more appropriate location.All deprecated APIs are marked as such and continue to work, and legacy unit tests have been added to ensure that.