@@ -89,7 +89,6 @@ public void setUp() throws Exception {
89
89
90
90
////////////////////// SPEC RULE VERIFICATION ///////////////////////////////
91
91
92
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.1
93
92
@ Override @ Test
94
93
public void required_spec201_blackbox_mustSignalDemandViaSubscriptionRequest () throws Throwable {
95
94
blackboxSubscriberTest (new BlackboxTestStageTestRun () {
@@ -105,13 +104,11 @@ public void run(BlackboxTestStage stage) throws InterruptedException {
105
104
});
106
105
}
107
106
108
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.2
109
107
@ Override @ Test
110
108
public void untested_spec202_blackbox_shouldAsynchronouslyDispatch () throws Exception {
111
109
notVerified (); // cannot be meaningfully tested, or can it?
112
110
}
113
111
114
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.3
115
112
@ Override @ Test
116
113
public void required_spec203_blackbox_mustNotCallMethodsOnSubscriptionOrPublisherInOnComplete () throws Throwable {
117
114
blackboxSubscriberWithoutSetupTest (new BlackboxTestStageTestRun () {
@@ -148,7 +145,6 @@ public void cancel() {
148
145
});
149
146
}
150
147
151
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.3
152
148
@ Override @ Test
153
149
public void required_spec203_blackbox_mustNotCallMethodsOnSubscriptionOrPublisherInOnError () throws Throwable {
154
150
blackboxSubscriberWithoutSetupTest (new BlackboxTestStageTestRun () {
@@ -187,13 +183,11 @@ public void cancel() {
187
183
});
188
184
}
189
185
190
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.4
191
186
@ Override @ Test
192
187
public void untested_spec204_blackbox_mustConsiderTheSubscriptionAsCancelledInAfterRecievingOnCompleteOrOnError () throws Exception {
193
188
notVerified (); // cannot be meaningfully tested, or can it?
194
189
}
195
190
196
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.5
197
191
@ Override @ Test
198
192
public void required_spec205_blackbox_mustCallSubscriptionCancelIfItAlreadyHasAnSubscriptionAndReceivesAnotherOnSubscribeSignal () throws Exception {
199
193
new BlackboxTestStage (env ) {{
@@ -222,26 +216,22 @@ public String toString() {
222
216
}};
223
217
}
224
218
225
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.6
226
219
@ Override @ Test
227
220
public void untested_spec206_blackbox_mustCallSubscriptionCancelIfItIsNoLongerValid () throws Exception {
228
221
notVerified (); // cannot be meaningfully tested, or can it?
229
222
}
230
223
231
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.7
232
224
@ Override @ Test
233
225
public void untested_spec207_blackbox_mustEnsureAllCallsOnItsSubscriptionTakePlaceFromTheSameThreadOrTakeCareOfSynchronization () throws Exception {
234
226
notVerified (); // cannot be meaningfully tested, or can it?
235
227
// the same thread part of the clause can be verified but that is not very useful, or is it?
236
228
}
237
229
238
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.8
239
230
@ Override @ Test
240
231
public void untested_spec208_blackbox_mustBePreparedToReceiveOnNextSignalsAfterHavingCalledSubscriptionCancel () throws Throwable {
241
232
notVerified (); // cannot be meaningfully tested as black box, or can it?
242
233
}
243
234
244
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.9
245
235
@ Override @ Test
246
236
public void required_spec209_blackbox_mustBePreparedToReceiveAnOnCompleteSignalWithPrecedingRequestCall () throws Throwable {
247
237
blackboxSubscriberWithoutSetupTest (new BlackboxTestStageTestRun () {
@@ -279,7 +269,6 @@ public void run(BlackboxTestStage stage) throws Throwable {
279
269
});
280
270
}
281
271
282
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.9
283
272
@ Override @ Test
284
273
public void required_spec209_blackbox_mustBePreparedToReceiveAnOnCompleteSignalWithoutPrecedingRequestCall () throws Throwable {
285
274
blackboxSubscriberWithoutSetupTest (new BlackboxTestStageTestRun () {
@@ -303,7 +292,6 @@ public void subscribe(Subscriber<? super T> s) {
303
292
});
304
293
}
305
294
306
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.10
307
295
@ Override @ Test
308
296
public void required_spec210_blackbox_mustBePreparedToReceiveAnOnErrorSignalWithPrecedingRequestCall () throws Throwable {
309
297
blackboxSubscriberTest (new BlackboxTestStageTestRun () {
@@ -316,25 +304,21 @@ public void run(BlackboxTestStage stage) throws Throwable {
316
304
});
317
305
}
318
306
319
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.11
320
307
@ Override @ Test
321
308
public void untested_spec211_blackbox_mustMakeSureThatAllCallsOnItsMethodsHappenBeforeTheProcessingOfTheRespectiveEvents () throws Exception {
322
309
notVerified (); // cannot be meaningfully tested, or can it?
323
310
}
324
311
325
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.12
326
312
@ Override @ Test
327
313
public void untested_spec212_blackbox_mustNotCallOnSubscribeMoreThanOnceBasedOnObjectEquality () throws Throwable {
328
314
notVerified (); // cannot be meaningfully tested as black box, or can it?
329
315
}
330
316
331
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.13
332
317
@ Override @ Test
333
318
public void untested_spec213_blackbox_failingOnSignalInvocation () throws Exception {
334
319
notVerified (); // cannot be meaningfully tested, or can it?
335
320
}
336
321
337
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.13
338
322
@ Override @ Test
339
323
public void required_spec213_blackbox_onSubscribe_mustThrowNullPointerExceptionWhenParametersAreNull () throws Throwable {
340
324
blackboxSubscriberWithoutSetupTest (new BlackboxTestStageTestRun () {
@@ -357,7 +341,6 @@ public void run(BlackboxTestStage stage) throws Throwable {
357
341
});
358
342
}
359
343
360
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.13
361
344
@ Override @ Test
362
345
public void required_spec213_blackbox_onNext_mustThrowNullPointerExceptionWhenParametersAreNull () throws Throwable {
363
346
blackboxSubscriberWithoutSetupTest (new BlackboxTestStageTestRun () {
@@ -385,7 +368,6 @@ public void run(BlackboxTestStage stage) throws Throwable {
385
368
});
386
369
}
387
370
388
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#2.13
389
371
@ Override @ Test
390
372
public void required_spec213_blackbox_onError_mustThrowNullPointerExceptionWhenParametersAreNull () throws Throwable {
391
373
blackboxSubscriberWithoutSetupTest (new BlackboxTestStageTestRun () {
@@ -415,43 +397,36 @@ public void run(BlackboxTestStage stage) throws Throwable {
415
397
416
398
////////////////////// SUBSCRIPTION SPEC RULE VERIFICATION //////////////////
417
399
418
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#3.1
419
400
@ Override @ Test
420
401
public void untested_spec301_blackbox_mustNotBeCalledOutsideSubscriberContext () throws Exception {
421
402
notVerified (); // cannot be meaningfully tested, or can it?
422
403
}
423
404
424
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#3.8
425
405
@ Override @ Test
426
406
public void untested_spec308_blackbox_requestMustRegisterGivenNumberElementsToBeProduced () throws Throwable {
427
407
notVerified (); // cannot be meaningfully tested as black box, or can it?
428
408
}
429
409
430
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#3.10
431
410
@ Override @ Test
432
411
public void untested_spec310_blackbox_requestMaySynchronouslyCallOnNextOnSubscriber () throws Exception {
433
412
notVerified (); // cannot be meaningfully tested, or can it?
434
413
}
435
414
436
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#3.11
437
415
@ Override @ Test
438
416
public void untested_spec311_blackbox_requestMaySynchronouslyCallOnCompleteOrOnError () throws Exception {
439
417
notVerified (); // cannot be meaningfully tested, or can it?
440
418
}
441
419
442
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#3.14
443
420
@ Override @ Test
444
421
public void untested_spec314_blackbox_cancelMayCauseThePublisherToShutdownIfNoOtherSubscriptionExists () throws Exception {
445
422
notVerified (); // cannot be meaningfully tested, or can it?
446
423
}
447
424
448
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#3.15
449
425
@ Override @ Test
450
426
public void untested_spec315_blackbox_cancelMustNotThrowExceptionAndMustSignalOnError () throws Exception {
451
427
notVerified (); // cannot be meaningfully tested, or can it?
452
428
}
453
429
454
- // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#3.16
455
430
@ Override @ Test
456
431
public void untested_spec316_blackbox_requestMustNotThrowExceptionAndMustOnErrorTheSubscriber () throws Exception {
457
432
notVerified (); // cannot be meaningfully tested, or can it?
0 commit comments