Skip to content
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

Merged
merged 10 commits into from
Jul 30, 2020

Conversation

nrbrook
Copy link
Contributor

@nrbrook nrbrook commented Jul 24, 2020

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 the RxBleDeviceMock 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.

@dariuszseweryn
Copy link
Owner

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.

@nrbrook nrbrook mentioned this pull request Jul 24, 2020
# Conflicts:
#	mockrxandroidble/src/main/java/com/polidea/rxandroidble2/mockrxandroidble/RxBleClientMock.java
@dariuszseweryn
Copy link
Owner

Today I have little time. Either way I plan to get back to this PR Tomorrow

Copy link
Owner

@dariuszseweryn dariuszseweryn left a 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. 👍

@dariuszseweryn dariuszseweryn merged commit 69fb570 into dariuszseweryn:master Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants