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

@param size number of messages.

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