Hi all
I have a click handler method like this in my presenter
widget.getTable().addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
FlexTable table = (FlexTable) event.getSource();
Cell cell = table.getCellForEvent(event);
String purchaseOrderId = table.getText(cell.getRowIndex(),
cell.getCellIndex());
RegisterArrivalEvent arrivalEvent = new RegisterArrivalEvent();
arrivalEvent.setPurchaseOrderId(purchaseOrderId);
eventBus.fireEvent(arrivalEvent);
}
});
How can I successfully test my presenter with a method like this in
it?
Would I be better of rewriting this method all together?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---