@Test public void testOnCurrentRegistryChanged() { final CurrentRegistryChangedEvent event = mock(CurrentRegistryChangedEvent.class); ((UndoSessionCommand)command).onCurrentRegistryChanged(event); verify((UndoSessionCommand)command).checkState(); }
void onCurrentRegistryChanged(final @Observes CurrentRegistryChangedEvent currentRegistryChangedEvent) { checkState(); }
UndoSessionCommand extends AbstractClientSessionCommand<EditorSession> { void onCurrentRegistryChanged(final @Observes CurrentRegistryChangedEvent currentRegistryChangedEvent) { checkState(); } }
UndoSessionCommand extends AbstractClientSessionCommand<EditorSession> { void onCurrentRegistryChanged(final @Observes CurrentRegistryChangedEvent currentRegistryChangedEvent) { checkState(); } @Inject  UndoSessionCommand(final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager); }
UndoSessionCommand extends AbstractClientSessionCommand<EditorSession> { void onCurrentRegistryChanged(final @Observes CurrentRegistryChangedEvent currentRegistryChangedEvent) { checkState(); } @Inject  UndoSessionCommand(final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager); @Override void bind(final EditorSession session); @Override boolean accepts(final ClientSession session); @Override @SuppressWarnings("unchecked") void execute(final Callback<V> callback); }
UndoSessionCommand extends AbstractClientSessionCommand<EditorSession> { void onCurrentRegistryChanged(final @Observes CurrentRegistryChangedEvent currentRegistryChangedEvent) { checkState(); } @Inject  UndoSessionCommand(final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager); @Override void bind(final EditorSession session); @Override boolean accepts(final ClientSession session); @Override @SuppressWarnings("unchecked") void execute(final Callback<V> callback);  }