VitaliyKulikov / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

Frame creation for component testing #296

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Thanks for the great project :)

To test my JPanels in isolation I need to put them in a frame to make them
"showing" with the following code:

    /**
     * Creates a frame to show the provided panel.
     *
     * @param panel
     * @param robot
     * @throws java.awt.HeadlessException
     */
    private void showPanel(final JPanel panel, Robot robot) throws
HeadlessException {
        Frame app = new Frame();
        app.setSize(panel.getSize());
        app.add(panel);
        FrameFixture frame = new FrameFixture(robot, app);
        frame.show();
    }

It's not appropriate for me to start the whole frame as there are a number
of panels and dependencies. It would be good if the FEST-Swing API allowed
something like the above. I'm sure there are a number of components this
applies to, not just JPanels. 

Original issue reported on code.google.com by hshor...@gmail.com on 2 Feb 2009 at 9:09

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Issue migrated to http://kenai.com/jira/browse/FEST-42

Original comment by Alex.Rui...@gmail.com on 15 Feb 2009 at 4:08

GoogleCodeExporter commented 8 years ago
Issue migrated to http://jira.codehaus.org/browse/FEST-46

Original comment by Alex.Rui...@gmail.com on 5 Mar 2009 at 7:48