コード例 #1
0
  /**
   * Returns the AlertEquals instance with text set.
   *
   * <p>For equality with this text the condition will wait.
   *
   * @param message it should wait for equality
   * @return the AlertEquals object with preset text
   */
  public AlertEquals message(String message) {
    Validate.notNull(message);

    AlertEquals copy = copy();
    copy.message = message;

    return copy;
  }
コード例 #2
0
 /**
  * Returns the exact copy of this ElementPresent object.
  *
  * @return the copy of this AlertEquals object
  */
 private AlertEquals copy() {
   AlertEquals copy = new AlertEquals();
   copy.message = message;
   return copy;
 }