Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: FEST-Swing 1.2a2
-
Fix Version/s: FEST-Swing 1.2a3
-
Component/s: Swing
-
Labels:None
-
Number of attachments :
Description
Instead of having to do the following
public void testTooltip() { JComboBox myComboBox = <...> assertEquals("Tooltip does not correspond to selection", getToolTipTextInEDT(myComboBox), "expected tooltip"); } private String getToolTipTextInEDT(final JComboBoxFixture combobox) { String tooltip = GuiActionRunner.execute(new GuiQuery<String>() { public String executeInEDT() { return combobox.component().getToolTipText(); } }); return tooltip; }
there should be a requireToolTip(String) on a to-be-created JComponentFixture injected between ComponentFixture and its subclasses.
1. |
Add 'requireToolTip' to JButtonFixture | |
|
Alex Ruiz | |
2. |
Add 'requireToolTip' to JComboBoxFixture | |
|
Alex Ruiz | |
3. |
Add 'requireToolTip' to JLabelFixture | |
|
Alex Ruiz | |
4. |
Add 'requireToolTip' to JListFixture | |
|
Alex Ruiz | |
5. |
Add 'requireToolTip' to JSliderFixture | |
|
Alex Ruiz | |
6. |
Add 'requireToolTip' to JTabbedPaneFixture | |
|
Alex Ruiz | |
7. |
Add 'requireToolTip' to JTableFixture | |
|
Alex Ruiz | |
8. |
Add 'requireToolTip' to JTextComponentFixture | |
|
Alex Ruiz | |
9. |
Add 'requireToolTip' to JTreeFixture | |
|
Alex Ruiz | |
10. |
Add 'requireToolTip' to JCheckBoxFixture | |
|
Alex Ruiz | |
11. |
Add 'requireToolTip' to JRadioButtonFixture | |
|
Alex Ruiz | |
12. |
Add 'requireToolTip' to JToggleButtonFixture | |
|
Alex Ruiz | |
13. |
Add 'requireToolTip' to JSpinnerFixture | |
|
Alex Ruiz | |
14. |
Add 'requireToolTip' to JTableHeaderFixture | |
|
Alex Ruiz | |
15. |
Add 'requireToolTip' to JToolBarFixture | |
|
Alex Ruiz |
Activity
Alex Ruiz
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Affects Version/s | Kiev [ 15264 ] | |
| Fix Version/s | Paris [ 15322 ] | |
| Component/s | Assert [ 13786 ] | |
| Description |
Instead of having to do the following ---------------------- public void testTooltip() { JComboBox myComboBox = <...> assertEquals("Tooltip does not correspond to selection", getToolTipTextInEDT(myComboBox), "expected tooltip"); } private String getToolTipTextInEDT(final JComboBoxFixture combobox) { String tooltip = GuiActionRunner.execute(new GuiQuery<String>() { public String executeInEDT() { return combobox.component().getToolTipText(); } }); return tooltip; } ---------------------- there should be a requireToolTip(String) on a to-be-created JComponentFixture injected between ComponentFixture and its subclasses. |
Instead of having to do the following ---------------------- {code:java} public void testTooltip() { JComboBox myComboBox = <...> assertEquals("Tooltip does not correspond to selection", getToolTipTextInEDT(myComboBox), "expected tooltip"); } private String getToolTipTextInEDT(final JComboBoxFixture combobox) { String tooltip = GuiActionRunner.execute(new GuiQuery<String>() { public String executeInEDT() { return combobox.component().getToolTipText(); } }); return tooltip; } {code} ---------------------- there should be a {{requireToolTip(String)}} on a to-be-created {{JComponentFixture}} injected between {{ComponentFixture}} and its subclasses. |
Alex Ruiz
made changes -
| Description |
Instead of having to do the following ---------------------- {code:java} public void testTooltip() { JComboBox myComboBox = <...> assertEquals("Tooltip does not correspond to selection", getToolTipTextInEDT(myComboBox), "expected tooltip"); } private String getToolTipTextInEDT(final JComboBoxFixture combobox) { String tooltip = GuiActionRunner.execute(new GuiQuery<String>() { public String executeInEDT() { return combobox.component().getToolTipText(); } }); return tooltip; } {code} ---------------------- there should be a {{requireToolTip(String)}} on a to-be-created {{JComponentFixture}} injected between {{ComponentFixture}} and its subclasses. |
Instead of having to do the following {code:java} public void testTooltip() { JComboBox myComboBox = <...> assertEquals("Tooltip does not correspond to selection", getToolTipTextInEDT(myComboBox), "expected tooltip"); } private String getToolTipTextInEDT(final JComboBoxFixture combobox) { String tooltip = GuiActionRunner.execute(new GuiQuery<String>() { public String executeInEDT() { return combobox.component().getToolTipText(); } }); return tooltip; } {code} there should be a {{requireToolTip(String)}} on a to-be-created {{JComponentFixture}} injected between {{ComponentFixture}} and its subclasses. |
Alex Ruiz
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Alex Ruiz
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
I ended up adding requireToolTip to all fixtures that handle {{JComponent}}s.