Examples of SWTBotImageHyperlink


Examples of org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotImageHyperlink imageHyperlink(String mnemonicText, int index) {
    Matcher matcher = allOf(widgetOfType(ImageHyperlink.class), withMnemonic(mnemonicText));
    return new SWTBotImageHyperlink((ImageHyperlink) widget(matcher, index), matcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotImageHyperlink imageHyperlinkWithId(String key, String value, int index) {
    Matcher matcher = allOf(widgetOfType(ImageHyperlink.class), withId(key, value));
    return new SWTBotImageHyperlink((ImageHyperlink) widget(matcher, index), matcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotImageHyperlink imageHyperlinkWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(ImageHyperlink.class), withId(value));
    return new SWTBotImageHyperlink((ImageHyperlink) widget(matcher, index), matcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotImageHyperlink imageHyperlinkInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ImageHyperlink.class), inGroup(inGroup));
    return new SWTBotImageHyperlink((ImageHyperlink) widget(matcher, index), matcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotImageHyperlink imageHyperlink(int index) {
    Matcher matcher = allOf(widgetOfType(ImageHyperlink.class));
    return new SWTBotImageHyperlink((ImageHyperlink) widget(matcher, index), matcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotImageHyperlink imageHyperlinkInGroup(String mnemonicText, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ImageHyperlink.class), withMnemonic(mnemonicText), inGroup(inGroup));
    return new SWTBotImageHyperlink((ImageHyperlink) widget(matcher, index), matcher);
  }
View Full Code Here

Examples of org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

public class SWTBotImageHyperlinkTest extends AbstractSWTBotFormsTest {

  @Test
  public void findImageHyperlinkWithNoImage() throws Exception {
    String text = "Image link with no image";
    SWTBotImageHyperlink link = bot.imageHyperlink(text);
    assertNotNull(link);
    assertEquals(text, link.getText());
    assertEquals(ImageHyperlink.class, link.widget.getClass());
  }
View Full Code Here

Examples of org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

  }
 
  @Test
  public void canFindImageHyperlinkWithNoImageByRegex() throws Exception {
    String text = "link with no";
    SWTBotImageHyperlink link = new SWTBotImageHyperlink((ImageHyperlink) bot.widget(withRegex(text)));

    assertNotNull(link);
    assertEquals("Image link with no image", link.getText());
    assertEquals(ImageHyperlink.class, link.widget.getClass());
  }
View Full Code Here

Examples of org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

 
 
  @Test
  public void findImageHyperlinkWithImage() throws Exception {
    String text = "Link with image and text";
    SWTBotImageHyperlink link = bot.imageHyperlink(text);
    assertNotNull(link);
    assertEquals(text, link.getText());
    assertEquals(ImageHyperlink.class, link.widget.getClass());
  }
View Full Code Here

Examples of org.eclipse.swtbot.forms.finder.widgets.SWTBotImageHyperlink

  }
 
  @Test
  public void canFindImageHyperlinkWithImageByRegex() throws Exception {
    String text = "with image";
    SWTBotImageHyperlink link = new SWTBotImageHyperlink((ImageHyperlink) bot.widget(withRegex(text)));

    assertNotNull(link);
    assertEquals("Link with image and text", link.getText());
    assertEquals(ImageHyperlink.class, link.widget.getClass());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.