Data variable requiring MockMvc #2097
-
Hi, I'd like to add a data-driven test that checks the results for multiple requests to a spring-boot web app. The data that defines the iterations needs to be fetched via a request too, via an Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
What does the field you try to access look like? |
Beta Was this translation helpful? Give feedback.
Ah, ok, that's why you don't get a compile error, this is not detected.
So yeah, if you want to do that you probably have to enable shared field injection and make the field shared.
If that is possible in this case, see the JavaDoc I mentioned.