-
public final class ObservableUseCaseMockKt
-
-
Method Summary
Modifier and Type Method Description final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends ObservableUseCase<ARGS, RETURN_VALUE>> UnitmockExecute(USE_CASE $self, ARGS args, Function0<Observable<RETURN_VALUE>> resultBlock)Mock ObservableDisposablesOwner.execute method. final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends ObservableUseCase<ARGS, RETURN_VALUE>> UnitmockExecute(USE_CASE $self, Function0<Observable<RETURN_VALUE>> resultBlock)Mock ObservableDisposablesOwner.execute method with any()matcher argument used as input argument.final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends ObservableUseCase<ARGS, RETURN_VALUE>> UnitmockExecuteNullable(USE_CASE $self, ARGS args, Function0<Observable<RETURN_VALUE>> resultBlock)Mock ObservableDisposablesOwner.execute method for use cases with nullable input argumentWhen 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. final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends ObservableUseCase<ARGS, RETURN_VALUE>> UnitmockExecuteNullable(USE_CASE $self, Function0<Observable<RETURN_VALUE>> resultBlock)Mock ObservableDisposablesOwner.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, RETURN_VALUE extends Any, USE_CASE extends ObservableUseCase<ARGS, RETURN_VALUE>> Unit mockExecute(USE_CASE $self, ARGS args, Function0<Observable<RETURN_VALUE>> resultBlock)
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.justwill be passed thenonNextwill be called etc.Usage: mockObservableUseCase.mockExecute(args = ...) { Observable.just(...) }
-
mockExecute
final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends ObservableUseCase<ARGS, RETURN_VALUE>> Unit mockExecute(USE_CASE $self, Function0<Observable<RETURN_VALUE>> resultBlock)
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.justwill be passed thenonNextwill be called etc.Usage: mockObservableUseCase.mockExecute(args = ...) { Observable.just(...) }
-
mockExecuteNullable
final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends ObservableUseCase<ARGS, RETURN_VALUE>> Unit mockExecuteNullable(USE_CASE $self, ARGS args, Function0<Observable<RETURN_VALUE>> resultBlock)
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.justwill be passed thenonNextwill be called etc.Usage: mockObservableUseCase.mockExecuteNullable(args = ...) { Observable.just(...) }
-
mockExecuteNullable
final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends ObservableUseCase<ARGS, RETURN_VALUE>> Unit mockExecuteNullable(USE_CASE $self, Function0<Observable<RETURN_VALUE>> resultBlock)
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.justwill be passed thenonNextwill be called etc.Usage: mockObservableUseCase.mockExecuteNullable(args = ...) { Observable.just(...) }
-
-
-
-