rx-preferences icon indicating copy to clipboard operation
rx-preferences copied to clipboard

unit testing with rxPreference

Open AshokSennanOkCredit opened this issue 4 years ago • 0 comments

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

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

how to return the Preference<String> in junit

AshokSennanOkCredit avatar May 06 '20 04:05 AshokSennanOkCredit