test_class.file: socket.io-server/src/test/java/io/socket/socketio/server/SocketIoServerTest.java
test_class.identifier: SocketIoServerTest
test_case.body: @Test
      public void test_connection() {
          final EngineIoServer engineIoServer = new EngineIoServer();
          final SocketIoServer server = new SocketIoServer(engineIoServer);
          final SocketIoNamespace namespace = server.namespace("/");
  
          assertNotNull(namespace);
  
          final Emitter.Listener connectionListener = Mockito.mock(Emitter.Listener.class);
          namespace.on("connect", connectionListener);
          namespace.on("connection", connectionListener);
  
          engineIoServer.handleWebSocket(new EngineIoWebSocket() {
              @Override
              public Map<String, String> getQuery() {
                  return new HashMap<>();
              }
  
              @Override
              public void write(String message) {
              }
  
              @Override
              public void write(byte[] message) {
              }
  
              @Override
              public void close() {
              }
          });
  
          Mockito.verify(connectionListener, Mockito.times(2))
                  .call(Mockito.any(SocketIoSocket.class));
      }
test_case.class_method_signature: SocketIoServerTest.test_connection()
test_case.full_signature: @Test public void test_connection()
test_case.identifier: test_connection
test_case.invocations: namespace assertNotNull mock on on handleWebSocket call verify times any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_connection()
focal_class.declarator: mOptions
focal_class.modifier: private final
focal_class.original_string: private final SocketIoServerOptions mOptions;
focal_class.type: SocketIoServerOptions
focal_class.var_name: mOptions
focal_class.declarator: mNamespaceRegexProviderMap = new ConcurrentHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<Pattern, SocketIoNamespaceProvider> mNamespaceRegexProviderMap = new ConcurrentHashMap<>();
focal_class.type: Map<Pattern, SocketIoNamespaceProvider>
focal_class.var_name: mNamespaceRegexProviderMap
focal_class.declarator: mNamespaceGroups = new ConcurrentHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<SocketIoNamespaceProvider, SocketIoNamespaceGroupImpl> mNamespaceGroups = new ConcurrentHashMap<>();
focal_class.type: Map<SocketIoNamespaceProvider, SocketIoNamespaceGroupImpl>
focal_class.var_name: mNamespaceGroups
focal_class.declarator: mNamespaces = new ConcurrentHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, SocketIoNamespaceImpl> mNamespaces = new ConcurrentHashMap<>();
focal_class.type: Map<String, SocketIoNamespaceImpl>
focal_class.var_name: mNamespaces
focal_class.declarator: mEncoder = new IOParser.Encoder()
focal_class.modifier: private final
focal_class.original_string: private final Parser.Encoder mEncoder = new IOParser.Encoder();
focal_class.type: Parser.Encoder
focal_class.var_name: mEncoder
focal_class.file: socket.io-server/src/main/java/io/socket/socketio/server/SocketIoServer.java
focal_class.identifier: SocketIoServer
focal_class.class_method_signature: SocketIoServer.SocketIoServer(EngineIoServer server)
focal_class.full_signature: public  SocketIoServer(EngineIoServer server)
focal_class.identifier: SocketIoServer
focal_class.modifiers: public
focal_class.parameters: (EngineIoServer server)
focal_class.signature:  SocketIoServer(EngineIoServer server)
focal_class.class_method_signature: SocketIoServer.SocketIoServer(EngineIoServer server, SocketIoServerOptions options)
focal_class.full_signature: public  SocketIoServer(EngineIoServer server, SocketIoServerOptions options)
focal_class.identifier: SocketIoServer
focal_class.modifiers: public
focal_class.parameters: (EngineIoServer server, SocketIoServerOptions options)
focal_class.signature:  SocketIoServer(EngineIoServer server, SocketIoServerOptions options)
focal_class.class_method_signature: SocketIoServer.getEncoder()
focal_class.full_signature:  Parser.Encoder getEncoder()
focal_class.identifier: getEncoder
focal_class.parameters: ()
focal_class.return: Parser.Encoder
focal_class.signature: Parser.Encoder getEncoder()
focal_class.class_method_signature: SocketIoServer.getAdapterFactory()
focal_class.full_signature:  SocketIoAdapter.AdapterFactory getAdapterFactory()
focal_class.identifier: getAdapterFactory
focal_class.parameters: ()
focal_class.return: SocketIoAdapter.AdapterFactory
focal_class.signature: SocketIoAdapter.AdapterFactory getAdapterFactory()
focal_class.class_method_signature: SocketIoServer.checkNamespace(String namespace)
focal_class.full_signature:  boolean checkNamespace(String namespace)
focal_class.identifier: checkNamespace
focal_class.parameters: (String namespace)
focal_class.return: boolean
focal_class.signature: boolean checkNamespace(String namespace)
focal_class.class_method_signature: SocketIoServer.hasNamespace(String namespace)
focal_class.full_signature: public boolean hasNamespace(String namespace)
focal_class.identifier: hasNamespace
focal_class.modifiers: public
focal_class.parameters: (String namespace)
focal_class.return: boolean
focal_class.signature: boolean hasNamespace(String namespace)
focal_class.class_method_signature: SocketIoServer.namespace(String namespace)
focal_class.full_signature: public synchronized SocketIoNamespace namespace(String namespace)
focal_class.identifier: namespace
focal_class.modifiers: public synchronized
focal_class.parameters: (String namespace)
focal_class.return: SocketIoNamespace
focal_class.signature: SocketIoNamespace namespace(String namespace)
focal_class.class_method_signature: SocketIoServer.namespace(SocketIoNamespaceProvider namespaceProvider)
focal_class.full_signature: public synchronized SocketIoNamespace namespace(SocketIoNamespaceProvider namespaceProvider)
focal_class.identifier: namespace
focal_class.modifiers: public synchronized
focal_class.parameters: (SocketIoNamespaceProvider namespaceProvider)
focal_class.return: SocketIoNamespace
focal_class.signature: SocketIoNamespace namespace(SocketIoNamespaceProvider namespaceProvider)
focal_class.class_method_signature: SocketIoServer.namespace(final Pattern namespaceRegex)
focal_class.full_signature: public synchronized SocketIoNamespace namespace(final Pattern namespaceRegex)
focal_class.identifier: namespace
focal_class.modifiers: public synchronized
focal_class.parameters: (final Pattern namespaceRegex)
focal_class.return: SocketIoNamespace
focal_class.signature: SocketIoNamespace namespace(final Pattern namespaceRegex)
focal_method.body: public synchronized SocketIoNamespace namespace(String namespace) {
          if (namespace.charAt(0) != '/') {
              namespace = "/" + namespace;
          }
  
          SocketIoNamespaceImpl nsp = mNamespaces.get(namespace);
          if (nsp == null) {
              nsp = new SocketIoNamespaceImpl(this, namespace);
              mNamespaces.put(namespace, nsp);
          }
  
          return nsp;
      }
focal_method.class_method_signature: SocketIoServer.namespace(String namespace)
focal_method.full_signature: public synchronized SocketIoNamespace namespace(String namespace)
focal_method.identifier: namespace
focal_method.invocations: charAt get put
focal_method.modifiers: public synchronized
focal_method.parameters: (String namespace)
focal_method.return: SocketIoNamespace
focal_method.signature: SocketIoNamespace namespace(String namespace)