コード例 #1
0
ファイル: _XDateField.java プロジェクト: personal-wu/core
  /**
   * Gets the current value.
   *
   * <p>Has <b> OK </b> status if no runtime exceptions occurred
   */
  public void _getMin() {

    boolean result = true;
    oObj.getMin();

    tRes.tested("getMin()", result);
  }
コード例 #2
0
ファイル: _XDateField.java プロジェクト: personal-wu/core
  /**
   * Sets a new value and checks if it was correctly set.
   *
   * <p>Has <b> OK </b> status if set and get values are equal. The following method tests are to be
   * completed successfully before :
   *
   * <ul>
   *   <li><code> getMin </code>
   * </ul>
   */
  public void _setMin() {

    boolean result = true;
    oObj.setMin(new Date((short) 5, (short) 2, (short) 1963));
    Date date = oObj.getMin();
    result = date.Day == 5 && date.Month == 2 && date.Year == 1963;

    tRes.tested("setMin()", result);
  }