Issue Details (XML | Word | Printable)

Key: FEST-8
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Alex Ruiz
Reporter: Alex Ruiz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FEST

Method on JTreeFixture to return a fixture for a cell (issue 185)

Created: 02/Mar/09 12:42 AM   Updated: 28/Dec/09 01:23 AM   Resolved: 28/Dec/09 01:23 AM
Return to search
Component/s: Swing
Affects Version/s: FEST-Swing 1.1
Fix Version/s: FEST-Swing 1.2a4

Time Tracking:
Not Specified


 Description  « Hide

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 report: Issue 185 (Google Code)



Alex Ruiz made changes - 02/Mar/09 01:47 AM
Field Original Value New Value
Description 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:

{code:java}
String[] textOfChildNodes(String path)
{code}

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|http://code.google.com/p/fest/issues/detail?id=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 report: [Google Code (issue 185)|http://code.google.com/p/fest/issues/detail?id=185] and [Project Kenai (FEST-6)|http://kenai.com/jira/browse/FEST-6].
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:

{code:java}
String[] textOfChildNodes(String path)
{code}

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|http://code.google.com/p/fest/issues/detail?id=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 reports at [Issue 185 (Google Code)|http://code.google.com/p/fest/issues/detail?id=185] and [FEST-6 (Project Kenai)|http://kenai.com/jira/browse/FEST-6].
Alex Ruiz made changes - 09/Mar/09 03:00 AM
Description 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:

{code:java}
String[] textOfChildNodes(String path)
{code}

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|http://code.google.com/p/fest/issues/detail?id=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 reports at [Issue 185 (Google Code)|http://code.google.com/p/fest/issues/detail?id=185] and [FEST-6 (Project Kenai)|http://kenai.com/jira/browse/FEST-6].
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:

{code:java}
String[] textOfChildNodes(String path)
{code}

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|http://code.google.com/p/fest/issues/detail?id=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 report: [Issue 185 (Google Code)|http://code.google.com/p/fest/issues/detail?id=185]
Matthew Harrison added a comment - 17/Mar/09 11:23 AM

I agree about having tree node fixtures.
At the moment (1.1) I can't see a way to ctrl-click on a node to extend selection.


Matthew Harrison added a comment - 18/Mar/09 12:35 PM

I found a way, using window.robot.click() and the JTree... but it's wordy.
I see there is JTreeFixture.selectRows(), but I also wanted to see the effect of inverting a single selection, and testing my component responding to that (without calling JTree.clearSelection().

Rgds,

M.


Alex Ruiz added a comment - 18/Mar/09 12:50 PM

Thanks Matthew for the feedback! This feature will definitely be in our next release (1.2.) I'm currently working on support for JUnit 4.5 and fixing a couple of show-stopper bugs. After I'm done with those tasks, I'll be working on this one.

BTW, 1.2 will be have several alpha/beta releases. I expect to have this feature in the first alpha.

Best regards,
-Alex


Alex Ruiz added a comment - 29/Apr/09 01:01 AM

Due to time constraints and the size/complexity of this task, I have decided to postpone it for the next alpha release of FEST-Swing 1.2.


Alex Ruiz made changes - 29/Apr/09 01:01 AM
Fix Version/s Cairo [ 15055 ]
Fix Version/s Kiev [ 15264 ]
Alex Ruiz made changes - 25/May/09 11:32 AM
Fix Version/s Kiev [ 15264 ]
Fix Version/s Paris [ 15322 ]
Alex Ruiz made changes - 11/Jul/09 03:24 PM
Priority Major [ 3 ] Minor [ 4 ]
Alex Ruiz made changes - 19/Jul/09 10:37 AM
Fix Version/s FEST-Swing 1.2a3 [ 15322 ]
Fix Version/s FEST-Swing 1.2a4 [ 15506 ]
Alex Ruiz made changes - 26/Dec/09 09:43 PM
Remaining Estimate 0 minutes [ 0 ]
Original Estimate 0 minutes [ 0 ]
Summary Method on JTreeFixture to return text of child nodes for a path (issue 185) Method on JTreeFixture to return a fixture for a cell (issue 185)
Alex Ruiz made changes - 26/Dec/09 09:43 PM
Status Open [ 1 ] In Progress [ 3 ]
Alex Ruiz made changes - 28/Dec/09 01:23 AM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]