Package org.hamcrest

Examples of org.hamcrest.Matcher


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


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

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

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

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

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

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

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

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

   * @param index the index of the widget.
   * @return a {@link SWTBotText} with the specified <code>tooltip</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotText textWithTooltip(String tooltip, int index) {
    Matcher matcher = allOf(widgetOfType(Text.class), withTooltip(tooltip));
    return new SWTBotText((Text) 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.