Esempio n. 1
0
  @Test
  public void quickOutline() throws Exception {

    IDE.LOADER.waitClosed();
    IDE.EXPLORER.waitOpened();
    IDE.OPEN.openProject(projectName);
    IDE.LOADER.waitClosed();
    IDE.PACKAGE_EXPLORER.waitPackageExplorerOpened();

    IDE.PACKAGE_EXPLORER.waitItemInPackageExplorer(projectName);

    IDE.PACKAGE_EXPLORER.waitItemInPackageExplorer("src/main/java");
    IDE.PACKAGE_EXPLORER.openItemWithDoubleClick("src/main/java");
    IDE.PACKAGE_EXPLORER.waitItemInPackageExplorer("helloworld");
    IDE.PACKAGE_EXPLORER.openItemWithDoubleClick("helloworld");
    IDE.PACKAGE_EXPLORER.waitItemInPackageExplorer(FILE_NAME);
    IDE.PACKAGE_EXPLORER.openItemWithDoubleClick(FILE_NAME);
    IDE.CODE_ASSISTANT_JAVA.waitForJavaToolingInitialized(FILE_NAME);

    IDE.GOTOLINE.goToLine(24);
    IDE.JAVAEDITOR.typeTextIntoJavaEditor(Keys.chord(Keys.CONTROL, "o"));
    waitForQuickOutlineOpened();
    assertElementPresent("helloworld");
    assertElementPresent("GreetingController");
    assertElementPresent("handleRequest(HttpServletRequest, HttpServletResponse)");

    selectItem("GreetingController");
    waitForQuickOutlineClosed();
    IDE.STATUSBAR.waitCursorPositionAt("12 : 1");
  }