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

@return the predicate to check the last transaction.
Return a predicate the check that the last transaction satisfy the predicate . @param checkTransaction predicate to satisfy by the last transaction . @return the predicate to check the last transaction .
static Predicate<Task> lastTransactionIs(final Predicate<TaskTransaction> checkTransaction) {
    return target -> {
      return target.transactions != null && target.transactions.size() > 0
          && checkTransaction.test(target.transactions.get(target.transactions.size() - 1));
    };
  }
static Predicate < Task > lastTransactionIs ( final Predicate < TaskTransaction > checkTransaction ) { return target -> { return target . transactions != null && target . transactions . size ( ) > 0 && checkTransaction . test ( target . transactions . get ( target . transactions . size ( ) - 1 ) ) ; } ; }
Return a predicate the check that the last transaction satisfy the predicate.
Return a predicate the check that the last transaction satisfy the predicate .