Inspectopedia Help

Unfinished StepVerifier

Reports missing StepVerifier terminal calls.

Initiating Publisher subscriptions and assertions requires calling a terminal verification method, such as verify(), verifyComplete(), and so on.

Example:

StepVerifier.create(Flux.just(1,2,3)).expectNext(1);

After the quick-fix is applied:

StepVerifier.create(Flux.just(1,2,3)).expectNext(1).verifyComplete();

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Reactive Streams, 241.16690

Last modified: 29 April 2024