alouanemed
08/16/2017, 10:16 AMjava
doAnswer(answerVoid(
(OnDataListListener<List<BEntity>> myCallback) -> myCallback.onSuccess(mList))).when(
mInteractor).performGetBList(any(OnDataListListener.class), anyBoolean());
Kotlin
doAnswer(answerVoid { listener: OnDataListListener<List<BEntity>> ->
listener.onSuccess(
emptyList())
}).`when`<DragonInteractor>(mInteractor)
.performGetBList(any<OnDataListListener>(OnDataListListener<*>::class.java),
anyBoolean())