Package org.fest.swing.fixture

Examples of org.fest.swing.fixture.FrameFixture


        jcpApplet = new JChemPaintEditorApplet();
        Map<String, String> parameters = new HashMap<String, String>();
        viewer = AppletLauncher.applet(jcpApplet)
            .withParameters(parameters)
            .start();
        applet = new FrameFixture(viewer);
        applet.show();
        JPanelFixture jcppanel=applet.panel("appletframe");
        panel = (JChemPaintPanel)jcppanel.target;
        viewer.setSize(700,700);
    }
View Full Code Here


        this.xmlFile = xmlFile;
    }

    @Before
    public void setUp() throws Exception {
        testFrame = new FrameFixture(PatchEdit.getInstance());
        testFrame.show();
        testFrame.maximize();
        guiHandler = new GuiHandler(testFrame);
    }
View Full Code Here

    }

    protected IClickable getClickableParentRecursive(Container container) {
        if (container instanceof JFrame) {
            JFrame frame = (JFrame) container;
            final FrameFixture fixture = new FrameFixture(frame);
            return new IClickable() {
                @Override
                public void click() {
                    fixture.click();
                }
            };
        } else if (container instanceof JTabbedPane) {
            JTabbedPane pane = (JTabbedPane) container;
            final JTabbedPaneFixture fixture =
                    new JTabbedPaneFixture(testFrame.robot, pane);
            return new IClickable() {
                @Override
                public void click() {
                    fixture.click();
                }
            };
        } else if (container instanceof JPanel) {
            JPanel pane = (JPanel) container;
            final JPanelFixture fixture =
                    new JPanelFixture(testFrame.robot, pane);
            return new IClickable() {
                @Override
                public void click() {
                    fixture.focus();
                }
            };
        } else {
            return getClickableParentRecursive(container.getParent());
        }
View Full Code Here

    private FrameFixture testFrame;
    private GuiHandler guiHandler;

    @Before
    public void setUp() throws Exception {
        testFrame = new FrameFixture(PatchEdit.getInstance());
        testFrame.show();
        testFrame.maximize();
        guiHandler = new GuiHandler(testFrame);
    }
View Full Code Here

        properties = new Properties();
    }

    void run() throws Exception {
        PatchEditorTest.setUpOnce();
        testFrame = new FrameFixture(PatchEdit.getInstance());
        testFrame.show();
        testFrame.resizeHeightTo(600);
        testFrame.resizeWidthTo(800);
        // testFrame.maximize();
        guiHandler = new GuiHandler(testFrame);
View Full Code Here


        protected IClickable getClickableParentRecursive(Container container) {
            if (container instanceof JFrame) {
                JFrame frame = (JFrame) container;
                final FrameFixture ff = new FrameFixture(frame);
                return new IClickable() {
                    @Override
                    public void click() {
                        ff.click();
                    }
                };
            } else if (container instanceof JTabbedPane) {
                JTabbedPane pane = (JTabbedPane) container;
                final JTabbedPaneFixture ff =
                        new JTabbedPaneFixture(fixture.robot, pane);
                return new IClickable() {
                    @Override
                    public void click() {
                        ff.click();
                    }
                };
            } else if (container instanceof JPanel) {
                JPanel pane = (JPanel) container;
                final JPanelFixture ff = new JPanelFixture(fixture.robot, pane);
                return new IClickable() {
                    @Override
                    public void click() {
                        ff.focus();
                    }
                };
            } else {
                return getClickableParentRecursive(container.getParent());
            }
View Full Code Here

      protected JFrame executeInEDT()
      {
        return new DownloaderUI().display();
      }
    });
    window = new FrameFixture(robot(), frame);
    window.show();
  }
View Full Code Here

TOP

Related Classes of org.fest.swing.fixture.FrameFixture

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.