phamow / fest

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

JTableCellFixture click() does not work if Cell is already selected #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a mouse listener to the table with "System.out" for any event
2. Call the "click()" method on a cell (Listener displays "System.out")
3. Call the "click()" method again on the same cell (Listener is not called)

What is the expected output?
A second click() on the same cell should also result in a mouse event 
(as "click(MouseButton.LEFT_BUTTON)" will do correctly)

What version of the product are you using? On what operating system?
fest-swing-1.0b2.1.jar / Windows XP

Please provide any additional information below.

INSTEAD OF:

public JTableCellFixture click() {
  table.selectCell(cell);
  return this;
}

IT SHOULD BE:

public JTableCellFixture click() {
  table.click(cell, MouseClickInfo.leftButton());
  return this;
}

Original issue reported on code.google.com by reg.goog...@future-invent.de on 3 Nov 2008 at 12:38

GoogleCodeExporter commented 9 years ago
Hi Reg,

Thanks for filing this issue (and for providing a fix!!) :)

I'd like to add you to the list of contributors. If you agree, please send me an
e-mail with your name at alex.ruiz.05 at gmail.com.

Cheers,
-Alex

Original comment by Alex.Rui...@gmail.com on 3 Nov 2008 at 12:42

GoogleCodeExporter commented 9 years ago
Fixed implementation of method 'click' in 
org.fest.swing.fixture.JTableCellFixture.
Many thanks!

Original comment by Alex.Rui...@gmail.com on 30 Nov 2008 at 6:31

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 5:12