-
Notifications
You must be signed in to change notification settings - Fork 238
[question] how to mock reactive stack #700
Description
Please provide the following information:
-
Version of JMockit that was used: 1.49
-
Description of the problem or enhancement request:
I'm trying to mock the results of some repository methods. These methods are returning reactive (Mono/Flux) objects. When I mock more methods in one class all returns the first mock result. I don't understand what is the problem here.
The test sample is here
- Check the following:
-
If a defect or unexpected result, JMockit project members should be able to reproduce it.
For that, include an example test (perhaps accompanied by a Maven/Gradle build script) which
can be executed without changes and reproduces the failure. -
If an enhancement or new feature request, it should be justified by an example test
demonstrating the validity and usefulness of the desired enhancement or new feature. -
The issue does not fall outside the scope of the project (for example, attempting to use
JMockit APIs from Groovy or Scala code, or with an Android runtime). -
The JDK where the problem occurs is a final release, not a development build.