app/helpers/api/qonto/mock/MockTransactionService.java
public static TransactionService create() {
        TransactionService transactionService = mock(TransactionService.class);

        when(transactionService.getTransaction(any(String.class))).thenAnswer(i -> {
            TransactionResponse transactionResponse = new TransactionResponse();
            transactionResponse.transactions = new ArrayList<>();
            transactionResponse.transactions.addAll(transactionList);
            return transactionResponse;
        });

        return transactionService;
    }
/**
     * Create a mock of TransactionService.
     *
     * @return The mock
     */
Create a mock of TransactionService.
@return The mock
Create a mock of TransactionService . @return The mock
public static TransactionService create() {
        TransactionService transactionService = mock(TransactionService.class);
        when(transactionService.getTransaction(any(String.class))).thenAnswer(i -> {
            TransactionResponse transactionResponse = new TransactionResponse();
            transactionResponse.transactions = new ArrayList<>();
            transactionResponse.transactions.addAll(transactionList);
            return transactionResponse;
        });
        return transactionService;
    }
public static TransactionService create ( ) { TransactionService transactionService = mock ( TransactionService . class ) ; when ( transactionService . getTransaction ( any ( String . class ) ) ) . thenAnswer ( i -> { TransactionResponse transactionResponse = new TransactionResponse ( ) ; transactionResponse . transactions = new ArrayList < > ( ) ; transactionResponse . transactions . addAll ( transactionList ) ; return transactionResponse ; } ) ; return transactionService ; }
Create a mock of TransactionService.
Create a mock of TransactionService .