Package 

Class UseCaseKt

    • Method Summary

      Modifier and Type Method Description
      final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends UseCase<ARGS, RETURN_VALUE>> Unit mockExecute(USE_CASE $self, ARGS args, Function0<RETURN_VALUE> returnBlock) Mock CoroutineScopeOwner.execute method.
      final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends UseCase<ARGS, RETURN_VALUE>> Unit mockExecute(USE_CASE $self, Function0<RETURN_VALUE> returnBlock) Mock CoroutineScopeOwner.execute method with any() matcher argument used as input argument.
      final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends UseCase<ARGS, RETURN_VALUE>> Unit mockExecuteNullable(USE_CASE $self, ARGS args, Function0<RETURN_VALUE> returnBlock) Mock CoroutineScopeOwner.execute method for use cases with nullable input argument.
      final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends UseCase<ARGS, RETURN_VALUE>> Unit mockExecuteNullable(USE_CASE $self, Function0<RETURN_VALUE> returnBlock) Mock CoroutineScopeOwner.execute method for use cases with nullable input argument and any() matcher argument used as input argument.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • mockExecute

         final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends UseCase<ARGS, RETURN_VALUE>> Unit mockExecute(USE_CASE $self, ARGS args, Function0<RETURN_VALUE> returnBlock)

        Mock CoroutineScopeOwner.execute method.

        When the execute method will be called then the argument passed in returnBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called.

        Usage: mockUseCase.mockExecute(args = ...) { ... }

      • mockExecute

         final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends UseCase<ARGS, RETURN_VALUE>> Unit mockExecute(USE_CASE $self, Function0<RETURN_VALUE> returnBlock)

        Mock CoroutineScopeOwner.execute method with any() matcher argument used as input argument.

        When the execute method will be called then the argument passed in returnBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called.

        Usage: mockUseCase.mockExecute { ... }

      • mockExecuteNullable

         final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends UseCase<ARGS, RETURN_VALUE>> Unit mockExecuteNullable(USE_CASE $self, ARGS args, Function0<RETURN_VALUE> returnBlock)

        Mock CoroutineScopeOwner.execute method for use cases with nullable input argument.

        When the execute method will be called then the argument passed in returnBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called.

        Usage: mockUseCase.mockExecute(args = ...) { ... }

      • mockExecuteNullable

         final static <ARGS extends Any, RETURN_VALUE extends Any, USE_CASE extends UseCase<ARGS, RETURN_VALUE>> Unit mockExecuteNullable(USE_CASE $self, Function0<RETURN_VALUE> returnBlock)

        Mock CoroutineScopeOwner.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 returnBlock will be used as a result of mocked use case and corresponding methods for the given use case will be called.

        Usage: mockUseCase.mockExecute { ... }