@@ -139,7 +139,6 @@ public void setUpBefore() throws Exception {
139
139
/**
140
140
* Attach to channel, enter presence channel and await entered event
141
141
*/
142
- @ Ignore ("FIXME: fix exception" )
143
142
@ Test
144
143
public void enter_simple () {
145
144
AblyRealtime clientAbly1 = null ;
@@ -190,7 +189,6 @@ public void enter_simple() {
190
189
/**
191
190
* Enter presence channel without prior attach and await entered event
192
191
*/
193
- @ Ignore ("FIXME: fix exception" )
194
192
@ Test
195
193
public void enter_before_attach () {
196
194
AblyRealtime clientAbly1 = null ;
@@ -239,7 +237,6 @@ public void enter_before_attach() {
239
237
/**
240
238
* Enter presence channel without prior connect and await entered event
241
239
*/
242
- @ Ignore ("FIXME: fix exception" )
243
240
@ Test
244
241
public void enter_before_connect () {
245
242
AblyRealtime clientAbly1 = null ;
@@ -285,7 +282,6 @@ public void enter_before_connect() {
285
282
* Enter, then leave, presence channel and await leave event
286
283
* Verify that the item is removed from the presence map (RTP2e)
287
284
*/
288
- @ Ignore ("FIXME: fix exception" )
289
285
@ Test
290
286
public void enter_leave_simple () {
291
287
AblyRealtime clientAbly1 = null ;
@@ -345,7 +341,6 @@ public void enter_leave_simple() {
345
341
/**
346
342
* Enter, then enter again, expecting update event
347
343
*/
348
- @ Ignore ("FIXME: fix exception" )
349
344
@ Test
350
345
public void enter_enter_simple () {
351
346
AblyRealtime clientAbly1 = null ;
@@ -414,7 +409,6 @@ public void enter_enter_simple() {
414
409
/**
415
410
* Enter, then update, expecting update event
416
411
*/
417
- @ Ignore ("FIXME: fix exception" )
418
412
@ Test
419
413
public void enter_update_simple () {
420
414
AblyRealtime clientAbly1 = null ;
@@ -552,7 +546,6 @@ public void enter_update_null() {
552
546
/**
553
547
* Update without having first entered, expecting enter event
554
548
*/
555
- @ Ignore ("FIXME: fix exception" )
556
549
@ Test
557
550
public void update_noenter () {
558
551
AblyRealtime clientAbly1 = null ;
@@ -611,7 +604,6 @@ public void update_noenter() {
611
604
* Enter, then leave (with no data) and await leave event,
612
605
* expecting enter data to be in leave event
613
606
*/
614
- @ Ignore ("FIXME: fix exception" )
615
607
@ Test
616
608
public void enter_leave_nodata () {
617
609
AblyRealtime clientAbly1 = null ;
@@ -667,7 +659,6 @@ public void enter_leave_nodata() {
667
659
/**
668
660
* Attach to channel, enter presence channel and get presence using realtime get()
669
661
*/
670
- @ Ignore ("FIXME: fix exception" )
671
662
@ Test
672
663
public void realtime_get_simple () {
673
664
AblyRealtime clientAbly1 = null ;
@@ -722,7 +713,6 @@ public void realtime_get_simple() {
722
713
/**
723
714
* Attach to channel, enter+leave presence channel and get presence with realtime get()
724
715
*/
725
- @ Ignore ("FIXME: fix exception" )
726
716
@ Test
727
717
public void realtime_get_leave () {
728
718
AblyRealtime clientAbly1 = null ;
@@ -781,7 +771,6 @@ public void realtime_get_leave() {
781
771
* Attach to channel, enter presence channel, then initiate second
782
772
* connection, seeing existing member in message subsequent to second attach response
783
773
*/
784
- @ Ignore ("FIXME: fix exception" )
785
774
@ Test
786
775
public void attach_enter_simple () {
787
776
AblyRealtime clientAbly1 = null ;
@@ -858,7 +847,6 @@ public void attach_enter_simple() {
858
847
*
859
848
* Test RTP4
860
849
*/
861
- @ Ignore ("FIXME: fix exception" )
862
850
@ Test
863
851
public void attach_enter_multiple () {
864
852
AblyRealtime clientAbly1 = null ;
@@ -943,7 +931,6 @@ public void attach_enter_multiple() {
943
931
/**
944
932
* Attach and enter channel on two connections, seeing
945
933
* both members in presence returned by realtime get() */
946
- @ Ignore ("FIXME: fix exception" )
947
934
@ Test
948
935
public void realtime_enter_multiple () {
949
936
AblyRealtime clientAbly1 = null ;
@@ -1014,7 +1001,6 @@ public void realtime_enter_multiple() {
1014
1001
/**
1015
1002
* Attach to channel, enter presence channel and get presence using rest get()
1016
1003
*/
1017
- @ Ignore ("FIXME: fix exception" )
1018
1004
@ Test
1019
1005
public void rest_get_simple () {
1020
1006
AblyRealtime clientAbly1 = null ;
@@ -1067,7 +1053,6 @@ public void rest_get_simple() {
1067
1053
/**
1068
1054
* Attach to channel, enter+leave presence channel and get presence with rest get()
1069
1055
*/
1070
- @ Ignore ("FIXME: fix exception" )
1071
1056
@ Test
1072
1057
public void rest_get_leave () {
1073
1058
AblyRealtime clientAbly1 = null ;
@@ -1125,7 +1110,6 @@ public void rest_get_leave() {
1125
1110
/**
1126
1111
* Attach and enter channel on two connections, seeing
1127
1112
* both members in presence returned by rest get() */
1128
- @ Ignore ("FIXME: fix exception" )
1129
1113
@ Test
1130
1114
public void rest_enter_multiple () {
1131
1115
AblyRealtime clientAbly1 = null ;
@@ -1191,7 +1175,6 @@ public void rest_enter_multiple() {
1191
1175
/**
1192
1176
* Attach and enter channel multiple times on a single connection,
1193
1177
* retrieving members using paginated rest get() */
1194
- @ Ignore ("FIXME: fix exception" )
1195
1178
@ Test
1196
1179
public void rest_paginated_get () {
1197
1180
AblyRealtime clientAbly1 = null ;
@@ -1277,7 +1260,6 @@ public void rest_paginated_get() {
1277
1260
/**
1278
1261
* Attach to channel, enter presence channel, disconnect and await leave event
1279
1262
*/
1280
- @ Ignore ("FIXME: fix exception" )
1281
1263
@ Test
1282
1264
public void disconnect_leave () {
1283
1265
AblyRealtime clientAbly1 = null ;
@@ -1419,7 +1401,6 @@ public Presence.PresenceListener setMessageStack(List<PresenceMessage> messageSt
1419
1401
*
1420
1402
* @throws AblyException
1421
1403
*/
1422
- @ Ignore ("FIXME: flaky test" )
1423
1404
@ Test
1424
1405
public void realtime_presence_unsubscribe_single () throws AblyException {
1425
1406
/* Ably instance that will emit presence events */
@@ -1499,7 +1480,6 @@ public Presence.PresenceListener setMessageStack(List<PresenceMessage> messageSt
1499
1480
*
1500
1481
* @throws AblyException
1501
1482
*/
1502
- @ Ignore ("FIXME: flaky test" )
1503
1483
@ Test
1504
1484
public void realtime_presence_subscribe_all () throws AblyException {
1505
1485
/* Ably instance that will emit presence events */
@@ -1575,7 +1555,6 @@ public Presence.PresenceListener setMessageStack(List<PresenceMessage> messageSt
1575
1555
*
1576
1556
* @throws AblyException
1577
1557
*/
1578
- @ Ignore ("FIXME: fix exception" )
1579
1558
@ Test
1580
1559
public void realtime_presence_subscribe_multiple () throws AblyException {
1581
1560
/* Ably instance that will emit presence events */
@@ -1824,7 +1803,6 @@ public Presence.PresenceListener setMessageStack(List<PresenceMessage> messageSt
1824
1803
*
1825
1804
* @throws AblyException
1826
1805
*/
1827
- @ Ignore ("FIXME: flaky test" )
1828
1806
@ Test
1829
1807
public void realtime_presence_attach_implicit_subscribe_fail () throws AblyException {
1830
1808
AblyRealtime ably = null ;
@@ -2142,7 +2120,6 @@ public void realtime_presence_attach_implicit_leaveclient_fail() throws AblyExce
2142
2120
*
2143
2121
* @throws AblyException
2144
2122
*/
2145
- @ Ignore ("FIXME: fix exception" )
2146
2123
@ Test
2147
2124
public void realtime_presence_get_throws_when_channel_failed () throws AblyException {
2148
2125
AblyRealtime ably = null ;
@@ -2467,7 +2444,6 @@ public void onPresenceMessage(PresenceMessage message) {
2467
2444
*
2468
2445
* Tests RTP3
2469
2446
*/
2470
- @ Ignore ("FIXME: fix exception" )
2471
2447
@ Test
2472
2448
public void reattach_resume_broken_sync () {
2473
2449
AblyRealtime clientAbly1 = null ;
@@ -2850,7 +2826,6 @@ public void onChannelStateChanged(ChannelStateChange stateChange) {
2850
2826
*
2851
2827
* Not functional yet
2852
2828
*/
2853
- @ Ignore ("FIXME: fix exception" )
2854
2829
@ Test
2855
2830
public void presence_without_subscribe_capability () throws AblyException {
2856
2831
String channelName = "presence_without_subscribe" + testParams .name ;
@@ -2914,7 +2889,6 @@ public void onError(ErrorInfo reason) {
2914
2889
*
2915
2890
* Tests RTP13
2916
2891
*/
2917
- @ Ignore ("FIXME: fix exception" )
2918
2892
@ Test
2919
2893
public void sync_complete () {
2920
2894
AblyRealtime ably1 = null , ably2 = null ;
@@ -2994,7 +2968,6 @@ public void presence_enter_without_permission() throws AblyException {
2994
2968
/**
2995
2969
* Enter wrong client (mismatching one set in the token), check exception
2996
2970
*/
2997
- @ Ignore ("FIXME: fix exception" )
2998
2971
@ Test
2999
2972
public void presence_enter_mismatched_clientid () throws AblyException {
3000
2973
String channelName = "presence_enter_mismatched_clientid" + testParams .name ;
@@ -3236,7 +3209,6 @@ public boolean matches(ProtocolMessage message) {
3236
3209
* Verify presence data is received and encoded/decoded correctly
3237
3210
* Tests RTP8e, RTP6a
3238
3211
*/
3239
- @ Ignore ("FIXME: flaky test" )
3240
3212
@ Test
3241
3213
public void presence_encoding () throws AblyException , InterruptedException {
3242
3214
AblyRealtime ably1 = null , ably2 = null ;
@@ -3307,7 +3279,6 @@ public void onPresenceMessage(PresenceMessage message) {
3307
3279
* Test Presence.get() filtering and syncToWait flag
3308
3280
* Tests RTP11b, RTP11c, RTP11d
3309
3281
*/
3310
- @ Ignore ("FIXME: fix exception" )
3311
3282
@ Test
3312
3283
public void presence_get () throws AblyException , InterruptedException {
3313
3284
AblyRealtime ably1 = null , ably2 = null ;
@@ -3316,15 +3287,15 @@ public void presence_get() throws AblyException, InterruptedException {
3316
3287
final String channelName = "presence_get" + testParams .name ;
3317
3288
ClientOptions opts = createOptions (testVars .keys [0 ].keyStr );
3318
3289
ably1 = new AblyRealtime (opts );
3319
- opts .autoConnect = false ;
3320
- ably2 = new AblyRealtime (opts );
3321
3290
3322
3291
Channel channel1 = ably1 .channels .get (channelName );
3323
3292
CompletionWaiter completionWaiter = new CompletionWaiter ();
3324
3293
channel1 .presence .enterClient ("1" , null , completionWaiter );
3325
3294
channel1 .presence .enterClient ("2" , null , completionWaiter );
3326
3295
completionWaiter .waitFor (2 );
3327
3296
3297
+ opts .autoConnect = false ;
3298
+ ably2 = new AblyRealtime (opts );
3328
3299
Channel channel2 = ably2 .channels .get (channelName );
3329
3300
PresenceWaiter waiter2 = new PresenceWaiter (channel2 );
3330
3301
@@ -3403,7 +3374,6 @@ public void checkMembersWithChannelPresence(Channel testChannel) throws AblyExce
3403
3374
assertEquals ("Members count with channel presence should be " + presenceMessages .length , presenceMessages .length , 1 );
3404
3375
}
3405
3376
3406
- @ Ignore
3407
3377
@ Test
3408
3378
public void test_consistent_presence_for_members () {
3409
3379
AblyRealtime clientAbly1 = null ;
@@ -3566,7 +3536,6 @@ public void message_from_encoded_json_object() throws AblyException {
3566
3536
* Refer Spec. TP4
3567
3537
* @throws AblyException
3568
3538
*/
3569
- @ Ignore ("FIXME: fix exception" )
3570
3539
@ Test
3571
3540
public void messages_from_encoded_json_array () throws AblyException {
3572
3541
JsonArray fixtures = null ;
0 commit comments