322323324325326327328329330331332
b.append("stopByRequest\n"); } }; a.controllerUpdate(new StopByRequestEvent(new MyController(), 0, 0, 0, null)); assertEquals(b.toString(), "stop\nstopByRequest\n"); } class MyController implements Controller
105106107108109110111112113114115
if( o instanceof ControllerListener ) { ControllerListener listener = (ControllerListener)o; try { listener.controllerUpdate(event); } catch(Exception e) { logger.log(Level.WARNING, "Exception occurred during event dispatching:" + e, e); } }
9293949596979899100101102
if( o instanceof ControllerListener ) { ControllerListener listener = (ControllerListener)o; try { listener.controllerUpdate(event); } catch(Exception e) { System.err.println( "Exception occurred during event dispatching:"); e.printStackTrace(); }