benjamin84 / fest

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

Add 'showPopupMenu' to JTableHeaderFixture. #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Recently discovered FEST, seems to be a very simple way of testing
swing apps! Haven't gotten that far though and just got stuck on a
problem: I have a table with a popup-menu attached to the header (used
for dynamically add/remove columns) that I would like to access in
order to test that functionality. I haven't figured out how to do it
though. I assume the showPopupMenu() is used for that but there is no
such method of JTableHeaderFixture. Am I or FEST missing something? :)

Original issue reported on code.google.com by Alex.Rui...@gmail.com on 27 May 2008 at 9:44

GoogleCodeExporter commented 9 years ago
Another feature that would be nice: Getting the names of the columns in the 
header. 
I'm not 100% familiar with the syntax used throughout fest, but something like 
window.getTable().tableHeader().column(n).requireValue(expected) or similar 
instead 
of going via window.getTable().target.getTableHeader() etc. 
Other methods for verifying cell properties are also interesting. In short I 
suppose 
JTableCellFixture and JTableHeaderFixture should have pretty much the same API.

Feel free to modify my ideas to the FEST way of thinking - I'm still a newbie! 
:)

Thanks!

Original comment by b...@tontos.nu on 30 May 2008 at 8:56

GoogleCodeExporter commented 9 years ago
Added methods 'showPopupMenuAt(int)' and 'showPopupMenuAt(String)' to
JTableHeaderFixture.

Original comment by Alex.Rui...@gmail.com on 18 Jun 2008 at 2:42

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 1:59