benjamin84 / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

JComboBoxFixture.selectItem(String text) with non-string model fails #163

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Non-string combobox model (custom data objects)
2. Call JComboBoxFixture.selectItem(String text)

What is the expected output? What do you see instead?
Expected - combobox selects required item
See - nothing happens

Please provide any additional information below.
JComboBoxFixture.selectItem(String text)
calls
JComboBoxDriver.selectItem(JComboBox comboBox, Object value)

which compares value with model values, without converting to string, so

97: areEqual(itemAt(comboBox, i), value) will always fail

So i have to use cbx.enterText(...) instead

Original issue reported on code.google.com by filim...@gmail.com on 23 Jun 2008 at 10:51

GoogleCodeExporter commented 9 years ago
'selectItem' was fixed in 1.0a3 ( issue 140 ).

Original comment by Alex.Rui...@gmail.com on 25 Jun 2008 at 2:32

GoogleCodeExporter commented 9 years ago
Set the module as a label, instead of being part of the title.

Original comment by Alex.Rui...@gmail.com on 1 Dec 2008 at 2:05