Пример #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> getFirst </code>
   * </ul>
   */
  public void _setFirst() {

    boolean result = true;
    oObj.setFirst(new Date((short) 7, (short) 12, (short) 1972));
    Date date = oObj.getFirst();
    result = date.Day == 7 && date.Month == 12 && date.Year == 1972;

    if (!result) {
      log.println("Set to " + 5118 + " but returned " + oObj.getFirst());
    }

    tRes.tested("setFirst()", result);
  }
Пример #2
0
  /**
   * Gets the current value.
   *
   * <p>Has <b> OK </b> status if no runtime exceptions occurred
   */
  public void _getFirst() {

    boolean result = true;
    com.sun.star.util.Date val = oObj.getFirst();

    log.println("getFirst() = " + val);

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