@@ -344,7 +344,7 @@ public void untested_spec213_failingOnSignalInvocation() throws Exception {
344
344
// Verifies rule: https://github.com/reactive-streams/reactive-streams#2.13
345
345
@ Override @ Test
346
346
public void required_spec213_onSubscribe_mustThrowNullPointerExceptionWhenParametersAreNull () throws Throwable {
347
- subscriberTest (new TestStageTestRun () {
347
+ subscriberTestWithoutSetup (new TestStageTestRun () {
348
348
@ Override
349
349
public void run (WhiteboxTestStage stage ) throws Throwable {
350
350
@@ -365,13 +365,18 @@ public void run(WhiteboxTestStage stage) throws Throwable {
365
365
}// Verifies rule: https://github.com/reactive-streams/reactive-streams#2.13
366
366
@ Override @ Test
367
367
public void required_spec213_onNext_mustThrowNullPointerExceptionWhenParametersAreNull () throws Throwable {
368
- subscriberTest (new TestStageTestRun () {
368
+ subscriberTestWithoutSetup (new TestStageTestRun () {
369
369
@ Override
370
370
public void run (WhiteboxTestStage stage ) throws Throwable {
371
371
372
372
final Subscription subscription = new Subscription () {
373
- @ Override public void request (final long elements ) {}
374
- @ Override public void cancel () {}
373
+ @ Override
374
+ public void request (final long elements ) {
375
+ }
376
+
377
+ @ Override
378
+ public void cancel () {
379
+ }
375
380
};
376
381
377
382
{
@@ -380,7 +385,7 @@ public void run(WhiteboxTestStage stage) throws Throwable {
380
385
sub .onSubscribe (subscription );
381
386
try {
382
387
sub .onNext (null );
383
- } catch (final NullPointerException expected ) {
388
+ } catch (final NullPointerException expected ) {
384
389
gotNPE = true ;
385
390
}
386
391
assertTrue (gotNPE , "onNext(null) did not throw NullPointerException" );
@@ -394,13 +399,18 @@ public void run(WhiteboxTestStage stage) throws Throwable {
394
399
// Verifies rule: https://github.com/reactive-streams/reactive-streams#2.13
395
400
@ Override @ Test
396
401
public void required_spec213_onError_mustThrowNullPointerExceptionWhenParametersAreNull () throws Throwable {
397
- subscriberTest (new TestStageTestRun () {
402
+ subscriberTestWithoutSetup (new TestStageTestRun () {
398
403
@ Override
399
404
public void run (WhiteboxTestStage stage ) throws Throwable {
400
405
401
406
final Subscription subscription = new Subscription () {
402
- @ Override public void request (final long elements ) {}
403
- @ Override public void cancel () {}
407
+ @ Override
408
+ public void request (final long elements ) {
409
+ }
410
+
411
+ @ Override
412
+ public void cancel () {
413
+ }
404
414
};
405
415
406
416
{
@@ -409,7 +419,7 @@ public void run(WhiteboxTestStage stage) throws Throwable {
409
419
sub .onSubscribe (subscription );
410
420
try {
411
421
sub .onError (null );
412
- } catch (final NullPointerException expected ) {
422
+ } catch (final NullPointerException expected ) {
413
423
gotNPE = true ;
414
424
}
415
425
assertTrue (gotNPE , "onError(null) did not throw NullPointerException" );
0 commit comments