How Can I Generate Stubs at Runtime
If you want to generate stubs at runtime for contracts, switch the generateStubs
property in the @AutoConfigureStubRunner
annotation, or call the withGenerateStubs(true)
method on the JUnit Rule or Extension. You can read more about this in this section of the documentation.