org.fest.swing.fixture
Interface JTreeNodeFixture

All Superinterfaces:
ItemFixture, MouseInputSimulationFixture
All Known Implementing Classes:
JTreePathFixture, JTreeRowFixture

public interface JTreeNodeFixture
extends ItemFixture

Understands functional testing of single nodes in JTrees:

Since:
1.2
Author:
Alex Ruiz

Method Summary
 JTreeNodeFixture collapse()
          Simulates a user collapsing this fixture's tree node.
 JTreeNodeFixture expand()
          Simulates a user expanding this fixture's tree node.
 
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 Detail

expand

JTreeNodeFixture expand()
Simulates a user expanding this fixture's tree node.

Returns:
this fixture.
Throws:
IllegalStateException - if the JTree is disabled.
IllegalStateException - if the JTree 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 the JTree is disabled.
IllegalStateException - if the JTree is not showing on the screen.
ActionFailedException - if this method fails to collapse the row.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.