public boolean onAction(Control source) {
// When action is invoked, set flag to true
return actionCalled = true;
}
});
assertTrue(textArea.onProcess());
// Fire all action events that was registered in the onProcess method
context.fireActionEventsAndClearRegistry();
assertTrue("TextArea action was not invoked", actionCalled);