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

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem.expand()


  @Test
  public void testCreateCheckoutDeleteLocalBranch() throws Exception {
    final SWTBotView view = getOrOpenView();
    SWTBotTreeItem localItem = myRepoViewUtil.getLocalBranchesItem(view
        .bot().tree(), repositoryFile);
    localItem.expand();
    assertEquals("Wrong number of children", 1, localItem.getNodes().size());

    assertEquals("master", localItem.getNodes().get(0));
    localItem.getNode(0).select();
View Full Code Here


    createPage.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();

    localItem = myRepoViewUtil.getLocalBranchesItem(view.bot().tree(),
        repositoryFile);
    localItem.expand();
    assertEquals("Wrong number of children", 2, localItem.getNodes().size());

    localItem.getNode(0).select();
    assertCheckoutNotAvailable(view);
    localItem.getNode(1).select();
View Full Code Here

    ContextMenuHelper.clickContextMenuSync(view.bot().tree(), myUtil
        .getPluginLocalizedValue("RepoViewDeleteBranch.label"));
    refreshAndWait();
    localItem = myRepoViewUtil.getLocalBranchesItem(view.bot().tree(),
        repositoryFile);
    localItem.expand();
    assertEquals("Wrong number of children", 1, localItem.getNodes().size());
  }

  private void assertCheckoutNotAvailable(final SWTBotView view) {
    assertFalse("Checkout context menu item should not exist",
View Full Code Here

  @Test
  public void testCreateDeleteLocalBranchWithUnmerged() throws Exception {
    final SWTBotView view = getOrOpenView();
    SWTBotTreeItem localItem = myRepoViewUtil.getLocalBranchesItem(view
        .bot().tree(), repositoryFile);
    localItem.expand();
    assertEquals("Wrong number of children", 1, localItem.getNodes().size());

    assertEquals("master", localItem.getNodes().get(0));
    localItem.getNode(0).select();
View Full Code Here

    TestUtil.joinJobs(JobFamilies.CHECKOUT);
    refreshAndWait();

    localItem = myRepoViewUtil.getLocalBranchesItem(view.bot().tree(),
        repositoryFile);
    localItem.expand();
    assertEquals("Wrong number of children", 2, localItem.getNodes().size());

    touchAndSubmit("Some more changes");

    localItem.getNode(1).select();
View Full Code Here

    confirmPopup.activate();
    confirmPopup.bot().button(IDialogConstants.OK_LABEL).click();
    refreshAndWait();
    localItem = myRepoViewUtil.getLocalBranchesItem(view.bot().tree(),
        repositoryFile);
    localItem.expand();
    assertEquals("Wrong number of children", 1, localItem.getNodes().size());
  }

  @Test
  public void testClonedRepository() throws Exception {
View Full Code Here

    SWTBotView view = getOrOpenView();

    SWTBotTreeItem localItem = myRepoViewUtil.getLocalBranchesItem(view
        .bot().tree(), clonedRepositoryFile);
    localItem.expand().getNode("configTest").select();

    ContextMenuHelper.clickContextMenuSync(view.bot().tree(),
        myUtil.getPluginLocalizedValue("ShowIn"),
        "Properties");
View Full Code Here

    String nodeText = selection.get(0).get(0);
    assertTrue("Node text should contain project name", projectItem
        .getText().startsWith(nodeText));

    view.show();
    projectItem.expand().getNode(FOLDER).expand().getNode(FILE1).select();

    ContextMenuHelper.clickContextMenuSync(explorerTree, "Show In",
        viewName);

    selection = viewerTree.selection();
View Full Code Here

    SWTBotTreeItem explorerItem;
    SWTBotTreeItem projectItem = getProjectItem(projectExplorerTree, path[0]);
    if (path.length == 1)
      explorerItem = projectItem;
    else if (path.length == 2)
      explorerItem = TestUtil.getChildNode(projectItem.expand(), path[1]);
    else {
      SWTBotTreeItem childItem = TestUtil.getChildNode(
          projectItem.expand(), path[1]);
      explorerItem = TestUtil.getChildNode(childItem.expand(), path[2]);
    }
View Full Code Here

    else if (path.length == 2)
      explorerItem = TestUtil.getChildNode(projectItem.expand(), path[1]);
    else {
      SWTBotTreeItem childItem = TestUtil.getChildNode(
          projectItem.expand(), path[1]);
      explorerItem = TestUtil.getChildNode(childItem.expand(), path[2]);
    }
    explorerItem.select();
    ContextMenuHelper.clickContextMenuSync(projectExplorerTree, "Team",
        "Show in History");
    // join GenerateHistoryJob
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.