protocols/src/test/java/eu/internetofus/common/protocols/AbstractProtocolITC.java
/**
   * Create the predicate over a user message with the data from the test.
   *
   * @return the predicate for the social task user state.
   *
   * @see #app
   * @see #task
   * @see #community
   */
Create the predicate over a user message with the data from the test.
@return the predicate for the social task user state.


Create the predicate over a user message with the data from the test . @return the predicate for the social task user state .
protected Predicate<UserMessage> createSocialNotificationPredicate() {
    return msg -> {
      if (this.task != null && !this.task.id.equals(msg.taskId)) {
        return false;
      }
      return true;
    };
  }
protected Predicate < UserMessage > createSocialNotificationPredicate ( ) { return msg -> { if ( this . task != null && ! this . task . id . equals ( msg . taskId ) ) { return false ; } return true ; } ; }
Create the predicate over a user message with the data from the test.
Create the predicate over a user message with the data from the test .