benjamin84 / fest

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

Method on JTreeFixture to return text of child nodes for a path #185

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am using version 1.0a1 of the FEST-Assert module.

I think that it would be useful to have a method on JTreeFixture which
would return the texts of a given node's children. Something like:
    String[] textOfChildNodes(String path)

I think it would be even more useful to implement a fixture for a tree
node, just like a fixture for a table cell in issue 170.
This fixture could be used, for example, to collapse/expand the given node,
to return its text, etc...

If such a fixture were to be implemented it would be more useful to have a
method which would return not the texts of a given node's children, but a
fixture for every child node. Another method could return a fixture for a
node's parent node, although I don't see any use for it.

Thanks,
Csabi

Original issue reported on code.google.com by csaba.ju...@gmail.com on 21 Jul 2008 at 1:11

GoogleCodeExporter commented 9 years ago
I completely agree! Thanks a lot Csabi!

Original comment by Alex.Rui...@gmail.com on 21 Jul 2008 at 2:03

GoogleCodeExporter commented 9 years ago
Hi Alex,

Would you mind telling my where are you writing from?

Thanks,
Csabi

Original comment by csaba.ju...@gmail.com on 21 Jul 2008 at 2:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Csabi,

I've been thinking about this feature and I have a couple of questions. If we 
return
the text of children of a node, it would be only one level down, since we are
returning a String array. Am I correct? :)

Thanks,
-Alex

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

GoogleCodeExporter commented 9 years ago
Hi Alex,

Yes, you're correct. The method would return the texts of the node's immediate 
children.

Regards,
Csabi

Original comment by csaba.ju...@gmail.com on 3 Dec 2008 at 8:57

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
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Issue migrated to http://jira.codehaus.org/browse/FEST-8

Original comment by Alex.Rui...@gmail.com on 2 Mar 2009 at 6:43