Beispiel #1
0
  /**
   * 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> getTime </code>
   * </ul>
   */
  public void _setDate() {
    requiredMethod("getDate()");

    boolean result = true;
    oObj.setDate(new Date((short) 1, (short) 1, (short) 1900));
    Date date = oObj.getDate();
    result = date.Day == 1 && date.Month == 1 && date.Year == 1900;

    if (!result) {
      System.out.println("getDate: " + oObj.getDate() + " , expected 1900-01-01");
    }

    tRes.tested("setDate()", result);
  }
Beispiel #2
0
  /**
   * Gets the current value.
   *
   * <p>Has <b> OK </b> status if no runtime exceptions occurred
   */
  public void _getDate() {

    boolean result = true;
    oObj.getDate();

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