org.fest.swing.fixture
Interface ToolTipDisplayFixture

All Known Subinterfaces:
JComponentFixture
All Known Implementing Classes:
JButtonFixture, JCheckBoxFixture, JComboBoxFixture, JInternalFrameFixture, JLabelFixture, JListFixture, JPanelFixture, JProgressBarFixture, JRadioButtonFixture, JScrollBarFixture, JScrollPaneFixture, JSliderFixture, JSpinnerFixture, JSplitPaneFixture, JTabbedPaneFixture, JTableFixture, JTableHeaderFixture, JTextComponentFixture, JToggleButtonFixture, JToolBarFixture, JTreeFixture

public interface ToolTipDisplayFixture

Understands state verification of GUI components that display a tool-tip.

Since:
1.2
Author:
Alex Ruiz

Method Summary
 ToolTipDisplayFixture requireToolTip(Pattern pattern)
          Asserts that the toolTip in this fixture's GUI component matches the given regular expression pattern.
 ToolTipDisplayFixture requireToolTip(String expected)
          Asserts that the toolTip in this fixture's GUI component matches the given value.
 

Method Detail

requireToolTip

ToolTipDisplayFixture requireToolTip(String expected)
Asserts that the toolTip in this fixture's GUI component matches the given value.

Parameters:
expected - the given value. It can be a regular expression.
Returns:
this fixture.
Throws:
AssertionError - if the toolTip in this fixture's GUI component does not match the given value.

requireToolTip

ToolTipDisplayFixture requireToolTip(Pattern pattern)
Asserts that the toolTip in this fixture's GUI component matches the given regular expression pattern.

Parameters:
pattern - the regular expression pattern to match.
Returns:
this fixture.
Throws:
NullPointerException - if the given regular expression pattern is null.
AssertionError - if the toolTip in this fixture's GUI component does not match the given value.


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