benjamin84 / fest

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

JPanelFixture should extend ContainerFixture. #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From Frederik Martens: 

Is it only possible to use components which are directly on the
Window?

I've been trying to test only a part of a GUI, an extended JPanel
implementation. But when I want to access and click a JButton on that
panel, I get the following error :

abbot.tester.ActionFailedException: Component ''Open' (JButton)' has
no Window ancestor

I've noticed that the recommended way of finding a component, by using
a ContainerFixture (FrameFixture) is not implemented for the JPanel.
Are there plans to do this?

If not, how should I best access buttons which are low in the
hierarchy?

Original issue reported on code.google.com by Alex.Rui...@gmail.com on 27 Mar 2008 at 8:52

GoogleCodeExporter commented 9 years ago
Fixed. To be included in 0.9.1.

Original comment by Alex.Rui...@gmail.com on 27 Mar 2008 at 9:00

GoogleCodeExporter commented 9 years ago
Set the module as a label, instead of being part of the title.

Original comment by Alex.Rui...@gmail.com on 1 Dec 2008 at 1:54