components/src/test/java/eu/internetofus/common/components/task_manager/TaskPredicates.java
/**
   * Return a predicate the check that the transaction of the specified position
   * satisfy the predicate.
   *
   * @param index            of the transaction.
   * @param checkTransaction predicate to satisfy by the transaction at the
   *                         specified position.
   *
   * @return the predicate to check the transaction at the specified position.
   */
Return a predicate the check that the transaction of the specified position
satisfy the predicate.

@param index            of the transaction.
@param checkTransaction predicate to satisfy by the transaction at the
specified position.

@return the predicate to check the transaction at the specified position.
Return a predicate the check that the transaction of the specified position satisfy the predicate . @param index of the transaction . @param checkTransaction predicate to satisfy by the transaction at the specified position . @return the predicate to check the transaction at the specified position .
static Predicate<Task> transactionAt(final int index, final Predicate<TaskTransaction> checkTransaction) {
    return target -> {
      return target.transactions != null && target.transactions.size() >= index
          && checkTransaction.test(target.transactions.get(index));
    };
  }
static Predicate < Task > transactionAt ( final int index , final Predicate < TaskTransaction > checkTransaction ) { return target -> { return target . transactions != null && target . transactions . size ( ) >= index && checkTransaction . test ( target . transactions . get ( index ) ) ; } ; }
Return a predicate the check that the transaction of the specified position
 satisfy the predicate.
Return a predicate the check that the transaction of the specified position satisfy the predicate .