Package org.eclipse.swtbot.swt.finder

Examples of org.eclipse.swtbot.swt.finder.SWTBot


    // when
    commit(PROJ1);

    // then - synchronize view should be empty
    SWTBot viewBot = bot.viewByTitle("Synchronize").bot();
    @SuppressWarnings("unchecked")
    Matcher matcher = allOf(widgetOfType(Label.class),
        withRegex("No changes in .*"));

    @SuppressWarnings("unchecked")
    SWTBotLabel l = new SWTBotLabel((Label) viewBot.widget(matcher));
    assertNotNull(l);
  }
View Full Code Here


  public static PushBranchWizardTester forBranchName(String branchName) {
    SWTWorkbenchBot bot = new SWTWorkbenchBot();
    String title = MessageFormat.format(
        UIText.PushBranchWizard_WindowTitle, branchName);
    SWTBot wizard = bot.shell(title).bot();
    return new PushBranchWizardTester(wizard);
  }
View Full Code Here

        + remoteName + "', items were: " + Arrays.toString(items));
  }

  public void selectNewRemoteOnBranchPage(String remoteName, String uri) {
    wizard.button(UIText.PushBranchPage_NewRemoteButton).click();
    SWTBot addRemoteWizard = wizard.shell(UIText.AddRemoteWizard_Title)
        .bot();
    setRemoteNameAndUri(remoteName, uri, addRemoteWizard);
    addRemoteWizard.button(IDialogConstants.FINISH_LABEL).click();
  }
View Full Code Here

    });
    assertEquals(1, commit[0].getParentCount());

    ContextMenuHelper.clickContextMenu(table,
        UIText.GitHistoryPage_revertMenuItem);
    SWTBot dialog = bot.shell(UIText.RevertFailureDialog_Title).bot();
    assertEquals(1, dialog.tree().rowCount());
    assertEquals(1, dialog.tree().getAllItems()[0].rowCount());
    assertTrue(dialog.tree().getAllItems()[0].getItems()[0].getText()
        .startsWith(FILE1));
  }
View Full Code Here

    SWTBotTable commitsTable = getHistoryViewTable(PROJ1);
    assertEquals(commitCount + 1, commitsTable.rowCount());
    commitsTable.select(0);

    SWTBot viewBot = getHistoryViewBot();
    SWTBotTable fileDiffTable = viewBot.table(1);
    assertEquals(1, fileDiffTable.rowCount());

    fileDiffTable.select(0);
    assertFalse(fileDiffTable.contextMenu(
        UIText.CommitFileDiffViewer_OpenInEditorMenuLabel).isEnabled());
View Full Code Here

    // when
    launchSynchronization(HEAD, R_HEADS + MASTER, false);

    // then
    SWTBot viewBot = bot.viewByTitle("Synchronize").bot();
    @SuppressWarnings("unchecked")
    Matcher matcher = allOf(widgetOfType(Label.class),
        withRegex("No changes in .*"));

    @SuppressWarnings("unchecked")
    SWTBotLabel l = new SWTBotLabel((Label) viewBot.widget(matcher));
    assertNotNull(l);
  }
View Full Code Here

    // when
    commit(PROJ1);

    // then - synchronize view should be empty
    SWTBot viewBot = bot.viewByTitle("Synchronize").bot();
    @SuppressWarnings("unchecked")
    Matcher matcher = allOf(widgetOfType(Label.class),
        withRegex("No changes in .*"));

    @SuppressWarnings("unchecked")
    SWTBotLabel l = new SWTBotLabel((Label) viewBot.widget(matcher));
    assertNotNull(l);
  }
View Full Code Here

    return forShell();
  }

  public static PushTagsWizardTester forShell() {
    SWTWorkbenchBot bot = new SWTWorkbenchBot();
    SWTBot wizard = bot.shell(UIText.PushTagsWizard_WindowTitle).bot();
    return new PushTagsWizardTester(wizard);
  }
View Full Code Here

    assertNull( page.getErrorMessage() );
    assertTrue( page.isValid() );
  }

  private SWTBotCheckBox getProjectSpecificCheckbox() {
    return new SWTBot( shell ).checkBox();
  }
View Full Code Here

  private SWTBotCheckBox getProjectSpecificCheckbox() {
    return new SWTBot( shell ).checkBox();
  }

  private SWTBotStyledText getConfigText() {
    return new SWTBot( shell ).styledText();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.SWTBot

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.