components/src/test/java/eu/internetofus/common/components/task_manager/TaskTransactionPredicates.java
/**
   * Check if the passed task transaction is similar to the source one.
   *
   * @param source task transaction to be similar.
   *
   * @return the predicate to check if a task transaction is similar to another
   *         one.
   */
Check if the passed task transaction is similar to the source one.
@param source task transaction to be similar.

@return the predicate to check if a task transaction is similar to another
one.
Check if the passed task transaction is similar to the source one . @param source task transaction to be similar . @return the predicate to check if a task transaction is similar to another one .
static Predicate<TaskTransaction> similarTo(final TaskTransaction source) {
    return target -> {
      if (source.taskId != null && !source.taskId.equals(target.taskId)) {
        return false;
      }
      if (source.label != null && !source.label.equals(target.label)) {
        return false;
      }
      if (source.actioneerId != null && !source.actioneerId.equals(target.actioneerId)) {
        return false;
      }
      if (source.attributes != null && !source.attributes.equals(target.attributes)) {
        return false;
      }
      return true;
    };
  }
static Predicate < TaskTransaction > similarTo ( final TaskTransaction source ) { return target -> { if ( source . taskId != null && ! source . taskId . equals ( target . taskId ) ) { return false ; } if ( source . label != null && ! source . label . equals ( target . label ) ) { return false ; } if ( source . actioneerId != null && ! source . actioneerId . equals ( target . actioneerId ) ) { return false ; } if ( source . attributes != null && ! source . attributes . equals ( target . attributes ) ) { return false ; } return true ; } ; }
Check if the passed task transaction is similar to the source one.
Check if the passed task transaction is similar to the source one .