protocols/src/test/java/eu/internetofus/common/protocols/AbstractProtocolITC.java
/**
   * Create the predicate over a task for the current state of the test.
   *
   * @return the predicate for the task.
   *
   * @see #app
   * @see #task
   * @see #community
   */
Create the predicate over a task for the current state of the test.
@return the predicate for the task.


Create the predicate over a task for the current state of the test . @return the predicate for the task .
protected Predicate<Task> createTaskPredicate() {
    return task -> {
      if (this.app != null && !this.app.appId.equals(task.appId)) {
        return false;
      }
      if (this.task != null && !this.task.id.equals(task.id)) {
        return false;
      }
      if (this.community != null && !this.community.id.equals(task.communityId)) {
        return false;
      }
      return true;
    };
  }
protected Predicate < Task > createTaskPredicate ( ) { return task -> { if ( this . app != null && ! this . app . appId . equals ( task . appId ) ) { return false ; } if ( this . task != null && ! this . task . id . equals ( task . id ) ) { return false ; } if ( this . community != null && ! this . community . id . equals ( task . communityId ) ) { return false ; } return true ; } ; }
Create the predicate over a task for the current state of the test.
Create the predicate over a task for the current state of the test .