mock Execute Nullable
Mock CompletableDisposablesOwner.execute method for use cases with nullable 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.mockExecuteNullable(args = ...) { Completable.complete() }
Mock CompletableDisposablesOwner.execute method for use cases with nullable input argument and 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.mockExecuteNullable(args = ...) { Completable.complete() }
Mock FlowableDisposablesOwner.execute method for use cases with nullable 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.mockExecuteNullable(args = ...) { Flowable.just(...) }
Mock FlowableDisposablesOwner.execute method for use cases with nullable input argument and 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.mockExecuteNullable(args = ...) { Flowable.just(...) }
Mock MaybeDisposablesOwner.execute method for use cases with nullable 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.mockExecuteNullable(args = ...) { Maybe.just(...) }
Mock MaybeDisposablesOwner.execute method for use cases with nullable input argument and 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.mockExecuteNullable(args = ...) { Maybe.just(...) }
Mock ObservableDisposablesOwner.execute method for use cases with nullable 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.mockExecuteNullable(args = ...) { Observable.just(...) }
Mock ObservableDisposablesOwner.execute method for use cases with nullable input argument and 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.mockExecuteNullable(args = ...) { Observable.just(...) }
Mock SingleDisposablesOwner.execute method for use cases with nullable 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.mockExecuteNullable { Single.just(...) }
Mock SingleDisposablesOwner.execute method for use cases with nullable input argument and 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.mockExecuteNullable { Single.just(...) }