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

@return the predicate to do this match.
Check that the state has the specified user . @param user identifier to match for the state . @return the predicate to do this match .
static Predicate<State> userIs(final String user) {
    return state -> {
      return state.userId.equals(user);
    };
  }
static Predicate < State > userIs ( final String user ) { return state -> { return state . userId . equals ( user ) ; } ; }
Check that the state has the specified user.
Check that the state has the specified user .