benjamin84 / fest

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

ComponentFinder could find multiple components #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ComponentFinder should be able to return multiple matching components.

For fixtures a single result makes sense, because it allows for the fluent
interface with every statement representing a user's "trajectory" in the
application's GUI.
For example, it makes perfect sense for the following statement:
frame.optionPane().cancelButton().click();

But in some cases, in component drivers, for example, it would be much more
convenient if ComponentFinder could return multiple results.

I need to find all JXTaskPanes in a container. Currently I'm using a
GenericTypeMatcher with memory. I use a protected Set to remember
previously found components. isMatching first checks if the component
indeed matches some criteria, then it checks its memory to see if it
already returned true for the same component. It only returns true if the
component hasn't been matched before.

Original issue reported on code.google.com by csaba.ju...@gmail.com on 10 Jun 2008 at 11:57

GoogleCodeExporter commented 9 years ago
We already added support for multiple component lookup in issue 144. This fix 
will be
part of our next release 1.0-a3.

Many thanks,
-Alex

Original comment by Alex.Rui...@gmail.com on 10 Jun 2008 at 12:47

GoogleCodeExporter commented 9 years ago

Hi Alex,

Sorry that I've posted a duplicate.
I'll be more careful next time.

Thanks,
Csabi

Original comment by csaba.ju...@gmail.com on 10 Jun 2008 at 2:04

GoogleCodeExporter commented 9 years ago
Hi Csabi,

No need to apologize! We truly appreciate your feedback!

Sincerely,
-Alex

Original comment by Alex.Rui...@gmail.com on 10 Jun 2008 at 2:42

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 2:02