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

unit testing with rxPreference #133

Open
AshokSennanOkCredit opened this issue May 6, 2020 · 0 comments
Open

unit testing with rxPreference #133

AshokSennanOkCredit opened this issue May 6, 2020 · 0 comments

Comments

@AshokSennanOkCredit
Copy link

AshokSennanOkCredit commented May 6, 2020

while writing unit testing, I cannot return the rxPreference.getString() as Preference since RealPreference() class is the only class which implements Preference that too final class.

org.mockito.exceptions.misusing.WrongTypeOfReturnValue:
String cannot be returned by getString()
getString() should return Preference

how to return the Preference in junit

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

No branches or pull requests

1 participant