components/src/test/java/eu/internetofus/common/components/interaction_protocol_engine/InteractionPredicates.java
/**
   * Check that the interaction has the specified receiver.
   *
   * @param receiver identifier to match for the interaction.
   *
   * @return the predicate to do this match.
   */
Check that the interaction has the specified receiver.
@param receiver identifier to match for the interaction.

@return the predicate to do this match.
Check that the interaction has the specified receiver . @param receiver identifier to match for the interaction . @return the predicate to do this match .
static Predicate<Interaction> receiverIs(final String receiver) {
    return interaction -> {
      return interaction.receiverId.equals(receiver);
    };
  }
static Predicate < Interaction > receiverIs ( final String receiver ) { return interaction -> { return interaction . receiverId . equals ( receiver ) ; } ; }
Check that the interaction has the specified receiver.
Check that the interaction has the specified receiver .