Package org.fest.swing.fixture

Examples of org.fest.swing.fixture.FrameFixture.show()


        JFrame frame = new JFrame();
        frame.add(statusBar, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(400, 30);
        frame.validate();
        frameFixture.show();

        assert frameFixture.label("Population").text().equals("N/A") : "Wrong initial text for population label.";
        assert frameFixture.label("Elitism").text().equals("N/A") : "Wrong initial text for elitism label.";
        assert frameFixture.label("Generations").text().equals("N/A") : "Wrong initial text for generations label.";
        assert frameFixture.label("Time").text().equals("N/A") : "Wrong initial text for elapsed time label.";
View Full Code Here


        JFrame frame = new JFrame();
        frame.add(statusBar, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(400, 30);
        frame.validate();
        frameFixture.show();

        assert frameFixture.label("Population").text().equals("N/A") : "Wrong initial text for population label.";
        assert frameFixture.label("Elitism").text().equals("N/A") : "Wrong initial text for elitism label.";
        assert frameFixture.label("Generations").text().equals("N/A") : "Wrong initial text for generations label.";
        assert frameFixture.label("Time").text().equals("N/A") : "Wrong initial text for elapsed time label.";
View Full Code Here

        JFrame frame = new JFrame();
        frame.add(statusBar, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(400, 30);
        frame.validate();
        frameFixture.show();

        // Previous test checks two-digit field values, this test checks that single-digit
        // values and zeros are correctly padded.
        statusBar.populationUpdate(new PopulationData<Object>(new Object(), 10, 8, 2, true, 10, 1, 0, 1000));
        assert frameFixture.label("Time").text().equals("00:00:01");
View Full Code Here

        frame.add(view, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(400, 400);
        frame.validate();

        frameFixture.show();
        view.setPuzzle(TEST_PUZZLE);

        // Check a non-empty cell.
        JTableCellFixture cell1 = frameFixture.table().cell(TableCell.row(0).column(0));
        cell1.requireEditable();
View Full Code Here

        frame.add(view, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(400, 400);
        frame.validate();

        frameFixture.show();
        Sudoku sudoku = SudokuTestUtils.createSudoku(new int[][]
        {
            {1, 2, 8, 5, 4, 3, 9, 6, 7},
            {7, 6, 4, 9, 2, 8, 5, 1, 3},
            {3, 9, 5, 7, 6, 1, 2, 4, 8},
View Full Code Here

        frame.add(panel, BorderLayout.CENTER);
        FrameFixture frameFixture = new FrameFixture(robot, frame);
        frame.setSize(700, 300);
        frame.validate();

        frameFixture.show();
        frameFixture.panel("AddPolygon").slider().slideToMinimum();
        frameFixture.panel("RemovePolygon").slider().slideToMinimum();
        frameFixture.panel("MovePolygon").slider().slideToMinimum();
        frameFixture.panel("Cross-over").slider().slideToMinimum();
        frameFixture.panel("AddVertex").slider().slideToMinimum();
View Full Code Here

        application(SoapUI.class).start();
    }

    public static FrameFixture getMainWindow(Robot robot) {
        FrameFixture rootWindow = frameWithTitle(MAIN_WINDOW_TITLE).withTimeout(MAIN_WINDOW_TIMEOUT).using(robot);
        rootWindow.show();
        rootWindow.maximize();
        return rootWindow;
    }

    public static void closeApplicationWithoutSaving(FrameFixture rootWindow, Robot robot) {
View Full Code Here

            }
        });
       
        FrameFixture fixture = new FrameFixture(frame);
        Insets insets = frame.getInsets();
        fixture.show();
       
        JLabelFixture lf = fixture.label("TheLabel");
        Point pos = lf.component().getLocationOnScreen();
        Dimension size = lf.component().getSize();
       
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.