27
27
28
28
public class TextMessageTest extends AbstractBasicWebSocketTest {
29
29
30
- @ Test (groups = "standalone" , timeOut = 60000 )
30
+ @ Test (timeOut = 60000 )
31
31
public void onOpen () throws Exception {
32
32
try (AsyncHttpClient c = asyncHttpClient ()) {
33
33
final CountDownLatch latch = new CountDownLatch (1 );
@@ -57,7 +57,7 @@ public void onError(Throwable t) {
57
57
}
58
58
}
59
59
60
- @ Test (groups = "standalone" , timeOut = 60000 )
60
+ @ Test (timeOut = 60000 )
61
61
public void onEmptyListenerTest () throws Exception {
62
62
try (AsyncHttpClient c = asyncHttpClient ()) {
63
63
WebSocket websocket = null ;
@@ -70,7 +70,7 @@ public void onEmptyListenerTest() throws Exception {
70
70
}
71
71
}
72
72
73
- @ Test (groups = "standalone" , timeOut = 60000 , expectedExceptions = UnknownHostException .class )
73
+ @ Test (timeOut = 60000 , expectedExceptions = UnknownHostException .class )
74
74
public void onFailureTest () throws Throwable {
75
75
try (AsyncHttpClient c = asyncHttpClient ()) {
76
76
c .prepareGet ("ws://abcdefg" ).execute (new WebSocketUpgradeHandler .Builder ().build ()).get ();
@@ -79,7 +79,7 @@ public void onFailureTest() throws Throwable {
79
79
}
80
80
}
81
81
82
- @ Test (groups = "standalone" , timeOut = 60000 )
82
+ @ Test (timeOut = 60000 )
83
83
public void onTimeoutCloseTest () throws Exception {
84
84
try (AsyncHttpClient c = asyncHttpClient ()) {
85
85
final CountDownLatch latch = new CountDownLatch (1 );
@@ -109,7 +109,7 @@ public void onError(Throwable t) {
109
109
}
110
110
}
111
111
112
- @ Test (groups = "standalone" , timeOut = 60000 )
112
+ @ Test (timeOut = 60000 )
113
113
public void onClose () throws Exception {
114
114
try (AsyncHttpClient c = asyncHttpClient ()) {
115
115
final CountDownLatch latch = new CountDownLatch (1 );
@@ -141,7 +141,7 @@ public void onError(Throwable t) {
141
141
}
142
142
}
143
143
144
- @ Test (groups = "standalone" , timeOut = 60000 )
144
+ @ Test (timeOut = 60000 )
145
145
public void echoText () throws Exception {
146
146
try (AsyncHttpClient c = asyncHttpClient ()) {
147
147
final CountDownLatch latch = new CountDownLatch (1 );
@@ -178,7 +178,7 @@ public void onError(Throwable t) {
178
178
}
179
179
}
180
180
181
- @ Test (groups = "standalone" , timeOut = 60000 )
181
+ @ Test (timeOut = 60000 )
182
182
public void echoDoubleListenerText () throws Exception {
183
183
try (AsyncHttpClient c = asyncHttpClient ()) {
184
184
final CountDownLatch latch = new CountDownLatch (2 );
@@ -237,7 +237,7 @@ public void onError(Throwable t) {
237
237
}
238
238
}
239
239
240
- @ Test ( groups = "standalone" )
240
+ @ Test
241
241
public void echoTwoMessagesTest () throws Exception {
242
242
try (AsyncHttpClient c = asyncHttpClient ()) {
243
243
final CountDownLatch latch = new CountDownLatch (2 );
@@ -274,6 +274,7 @@ public void onError(Throwable t) {
274
274
}
275
275
}
276
276
277
+ @ Test
277
278
public void echoFragments () throws Exception {
278
279
try (AsyncHttpClient c = asyncHttpClient ()) {
279
280
final CountDownLatch latch = new CountDownLatch (1 );
@@ -304,14 +305,14 @@ public void onError(Throwable t) {
304
305
}).build ()).get ();
305
306
306
307
websocket .sendTextFrame ("ECHO" , false , 0 );
307
- websocket .sendTextFrame ("ECHO" , true , 0 );
308
+ websocket .sendContinuationFrame ("ECHO" , true , 0 );
308
309
309
310
latch .await ();
310
311
assertEquals (text .get (), "ECHOECHO" );
311
312
}
312
313
}
313
314
314
- @ Test (groups = "standalone" , timeOut = 60000 )
315
+ @ Test (timeOut = 60000 )
315
316
public void echoTextAndThenClose () throws Throwable {
316
317
try (AsyncHttpClient c = asyncHttpClient ()) {
317
318
final CountDownLatch textLatch = new CountDownLatch (1 );
0 commit comments