Exemplo n.º 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> getLast </code>
   * </ul>
   */
  public void _setLast() {

    boolean result = true;
    oObj.setLast(new Date((short) 23, (short) 8, (short) 2053));
    Date date = oObj.getLast();
    result = date.Day == 23 && date.Month == 8 && date.Year == 2053;

    if (!result) {
      log.println("Set to 2053-08-23 but returned " + oObj.getLast());
    }

    tRes.tested("setLast()", result);
  }
Exemplo n.º 2
0
  /**
   * Gets the current value.
   *
   * <p>Has <b> OK </b> status if no runtime exceptions occurred
   */
  public void _getLast() {

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

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

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