コード例 #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");
  }
コード例 #2
0
ファイル: CodeOutlineJspTest.java プロジェクト: iedexmain2/qa
  private void checkClickOnTreeElements() throws Exception {
    // check variable a
    // click on 5 row need for reparse tree
    IDE.OUTLINE.selectRow(11);
    IDE.STATUSBAR.waitCursorPositionAt("23 : 1");

    // check javascript variable a
    IDE.OUTLINE.selectRow(5);
    IDE.STATUSBAR.waitCursorPositionAt("9 : 1");

    // check tag head
    IDE.OUTLINE.selectRow(2);
    IDE.STATUSBAR.waitCursorPositionAt("2 : 1");

    // check javascript javacode
    IDE.OUTLINE.selectRow(7);
    IDE.STATUSBAR.waitCursorPositionAt("13 : 1");
  }