Package 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
-
Method Summary
Modifier and TypeMethodDescriptionrequireToolTip
(String expected) Asserts that the toolTip in this fixture's GUI component matches the given value.requireToolTip
(Pattern pattern) Asserts that the toolTip in this fixture's GUI component matches the given regular expression pattern.
-
Method Details
-
requireToolTip
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
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 isnull
.AssertionError
- if the toolTip in this fixture's GUI component does not match the given value.
-