ghedeon
06/10/2018, 10:42 PMfun posts(): Single<Foo>...
...
test:
val answer = foo().test().values().first()
//assert answer with atrium
this .test().values().first() looks a bit verbose, do you wrap it into an extension function? Just curious what's the best practice hererobstoll
06/12/2018, 8:11 PMtest() is used to observe the value and values().first() is used to retrieve the value as such. I would probably create an assertion function for SingleSource<T> which wraps test().values() and retrieves first but also checks that values() hasSize(1) (assuming it is somehow possible to emit two values even though it is defined as Single<T>. I hope that helpsrobstoll
06/16/2018, 9:21 PMghedeon
06/19/2018, 3:20 PMrobstoll
06/19/2018, 7:57 PM