Assert.assertTrue(buttonPressedPainter.isPainted());
}
@Test
public void shouldNotifyListeners() throws Exception {
MouseActionFixture mouseAction = new MouseActionFixture();
buttonCellPainter.addClickListener(mouseAction);
buttonCellPainter.run(natTable, mouseClickEvent);
Assert.assertTrue(mouseAction.isActionInvoked());
buttonCellPainter.removeClickListener(mouseAction);
mouseAction.reset();
buttonCellPainter.run(natTable, mouseClickEvent);
Assert.assertFalse(mouseAction.isActionInvoked());
}