mock Execute
Mock CompletableDisposablesOwner.execute method.
When the execute method will be called then the argument passed in resultBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called. So when Completable.complete will be passed then onComplete will be called etc.
Usage: mockCompletableUseCase.mockExecute(args = ...) { Completable.complete() }
Mock CompletableDisposablesOwner.execute method with any() matcher argument used as input argument.
When the execute method will be called then the argument passed in resultBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called. So when Completable.complete will be passed then onComplete will be called etc.
Usage: mockCompletableUseCase.mockExecute(args = ...) { Completable.complete() }
Mock FlowableDisposablesOwner.execute method.
When the execute method will be called then the argument passed in resultBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called. So when Flowable.just will be passed then onNext will be called etc.
Usage: mockFlowableUseCase.mockExecute(args = ...) { Flowable.just(...) }
Mock FlowableDisposablesOwner.execute method with any() matcher argument used as input argument.
When the execute method will be called then the argument passed in resultBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called. So when Flowable.just will be passed then onNext will be called etc.
Usage: mockFlowableUseCase.mockExecute(args = ...) { Flowable.just(...) }
Mock MaybeDisposablesOwner.execute method.
When the execute method will be called then the argument passed in resultBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called. So when Maybe.just will be passed then onNext will be called etc.
Usage: mockMaybeUseCase.mockExecute(args = ...) { Maybe.just(...) }
Mock MaybeDisposablesOwner.execute method with any() matcher argument used as input argument.
When the execute method will be called then the argument passed in resultBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called. So when Maybe.just will be passed then onNext will be called etc.
Usage: mockMaybeUseCase.mockExecute(args = ...) { Maybe.just(...) }
Mock ObservableDisposablesOwner.execute method.
When the execute method will be called then the argument passed in resultBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called. So when Observable.just will be passed then onNext will be called etc.
Usage: mockObservableUseCase.mockExecute(args = ...) { Observable.just(...) }
Mock ObservableDisposablesOwner.execute method with any() matcher argument used as input argument.
When the execute method will be called then the argument passed in resultBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called. So when Observable.just will be passed then onNext will be called etc.
Usage: mockObservableUseCase.mockExecute(args = ...) { Observable.just(...) }
Mock SingleDisposablesOwner.execute method.
When the execute method will be called then the argument passed in resultBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called. So when Single.just will be passed then onSuccess will be called etc.
Usage: mockSingleUseCase.mockExecute(args = ...) { Single.just(...) }
Mock SingleDisposablesOwner.execute method with any() matcher argument used as input argument.
When the execute method will be called then the argument passed in resultBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called. So when Single.just will be passed then onSuccess will be called etc.
Usage: mockSingleUseCase.mockExecute { Single.just(...) }