I am writing the test cases for one of the Spring Webflux function as:
public Mono<ClassTempKey> getKey(Param param1) {
return getKeyFromBaseClass();
}
StepVerifier.create(class.getKey(param1)
.assertNext(key -> {
assertThat(key.getValue().isEqualTo(value);
}).verifyComplete();
I am getting the following output
expected: onNext() actual: onComplete()
The method will return a single key value. Not sure where I am doing wrong.