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

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


        repositoryFile);
    shareProjects(repositoryFile);
    assertProjectExistence(PROJ1, true);
    refreshAndWait();
    assertHasRepo(repositoryFile);
    SWTBotTree tree = getOrOpenView().bot().tree();
    tree.getAllItems()[0].select();
    ContextMenuHelper.clickContextMenu(tree, myUtil
        .getPluginLocalizedValue(DELETE_REPOSITORY_CONTEXT_MENU_LABEL));
    SWTBotShell shell = bot.shell(UIText.DeleteRepositoryConfirmDialog_DeleteRepositoryWindowTitle);
    shell.activate();
    shell.bot()
View Full Code Here


    assertNotNull(subRepo);
    subRepo.close();

    refreshAndWait();

    SWTBotTree tree = getOrOpenView().bot().tree();
    tree.getAllItems()[0]
        .expand()
        .expandNode(
            UIText.RepositoriesViewLabelProvider_SubmodulesNodeText)
        .getItems()[0].select();
    ContextMenuHelper.clickContextMenu(tree, myUtil
View Full Code Here

   */
  @Test
  public void testExpandRemotes() throws Exception {
    removeRemotesConfig(repositoryFile);
    refreshAndWait();
    SWTBotTree tree = getOrOpenView().bot().tree();
    SWTBotTreeItem remotesItem = myRepoViewUtil.getRemotesItem(tree,
        repositoryFile).expand();
    assertEquals("Wrong number of remotes", 0, remotesItem.getNodes()
        .size());
    StoredConfig cfg = lookupRepository(repositoryFile).getConfig();
View Full Code Here

   */
  @Test
  public void testConfigureRemote() throws Exception {
    removeRemotesConfig(repositoryFile);
    refreshAndWait();
    SWTBotTree tree = getOrOpenView().bot().tree();
    SWTBotTreeItem remotesItem = myRepoViewUtil.getRemotesItem(tree,
        repositoryFile).expand();

    remotesItem = myRepoViewUtil.getRemotesItem(tree, repositoryFile)
        .expand();
View Full Code Here

    assertEquals("Wrong number of children", 1, localItem.getNodes().size());
  }

  @Test
  public void testClonedRepository() throws Exception {
    SWTBotTree tree = getOrOpenView().bot().tree();

    SWTBotTreeItem item = myRepoViewUtil.getLocalBranchesItem(tree,
        clonedRepositoryFile).expand();

    List<String> children = item.getNodes();
View Full Code Here

    Repository repo = lookupRepository(clonedRepositoryFile);
    BranchOperation bop = new BranchOperation(repo, "refs/heads/master");
    bop.execute(null);

    assertEquals("master", repo.getBranch());
    SWTBotTree tree = getOrOpenView().bot().tree();

    SWTBotTreeItem item = myRepoViewUtil.getLocalBranchesItem(tree,
        clonedRepositoryFile).expand();

    touchAndSubmit(null);
View Full Code Here

    refreshAndWait();
  }

  @Test
  public void testRenameBranch() throws Exception {
    SWTBotTree tree = getOrOpenView().bot().tree();

    SWTBotTreeItem item = myRepoViewUtil.getLocalBranchesItem(tree,
        clonedRepositoryFile).expand();

    item.getNode("master").select();
View Full Code Here

    assertEquals("master", item.getNode(0).select().getText());
  }

  @Test
  public void testMergeOnRepo() throws Exception {
    SWTBotTree tree = getOrOpenView().bot().tree();

    myRepoViewUtil.getRootItem(tree, clonedRepositoryFile).select();

    ContextMenuHelper.clickContextMenu(tree, myUtil
        .getPluginLocalizedValue("RepoViewMerge.label"));
View Full Code Here

    revWalk = new RevWalk(repository);
  }

  @Test
  public void testCreateTags() throws Exception {
    SWTBotTree tree = getOrOpenView().bot().tree();
    int initialCount = myRepoViewUtil.getTagsItem(tree, repositoryFile)
        .expand().rowCount();

    String initialObjid = getObjectIdOfCommit();
    createTag("FirstTag", "The first tag");
View Full Code Here

        .equals(getCommitIdOfTag("SecondTag")));
  }

  @Test
  public void testDeleteTag() throws Exception {
    SWTBotTree tree = getOrOpenView().bot().tree();
    int initialCount = myRepoViewUtil.getTagsItem(tree, repositoryFile)
        .expand().rowCount();

    createTag("Delete1", "The first tag");
    refreshAndWait();
View Full Code Here

TOP

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

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.