Package org.loadui.testfx.exceptions

Examples of org.loadui.testfx.exceptions.NoNodesFoundException


     * @return Die TableView, sofern sie anhand des Selektors gefunden wurde.
     */
    static TableView<?> getTableView(String tableSelector) {
        Node node = find(tableSelector);
        if (!(node instanceof TableView)) {
            throw new NoNodesFoundException(tableSelector + " selected " + node +
                " which is not a TableView!");
        }
        return (TableView<?>) node;
    }
View Full Code Here


    }

    public static void clearTextIn(String textInputQuery) {
        Node node = find(textInputQuery);
        if (!(node instanceof TextInputControl)) {
            throw new NoNodesFoundException(textInputQuery + " selected " + node +
                " which is not a TextInputControl!");
        }

        TextInputControl textControl = (TextInputControl) node;
        if (textControl.getLength() == 0)
View Full Code Here

    }

    static ListView<?> getListView(String listSelector) {
        Node node = find(listSelector);
        if (!(node instanceof ListView)) {
            throw new NoNodesFoundException(listSelector + " selected " + node +
                " which is not a ListView!");
        }
        return (ListView<?>) node;
    }
View Full Code Here

    }

    private void assertNodesFound(Set<Node> resultNodes, String errorMessage) {
        // TODO: Save screenshot on exception.
        if (resultNodes.isEmpty()) {
            throw new NoNodesFoundException(errorMessage);
        }
    }
View Full Code Here

TOP

Related Classes of org.loadui.testfx.exceptions.NoNodesFoundException

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.