Package org.fest.swing.fixture
Interface JTreeNodeFixture
- All Superinterfaces:
ItemFixture
,MouseInputSimulationFixture
- All Known Implementing Classes:
JTreePathFixture
,JTreeRowFixture
Understands functional testing of single nodes in
JTree
s:
- 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, value
Methods 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 theJTree
is disabled.IllegalStateException
- if theJTree
is 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 theJTree
is disabled.IllegalStateException
- if theJTree
is not showing on the screen.ActionFailedException
- if this method fails to collapse the row.
-