@SuppressWarnings("ResultOfMethodCallIgnored") @Test public void test_constructor_new_instance() { final SocketIoServer server = Mockito.spy(new SocketIoServer(new EngineIoServer())); final SocketIoNamespaceImpl namespace = new SocketIoNamespaceImpl(server, "/_foo"); Mockito.verify(server, Mockito.times(1)).getAdapterFactory(); assertEquals("/_foo", namespace.getName()); assertEquals(server, namespace.getServer()); assertNotNull(namespace.getAdapter()); assertEquals(0, namespace.getConnectedSockets().size()); }
@Override Map<String, SocketIoSocket> getConnectedSockets() { return mConnectedSockets; }
SocketIoNamespaceImpl extends SocketIoNamespace { @Override Map<String, SocketIoSocket> getConnectedSockets() { return mConnectedSockets; } }
SocketIoNamespaceImpl extends SocketIoNamespace { @Override Map<String, SocketIoSocket> getConnectedSockets() { return mConnectedSockets; } SocketIoNamespaceImpl(SocketIoServer server, String name); }
SocketIoNamespaceImpl extends SocketIoNamespace { @Override Map<String, SocketIoSocket> getConnectedSockets() { return mConnectedSockets; } SocketIoNamespaceImpl(SocketIoServer server, String name); @Override void broadcast(String[] rooms, String event, Object[] args); }
SocketIoNamespaceImpl extends SocketIoNamespace { @Override Map<String, SocketIoSocket> getConnectedSockets() { return mConnectedSockets; } SocketIoNamespaceImpl(SocketIoServer server, String name); @Override void broadcast(String[] rooms, String event, Object[] args);  }