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

@return the predicate for the task transaction status.


Create the task transaction status predicate over the current state of the test . @return the predicate for the task transaction status .
protected Predicate<TaskTransactionStatusBody> createIncentiveServerTaskTransactionStatusPredicate() {
    return state -> {
      if (this.app != null && !this.app.appId.equals(state.app_id)) {
        return false;
      }
      if (this.community != null && !this.community.id.equals(state.community_id)) {
        return false;
      }
      if (this.taskType != null && !this.taskType.id.equals(state.taskTypeId)) {
        return false;
      }
      if (this.task != null && !this.task.id.equals(state.taskId)) {
        return false;
      }
      return true;
    };
  }
protected Predicate < TaskTransactionStatusBody > createIncentiveServerTaskTransactionStatusPredicate ( ) { return state -> { if ( this . app != null && ! this . app . appId . equals ( state . app_id ) ) { return false ; } if ( this . community != null && ! this . community . id . equals ( state . community_id ) ) { return false ; } if ( this . taskType != null && ! this . taskType . id . equals ( state . taskTypeId ) ) { return false ; } if ( this . task != null && ! this . task . id . equals ( state . taskId ) ) { return false ; } return true ; } ; }
Create the task transaction status predicate over the current state of the
 test.
Create the task transaction status predicate over the current state of the test .