I want to make mock object of asObservable() about findFirstAsync.
I found a comment in RealmObject.
// TODO Is this true? Should we just return Observable.just(object) ?
throw new IllegalArgumentException("Cannot create Observables from unmanaged RealmObjects");
Is there any other way to make mock observable?
Expected Results
Create mock observable object.
Actual Results
java.lang.IllegalArgumentException: Cannot create Observables from unmanaged RealmObjects
Goal
I want to make mock object of asObservable() about findFirstAsync. I found a comment in RealmObject.
Is there any other way to make mock observable?
Expected Results
Create mock observable object.
Actual Results
Code Sample
Version of Realm and tooling
Realm version(s): 2.2
Realm sync feature enabled: no
Android Studio version: 2.2
Which Android version and device: nexus 5x