简介我正在尝试通过将字符串从一个线程发送到另一个线程来测试套接字连接,其中服务器和客户端套接字使用Mockitov1.9.5模拟。这是我要运行的测试:@TestpublicvoidtestConnection(){//associateamockserversocketwiththeTCPConnectionTcpSocketConnectionconnection=newTcpSocketConnection(mockServerSocket);try{//beginthreadwhichlistensforclients,thensends"Hello,world"toaconne