Package org.netbeans.jellytools

Examples of org.netbeans.jellytools.TopComponentOperator


        assertTrue("Environment Variable SCALA_HOME=" + scalaHome + " doesn't point to an existing directory", scalaHomeDir.exists());
        assertTrue("Environment Variable SCALA_HOME=" + scalaHome + " doesn't point to a directory", scalaHomeDir.isDirectory());
        ActionNoBlock openScalaShell = new ActionNoBlock("Window|Other|Interactive Scala Shell", null);
        // TODO: If the Action Interactive Sacla Shell is missing the test will block here. Some check before this point, if it exist, would be nice.
        openScalaShell.performMenu();
        TopComponentOperator scalaConsole = new TopComponentOperator("Scala Console");
        assertTrue("Scala Console not showing", scalaConsole.isShowing());
        // TODO: Same as before, a test for existence would be nice.
        JTextPaneOperator theConsole = new JTextPaneOperator(scalaConsole);
        assertTrue("Scala Console is not Enabled", theConsole.isEnabled());
        theConsole.enterText(":quit");
        theConsole.waitComponentShowing(false);
View Full Code Here


        ProjectRootNode prn = pto.getProjectRootNode("sample-scala-maven");
        Node node = new Node(prn, "Scala Packages|sample|App.scala");
        node.select();
        node.performPopupAction("Open");
        new ActionNoBlock("Window|Action Items", null).performMenu();
        TopComponentOperator actionItems = new TopComponentOperator("Action Items");
        actionItems.makeComponentVisible();
        JTableOperator t = new JTableOperator(actionItems);
        int row = t.findCellColumn("SampleJavaError");
        assertTrue("No Error SampleJavaError in the Action Itmes found, but should be", row >= 0);
        row = t.findCellColumn("Blub");
        assertTrue("Error Blub in the Action Itmes found, but should not be", row == -1);
View Full Code Here

        Node node = new Node(prn, "Source Packages|sample|Runner.java");
        node.select();
        node.performPopupAction("Open");
        // Opening the Action Items to see if the selecte Java Class has an Error.
        new ActionNoBlock("Window|Action Items", null).performMenu();
        TopComponentOperator actionItems = new TopComponentOperator("Action Items");
        actionItems.makeComponentVisible();
        JTableOperator t = new JTableOperator(actionItems);
        int row = t.findCellColumn("Runner.java");
        // The following Assert should validate to -1, meaning there is no row containing the String Runner.java
        // At the moment this is not the case. A mixed scala-java project works, but displays erros in the ui.
        // assertTrue("No Error Runner.java in the Action Itmes found, but should be", row == -1);
View Full Code Here

TOP

Related Classes of org.netbeans.jellytools.TopComponentOperator

Copyright © 2018 www.massapicom. 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.