Skip to content

unit testing with rxPreference #133

Description

@AshokSennanOkCredit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions