Examples of tree()


Examples of org.eclipse.swtbot.swt.finder.SWTBot.tree()

  }

  private void executeJUnit4TestSuiteInUi(String projectName,
      String packageName) {
    SWTBot localBot = bot.viewByTitle("Package Explorer").bot();
    localBot.tree().expandNode(projectName + "Test", "src", packageName)
        .select("AllTests.java");
    SWTBotMenu menu = bot.menu("Run").menu("Run As");
    try {
      getSubMenuItemContainingTest(menu, "JUnit Test");
    } catch (WidgetNotFoundException wnfe) {
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.SWTBot.tree()

    TestUtil.showExplorerView();
  }

  protected void changeFilesInProject() throws Exception {
    SWTBot packageExlBot = bot.viewByTitle("Package Explorer").bot();
    SWTBotTreeItem coreTreeItem = selectProject(PROJ1, packageExlBot.tree());
    SWTBotTreeItem rootNode = coreTreeItem.expand().getNode(0)
        .expand().select();
    rootNode.getNode(0).select().doubleClick();

    SWTBotEditor corePomEditor = bot.editorByTitle(FILE1);
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.SWTBot.tree()

    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

Examples of org.eclipse.swtbot.swt.finder.SWTBot.tree()

    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));
  }

  @Test
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.SWTBot.tree()

    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));
  }

  @Test
  public void testOpenOfDeletedFile() throws Exception {
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.