org.fest.swing.fixture
Interface TwoStateButtonFixture

All Known Implementing Classes:
JCheckBoxFixture, JRadioButtonFixture, JToggleButtonFixture

public interface TwoStateButtonFixture

Understands state verification of "two-state" buttons.

Author:
Yvonne Wang, Alex Ruiz

Method Summary
 TwoStateButtonFixture requireNotSelected()
          Verifies that this fixture's JToggleButton is not selected.
 TwoStateButtonFixture requireSelected()
          Verifies that this fixture's JToggleButton is selected.
 

Method Detail

requireSelected

TwoStateButtonFixture requireSelected()
Verifies that this fixture's JToggleButton is selected.

Returns:
this fixture.
Throws:
AssertionError - if this fixture's JToggleButton is not selected.

requireNotSelected

TwoStateButtonFixture requireNotSelected()
Verifies that this fixture's JToggleButton is not selected.

Returns:
this fixture.
Throws:
AssertionError - if this fixture's JToggleButton is selected.


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