@Test public void testNewDolphinCommands() throws ControllerValidationException { DolphinContext dolphinContext = createContext(); Map<Class<? extends Command>, List<CommandHandler>> dolphinActions = dolphinContext.getServerConnector().getRegistry().getActions(); assertNotNull(dolphinActions.containsKey(CreateContextCommand.class)); assertNotNull(dolphinActions.containsKey(DestroyContextCommand.class)); assertNotNull(dolphinActions.containsKey(CreateControllerCommand.class)); assertNotNull(dolphinActions.containsKey(DestroyControllerCommand.class)); assertNotNull(dolphinActions.containsKey(CallActionCommand.class)); assertNotNull(dolphinActions.containsKey(StartLongPollCommand.class)); assertNotNull(dolphinActions.containsKey(InterruptLongPollCommand.class)); }
public ServerConnector getServerConnector() { return serverConnector; }
DolphinContext { public ServerConnector getServerConnector() { return serverConnector; } }
DolphinContext { public ServerConnector getServerConnector() { return serverConnector; } DolphinContext(final RemotingConfiguration configuration, ClientSession clientSession, ClientSessionProvider clientSessionProvider, ManagedBeanFactory beanFactory, ControllerRepository controllerRepository, Consumer<DolphinContext> onDestroyCallback); }
DolphinContext { public ServerConnector getServerConnector() { return serverConnector; } DolphinContext(final RemotingConfiguration configuration, ClientSession clientSession, ClientSessionProvider clientSessionProvider, ManagedBeanFactory beanFactory, ControllerRepository controllerRepository, Consumer<DolphinContext> onDestroyCallback); void destroy(); void interrupt(); ServerModelStore getServerModelStore(); ServerConnector getServerConnector(); BeanManager getBeanManager(); String getId(); List<Command> handle(final List<Command> commands); ClientSession getClientSession(); @Override boolean equals(Object o); @Override int hashCode(); Future<Void> runLater(final Runnable runnable); Future<T> callLater(final Callable<T> callable); boolean isActive(); }
DolphinContext { public ServerConnector getServerConnector() { return serverConnector; } DolphinContext(final RemotingConfiguration configuration, ClientSession clientSession, ClientSessionProvider clientSessionProvider, ManagedBeanFactory beanFactory, ControllerRepository controllerRepository, Consumer<DolphinContext> onDestroyCallback); void destroy(); void interrupt(); ServerModelStore getServerModelStore(); ServerConnector getServerConnector(); BeanManager getBeanManager(); String getId(); List<Command> handle(final List<Command> commands); ClientSession getClientSession(); @Override boolean equals(Object o); @Override int hashCode(); Future<Void> runLater(final Runnable runnable); Future<T> callLater(final Callable<T> callable); boolean isActive();  }