Package org.fest.swing.fixture
Interface JTreeNodeFixture
- All Superinterfaces:
ItemFixture,MouseInputSimulationFixture
- All Known Implementing Classes:
JTreePathFixture,JTreeRowFixture
Understands functional testing of single nodes in
JTrees:
- user input simulation
- state verification
- property value query
- Since:
- 1.2
-
Method Summary
Methods inherited from interface org.fest.swing.fixture.ItemFixture
drag, drop, select, showPopupMenu, valueMethods inherited from interface org.fest.swing.fixture.MouseInputSimulationFixture
click, click, click, doubleClick, rightClick
-
Method Details
-
expand
JTreeNodeFixture expand()Simulates a user expanding this fixture's tree node.- Returns:
- this fixture.
- Throws:
IllegalStateException- if theJTreeis disabled.IllegalStateException- if theJTreeis not showing on the screen.ActionFailedException- if this method fails to expand the row.
-
collapse
JTreeNodeFixture collapse()Simulates a user collapsing this fixture's tree node.- Returns:
- this fixture.
- Throws:
IllegalStateException- if theJTreeis disabled.IllegalStateException- if theJTreeis not showing on the screen.ActionFailedException- if this method fails to collapse the row.
-