Issue Details (XML | Word | Printable)

Key: FEST-138
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Alex Ruiz
Reporter: Joel Shellman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FEST

JTableCellFixture.background() doesn't work with table decorators

Created: 09/Jun/09 07:06 PM   Updated: 10/Jul/09 04:11 AM   Resolved: 10/Jul/09 04:11 AM
Component/s: Swing
Affects Version/s: FEST-Swing 1.2a2
Fix Version/s: FEST-Swing 1.2a3

Time Tracking:
Not Specified


 Description  « Hide

I am using SwingX's JXTreeTable. When I try this:

fix.cell(row(3).column(0)).background().requireEqualTo(Color.GRAY);

it fails. It says the cell is white. Visually, I can tell it is gray. Stepping through the code, it appears that this code goes and grabs the table cell renderer and returns information based on that. However, I'm using highlighters, that's why it's gray. The
highlighters are handled in the table: they decorate the cell renderer's result. So, FEST never sees the correct color.

The following code works:

assertEquals(Color.GRAY, table.prepareRenderer(table.getCellRenderer(3, 0), 3, 0).getBackground());

The prepareRenderer does the decorating. I think FEST needs to be altered to use the result of prepareRenderer instead of just the raw cell renderer.



There are no comments yet on this issue.