Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: FEST-Swing 1.1
-
Fix Version/s: None
-
Component/s: Swing
-
Labels:None
-
Number of attachments :
Description
Hi there,
We've been using a Swing-Component (in our case a JDialog/JCalendar) which we initialise only once in our application. This might be very interesting for fest-users that take care of performance issues during their tests.
Testing our application, we tried to use the Swing-Component twice, but FEST couldn't find the instance of our component in the moment we tried to use it the second time.
Debugging our test, we found out that there is that kind "disposed"-list, that removes the "child" of our application due to the second call.
We found something interesting in NewHierarchy.childrenOf(Component c):
Collection<Component> children = super.childrenOf(c);
children.removeAll(filter.filtered());
In our opinion, testers should be able to tell FEST to add a component to this kind of dispose-list, but this must not happen automatically.
Is there any point we missed or any other way out?
Creating a new Instance from our component on each request helped us out of this problem and might be some kind of workaround for us for the moment.
Best regards from Germany,
George
Original report: Issue 223 (Google Code)