components/src/test/java/eu/internetofus/common/components/task_manager/TaskPredicates.java
/**
   * Return a predicate the check that the task has the specified number of
   * transactions.
   *
   * @param size number of transactions.
   *
   * @return the predicate to check the transaction size.
   */
Return a predicate the check that the task has the specified number of
transactions.

@param size number of transactions.

@return the predicate to check the transaction size.
Return a predicate the check that the task has the specified number of transactions . @param size number of transactions . @return the predicate to check the transaction size .
static Predicate<Task> transactionSizeIs(final int size) {
    return target -> {
      return target.transactions != null && target.transactions.size() == size;
    };
  }
static Predicate < Task > transactionSizeIs ( final int size ) { return target -> { return target . transactions != null && target . transactions . size ( ) == size ; } ; }
Return a predicate the check that the task has the specified number of
 transactions.
Return a predicate the check that the task has the specified number of transactions .