Package org.hamcrest

Examples of org.hamcrest.Matcher


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


   * @param index the index of the widget.
   * @return a {@link SWTBotStyledText} with the specified <code>text</code> with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotStyledText styledTextInGroup(String text, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(StyledText.class), withText(text), inGroup(inGroup));
    return new SWTBotStyledText((StyledText) widget(matcher, index), matcher);
  }
View Full Code Here

   * @param index the index of the widget.
   * @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

   * @param index the index of the widget.
   * @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

   * @param index the index of the widget.
   * @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

   * @param index the index of the widget.
   * @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

   * @param index the index of the widget.
   * @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

   * @param index the index of the widget.
   * @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

   * @param index the index of the widget.
   * @return a {@link SWTBotToolbarButton} with the specified <code>mnemonicText</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotToolbarButton toolbarButton(String mnemonicText, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText));
    return new SWTBotToolbarButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @param index the index of the widget.
   * @return a {@link SWTBotToolbarButton} with the specified <code>tooltip</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotToolbarButton toolbarButtonWithTooltip(String tooltip, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip));
    return new SWTBotToolbarButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

TOP

Related Classes of org.hamcrest.Matcher

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.