mockExecuteNullable

inline fun <ARGS, USE_CASE : CompletableUseCase<ARGS?>> USE_CASE.mockExecuteNullable(args: ARGS, resultBlock: () -> Completable)

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() }

inline fun <ARGS : Any, USE_CASE : CompletableUseCase<ARGS?>> USE_CASE.mockExecuteNullable(resultBlock: () -> Completable)

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() }

inline fun <ARGS, RETURN_VALUE, USE_CASE : FlowableUseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(args: ARGS, resultBlock: () -> Flowable<RETURN_VALUE>)

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(...) }

inline fun <ARGS : Any, RETURN_VALUE, USE_CASE : FlowableUseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(resultBlock: () -> Flowable<RETURN_VALUE>)

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(...) }

inline fun <ARGS, RETURN_VALUE, USE_CASE : MaybeUseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(args: ARGS, resultBlock: () -> Maybe<RETURN_VALUE>)

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(...) }

inline fun <ARGS : Any, RETURN_VALUE, USE_CASE : MaybeUseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(resultBlock: () -> Maybe<RETURN_VALUE>)

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(...) }

inline fun <ARGS, RETURN_VALUE, USE_CASE : ObservableUseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(args: ARGS, resultBlock: () -> Observable<RETURN_VALUE>)

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(...) }

inline fun <ARGS : Any, RETURN_VALUE, USE_CASE : ObservableUseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(resultBlock: () -> Observable<RETURN_VALUE>)

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(...) }

inline fun <ARGS, RETURN_VALUE, USE_CASE : SingleUseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(args: ARGS, resultBlock: () -> Single<RETURN_VALUE>)

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(...) }

inline fun <ARGS : Any, RETURN_VALUE, USE_CASE : SingleUseCase<ARGS?, RETURN_VALUE>> USE_CASE.mockExecuteNullable(resultBlock: () -> Single<RETURN_VALUE>)

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(...) }