test_class.file: socket.io-server/src/test/java/io/socket/socketio/server/SocketIoAdapterTest.java
test_class.identifier: SocketIoAdapterTest
test_case.body: @Test
      public void test_broadcast() {
          final SocketIoAdapter adapter = Mockito.spy(new SocketIoAdapter(null) {
              @Override
              public void broadcast(Packet packet, String[] rooms, String[] socketsExcluded) throws IllegalArgumentException {
              }
  
              @Override
              public void add(String room, SocketIoSocket socket) throws IllegalArgumentException {
              }
  
              @Override
              public void remove(String room, SocketIoSocket socket) throws IllegalArgumentException {
              }
  
              @Override
              public SocketIoSocket[] listClients(String room) throws IllegalArgumentException {
                  return new SocketIoSocket[0];
              }
  
              @Override
              public String[] listClientRooms(SocketIoSocket socket) throws IllegalArgumentException {
                  return new String[0];
              }
          });
          Mockito.doCallRealMethod().when(adapter)
                  .broadcast(Mockito.any(Packet.class), Mockito.any(String[].class));
          Mockito.doAnswer(invocationOnMock -> null)
                  .when(adapter)
                  .broadcast(Mockito.any(Packet.class), Mockito.any(String[].class), Mockito.any(String[].class));
  
          adapter.broadcast(new Packet(Parser.CONNECT), null);
          Mockito.verify(adapter, Mockito.times(1))
                  .broadcast(Mockito.any(Packet.class), Mockito.<String[]>isNull(), Mockito.isNull());
      }
test_case.class_method_signature: SocketIoAdapterTest.test_broadcast()
test_case.full_signature: @Test public void test_broadcast()
test_case.identifier: test_broadcast
test_case.invocations: spy broadcast when doCallRealMethod any any broadcast when doAnswer any any any broadcast broadcast verify times any isNull isNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_broadcast()
focal_class.declarator: mNamespace
focal_class.modifier: protected final
focal_class.original_string: protected final SocketIoNamespace mNamespace;
focal_class.type: SocketIoNamespace
focal_class.var_name: mNamespace
focal_class.declarator: mRoomSockets = new ConcurrentHashMap<>()
focal_class.modifier: protected final
focal_class.original_string: protected final Map<String, Set<SocketIoSocket>> mRoomSockets = new ConcurrentHashMap<>();
focal_class.type: Map<String, Set<SocketIoSocket>>
focal_class.var_name: mRoomSockets
focal_class.declarator: mSocketRooms = new ConcurrentHashMap<>()
focal_class.modifier: protected final
focal_class.original_string: protected final Map<String, HashSet<String>> mSocketRooms = new ConcurrentHashMap<>();
focal_class.type: Map<String, HashSet<String>>
focal_class.var_name: mSocketRooms
focal_class.file: socket.io-server/src/main/java/io/socket/socketio/server/SocketIoAdapter.java
focal_class.identifier: SocketIoAdapter
focal_class.class_method_signature: SocketIoAdapter.SocketIoAdapter(SocketIoNamespace namespace)
focal_class.full_signature: protected  SocketIoAdapter(SocketIoNamespace namespace)
focal_class.identifier: SocketIoAdapter
focal_class.modifiers: protected
focal_class.parameters: (SocketIoNamespace namespace)
focal_class.signature:  SocketIoAdapter(SocketIoNamespace namespace)
focal_class.class_method_signature: SocketIoAdapter.broadcast(Packet packet, String[] rooms)
focal_class.full_signature: public void broadcast(Packet packet, String[] rooms)
focal_class.identifier: broadcast
focal_class.modifiers: public
focal_class.parameters: (Packet packet, String[] rooms)
focal_class.return: void
focal_class.signature: void broadcast(Packet packet, String[] rooms)
focal_class.class_method_signature: SocketIoAdapter.broadcast(Packet packet, String[] rooms, String[] socketsExcluded)
focal_class.full_signature: public abstract void broadcast(Packet packet, String[] rooms, String[] socketsExcluded)
focal_class.identifier: broadcast
focal_class.modifiers: public abstract
focal_class.parameters: (Packet packet, String[] rooms, String[] socketsExcluded)
focal_class.return: void
focal_class.signature: void broadcast(Packet packet, String[] rooms, String[] socketsExcluded)
focal_class.class_method_signature: SocketIoAdapter.add(String room, SocketIoSocket socket)
focal_class.full_signature: public abstract void add(String room, SocketIoSocket socket)
focal_class.identifier: add
focal_class.modifiers: public abstract
focal_class.parameters: (String room, SocketIoSocket socket)
focal_class.return: void
focal_class.signature: void add(String room, SocketIoSocket socket)
focal_class.class_method_signature: SocketIoAdapter.remove(String room, SocketIoSocket socket)
focal_class.full_signature: public abstract void remove(String room, SocketIoSocket socket)
focal_class.identifier: remove
focal_class.modifiers: public abstract
focal_class.parameters: (String room, SocketIoSocket socket)
focal_class.return: void
focal_class.signature: void remove(String room, SocketIoSocket socket)
focal_class.class_method_signature: SocketIoAdapter.listClients(String room)
focal_class.full_signature: public abstract SocketIoSocket[] listClients(String room)
focal_class.identifier: listClients
focal_class.modifiers: public abstract
focal_class.parameters: (String room)
focal_class.return: SocketIoSocket[]
focal_class.signature: SocketIoSocket[] listClients(String room)
focal_class.class_method_signature: SocketIoAdapter.listClientRooms(SocketIoSocket socket)
focal_class.full_signature: public abstract String[] listClientRooms(SocketIoSocket socket)
focal_class.identifier: listClientRooms
focal_class.modifiers: public abstract
focal_class.parameters: (SocketIoSocket socket)
focal_class.return: String[]
focal_class.signature: String[] listClientRooms(SocketIoSocket socket)
focal_class.superclass: extends Emitter
focal_method.body: public void broadcast(Packet packet, String[] rooms) throws IllegalArgumentException {
          broadcast(packet, rooms, null);
      }
focal_method.class_method_signature: SocketIoAdapter.broadcast(Packet packet, String[] rooms)
focal_method.full_signature: public void broadcast(Packet packet, String[] rooms)
focal_method.identifier: broadcast
focal_method.invocations: broadcast
focal_method.modifiers: public
focal_method.parameters: (Packet packet, String[] rooms)
focal_method.return: void
focal_method.signature: void broadcast(Packet packet, String[] rooms)