robmayhew / fest

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

Removing filtered components from children-collection due to "already-used"-list? #223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 mustn't happen automatically.

Is der 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 issue reported on code.google.com by boston.g...@googlemail.com on 23 Oct 2008 at 4:11

GoogleCodeExporter commented 9 years ago
Hi George,

I agree, we need this functionality! Many thanks for filing this issue :)

I'm not 100% sure at this moment if using a ExistingHierarchy instead of 
NewHierarchy
will be a good workaround for now. Please let me know if that worked :)

Cheers,
-Alex

Original comment by Alex.Rui...@gmail.com on 23 Oct 2008 at 5:20

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

Original comment by Alex.Rui...@gmail.com on 15 Feb 2009 at 3:54

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

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