Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotDateTime


    Format format = new SimpleDateFormat(CalendarAction.DATE_FORMAT);
    Calendar date = new GregorianCalendar(2100, Calendar.JANUARY, 1);
    CalendarAction action = CalendarAction.create(manager, shell, date, null,
        null);

    SWTBotDateTime bot = new SWTBotDateTime(action.getDateTime());
    assertEquals(format.format(date.getTime()), format.format(bot.getDate()));

    date = new GregorianCalendar(2012, Calendar.DECEMBER, 21);
    bot.setDate(date.getTime());
    assertEquals(format.format(date.getTime()), action.getText());

    Calendar cal = action.getCalendar();
    assertEquals(format.format(date.getTime()), format.format(cal.getTime()));
  }
View Full Code Here


   * @return a {@link SWTBotDateTime} with the specified <code>label</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotDateTime dateTimeWithLabel(String label, int index) {
    Matcher matcher = allOf(widgetOfType(DateTime.class), withLabel(label));
    return new SWTBotDateTime((DateTime) widget(matcher, index), matcher);
  }
View Full Code Here

   * @return a {@link SWTBotDateTime} with the specified <code>key/value</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotDateTime dateTimeWithId(String key, String value, int index) {
    Matcher matcher = allOf(widgetOfType(DateTime.class), withId(key, value));
    return new SWTBotDateTime((DateTime) widget(matcher, index), matcher);
  }
View Full Code Here

   * @return a {@link SWTBotDateTime} with the specified <code>value</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotDateTime dateTimeWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(DateTime.class), withId(value));
    return new SWTBotDateTime((DateTime) widget(matcher, index), matcher);
  }
View Full Code Here

   * @return a {@link SWTBotDateTime} with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotDateTime dateTimeInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(DateTime.class), inGroup(inGroup));
    return new SWTBotDateTime((DateTime) widget(matcher, index), matcher);
  }
View Full Code Here

   * @return a {@link SWTBotDateTime} with the specified <code>none</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotDateTime dateTime(int index) {
    Matcher matcher = allOf(widgetOfType(DateTime.class));
    return new SWTBotDateTime((DateTime) widget(matcher, index), matcher);
  }
View Full Code Here

   * @return a {@link SWTBotDateTime} with the specified <code>label</code> with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotDateTime dateTimeWithLabelInGroup(String label, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(DateTime.class), withLabel(label), inGroup(inGroup));
    return new SWTBotDateTime((DateTime) widget(matcher, index), matcher);
  }
View Full Code Here

   * @return a {@link SWTBotDateTime} with the specified <code>label</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotDateTime dateTimeWithLabel(String label, int index) {
    Matcher matcher = allOf(widgetOfType(DateTime.class), withLabel(label));
    return new SWTBotDateTime((DateTime) widget(matcher, index), matcher);
  }
View Full Code Here

   * @return a {@link SWTBotDateTime} with the specified <code>key/value</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotDateTime dateTimeWithId(String key, String value, int index) {
    Matcher matcher = allOf(widgetOfType(DateTime.class), withId(key, value));
    return new SWTBotDateTime((DateTime) widget(matcher, index), matcher);
  }
View Full Code Here

   * @return a {@link SWTBotDateTime} with the specified <code>value</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotDateTime dateTimeWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(DateTime.class), withId(value));
    return new SWTBotDateTime((DateTime) widget(matcher, index), matcher);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.widgets.SWTBotDateTime

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.