FEST

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

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: FEST-Swing 1.1
  • Fix Version/s: FEST-Swing 1.2a4
  • Component/s: Swing
  • Labels:
    None
  • Number of attachments :
    0

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:

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)

Activity

Hide
Matthew Harrison added a comment -

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.

Show
Matthew Harrison added a comment - 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.
Hide
Matthew Harrison added a comment -

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.

Show
Matthew Harrison added a comment - 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.
Hide
Alex Ruiz added a comment -

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

Show
Alex Ruiz added a comment - 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
Hide
Alex Ruiz added a comment -

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.

Show
Alex Ruiz added a comment - 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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: