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 callbacks #707

Merged
merged 36 commits into from Aug 20, 2020
Merged

Mock callbacks #707

merged 36 commits into from Aug 20, 2020

Conversation

nrbrook
Copy link
Contributor

@nrbrook nrbrook commented Jul 24, 2020

This PR is based on PR #706 and enhances the functionality provided by RxBleConnectionMock to allow the user to provide callbacks to handle characteristic and descriptor read and write.

Tests added, however one is failing and it's a bit too late on a Friday for my frazzled brain to figure out! Help would be appreciated.

I also need to update the readme. Otherwise complete.

@nrbrook
Copy link
Contributor Author

nrbrook commented Jul 25, 2020

This is now complete and is just waiting for other PRs to be approved.

nrbrook and others added 8 commits July 27, 2020 17:58
# Conflicts:
#	mockrxandroidble/src/main/java/com/polidea/rxandroidble2/mockrxandroidble/RxBleClientMock.java
# Conflicts:
#	mockrxandroidble/README.md
#	mockrxandroidble/src/main/java/com/polidea/rxandroidble2/mockrxandroidble/RxBleClientMock.java
#	mockrxandroidble/src/main/java/com/polidea/rxandroidble2/mockrxandroidble/RxBleConnectionMock.java
#	mockrxandroidble/src/main/java/com/polidea/rxandroidble2/mockrxandroidble/RxBleDeviceMock.java
#	mockrxandroidble/src/test/groovy/com/polidea/rxandroidble2/mockrxandroidble/RxBleClientMockTest.groovy
@dariuszseweryn
Copy link
Owner

Again merged master here so this PR would only list incremental changes

I wanted to override the method in the base interface to rename a parameter. Looks like this can’t be done, so I just removed the base interfaces.
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.

The biggest issue I see is the package naming. I think that tests could be more clear on what they test and how they are structured. Actual implementation is 💯

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.

Awesome! Sorry for the delay — I got totally swamped by other work.

@dariuszseweryn dariuszseweryn merged commit e8a25b4 into dariuszseweryn:master Aug 20, 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.

None yet

2 participants