@Test public void testLock() { final AbstractController c = new AbstractController() { @Override public void invoke(final MainAction runnable, final boolean wait) { } }; assertEquals(c, new ControllerMainAction(c) { @Override public void run() { } }.lock()); }
@Override public Object lock() { return controller; }
ControllerMainAction extends MainAction { @Override public Object lock() { return controller; } }
ControllerMainAction extends MainAction { @Override public Object lock() { return controller; } ControllerMainAction(Controller c); }
ControllerMainAction extends MainAction { @Override public Object lock() { return controller; } ControllerMainAction(Controller c); @Override boolean isValid(); @Override Object lock(); }
ControllerMainAction extends MainAction { @Override public Object lock() { return controller; } ControllerMainAction(Controller c); @Override boolean isValid(); @Override Object lock();  }