Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Native unit tests should be mocking #101

Open
miwong opened this issue May 24, 2012 · 0 comments
Open

Native unit tests should be mocking #101

miwong opened this issue May 24, 2012 · 0 comments
Labels

Comments

@miwong
Copy link
Contributor

miwong commented May 24, 2012

The native unit tests for the extensions (e.g. blackberry.connection) currently do not use mocking. We should add mocking tests to fully test the code.

This would require the structure of the classes to change a bit. Namely, we would either need to make functions virtual or we would need to split interface/implementation by having our classes inherit purely abstract base classes. In addition, to mock BPS functions, we may need to create a new class that would be used to access these functions. We can then mock the BPS functions by mocking this class.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant