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

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView.bot()


  }

  @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));
View Full Code Here


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

    assertEquals("master", localItem.getNodes().get(0));
    localItem.getNode(0).select();

    ContextMenuHelper.clickContextMenu(view.bot().tree(), myUtil
        .getPluginLocalizedValue("CreateBranchCommand"));

    SWTBotShell createPage = bot
        .shell(UIText.CreateBranchWizard_NewBranchTitle);
    createPage.activate();
View Full Code Here

    createPage.bot().checkBox(UIText.CreateBranchPage_CheckoutButton)
        .deselect();
    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();
View Full Code Here

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

    localItem.getNode(0).select();
    assertCheckoutNotAvailable(view);
    localItem.getNode(1).select();
    ContextMenuHelper.clickContextMenuSync(view.bot().tree(), myUtil
        .getPluginLocalizedValue("CheckoutCommand"));
    TestUtil.joinJobs(JobFamilies.CHECKOUT);

    assertCheckoutNotAvailable(view);
View Full Code Here

    TestUtil.joinJobs(JobFamilies.CHECKOUT);

    assertCheckoutNotAvailable(view);

    localItem.getNode(0).select();
    ContextMenuHelper.clickContextMenuSync(view.bot().tree(), myUtil
        .getPluginLocalizedValue("CheckoutCommand"));
    TestUtil.joinJobs(JobFamilies.CHECKOUT);
    localItem.getNode(1).select();
    refreshAndWait();
    ContextMenuHelper.clickContextMenuSync(view.bot().tree(), myUtil
View Full Code Here

    ContextMenuHelper.clickContextMenuSync(view.bot().tree(), myUtil
        .getPluginLocalizedValue("CheckoutCommand"));
    TestUtil.joinJobs(JobFamilies.CHECKOUT);
    localItem.getNode(1).select();
    refreshAndWait();
    ContextMenuHelper.clickContextMenuSync(view.bot().tree(), myUtil
        .getPluginLocalizedValue("RepoViewDeleteBranch.label"));
    refreshAndWait();
    localItem = myRepoViewUtil.getLocalBranchesItem(view.bot().tree(),
        repositoryFile);
    localItem.expand();
View Full Code Here

    localItem.getNode(1).select();
    refreshAndWait();
    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());
  }
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));
View Full Code Here

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

    assertEquals("master", localItem.getNodes().get(0));
    localItem.getNode(0).select();

    ContextMenuHelper.clickContextMenu(view.bot().tree(), myUtil
        .getPluginLocalizedValue("CreateBranchCommand"));

    SWTBotShell createPage = bot
        .shell(UIText.CreateBranchWizard_NewBranchTitle);
    createPage.activate();
View Full Code Here

        .select();
    createPage.bot().button(IDialogConstants.FINISH_LABEL).click();
    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");
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.