Ver Fonte

websocket 测试类 完善测试步骤。

JetBrainZP há 9 anos atrás
pai
commit
02e1a37207

+ 1 - 2
hsweb-web-websocket/src/test/java/org/hsweb/web/socket/WebSocketTest.java

@@ -34,8 +34,7 @@ public class WebSocketTest extends WebSocketConfigurationSupport {
      * 5.如果看到后台日志显示:handleMessage,id:0 msg={"cmd":"test"},则代表成功了
      * @throws Exception
      */
-    @Test
-    public void testWebSocket() throws Exception {
+    public static void main(String[] args) {
         SpringApplication.run(WebSocketTest.class);
     }
 }