-
public final class CompletableUseCaseMockKt
-
-
Method Summary
Modifier and Type Method Description final static <ARGS extends Any, USE_CASE extends CompletableUseCase<ARGS>> UnitmockExecute(USE_CASE $self, ARGS args, Function0<Completable> resultBlock)Mock CompletableDisposablesOwner.execute method. final static <ARGS extends Any, USE_CASE extends CompletableUseCase<ARGS>> UnitmockExecute(USE_CASE $self, Function0<Completable> resultBlock)Mock CompletableDisposablesOwner.execute method with any()matcher argument used as input argument.final static <ARGS extends Any, USE_CASE extends CompletableUseCase<ARGS>> UnitmockExecuteNullable(USE_CASE $self, ARGS args, Function0<Completable> resultBlock)Mock CompletableDisposablesOwner.execute method for use cases with nullable input argument. final static <ARGS extends Any, USE_CASE extends CompletableUseCase<ARGS>> UnitmockExecuteNullable(USE_CASE $self, Function0<Completable> resultBlock)Mock CompletableDisposablesOwner.execute method for use cases with nullable input argument and any()matcher argument used as input argument.-
-
Method Detail
-
mockExecute
final static <ARGS extends Any, USE_CASE extends CompletableUseCase<ARGS>> Unit mockExecute(USE_CASE $self, ARGS args, Function0<Completable> resultBlock)
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.completewill be passed thenonCompletewill be called etc.Usage: mockCompletableUseCase.mockExecute(args = ...) { Completable.complete() }
-
mockExecute
final static <ARGS extends Any, USE_CASE extends CompletableUseCase<ARGS>> Unit mockExecute(USE_CASE $self, Function0<Completable> resultBlock)
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.completewill be passed thenonCompletewill be called etc.Usage: mockCompletableUseCase.mockExecute(args = ...) { Completable.complete() }
-
mockExecuteNullable
final static <ARGS extends Any, USE_CASE extends CompletableUseCase<ARGS>> Unit mockExecuteNullable(USE_CASE $self, ARGS args, Function0<Completable> resultBlock)
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.completewill be passed thenonCompletewill be called etc.Usage: mockCompletableUseCase.mockExecuteNullable(args = ...) { Completable.complete() }
-
mockExecuteNullable
final static <ARGS extends Any, USE_CASE extends CompletableUseCase<ARGS>> Unit mockExecuteNullable(USE_CASE $self, Function0<Completable> resultBlock)
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.completewill be passed thenonCompletewill be called etc.Usage: mockCompletableUseCase.mockExecuteNullable(args = ...) { Completable.complete() }
-
-
-
-