Skip to content

Data variable requiring MockMvc #2097

Answered by Vampire
jochenberger asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jochenberger
Comment options

@jochenberger
Comment options

@Vampire
Comment options

Vampire Jan 30, 2025
Collaborator

Answer selected by jochenberger
@jochenberger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants