I have an integration test with annotations on it:
@WebAppConfiguration @ActiveProfiles("integration") @ContextConfiguration(loader = SpringApplicationContextLoader, classes = [MyApplication]) @IntegrationTest(["server.port=0"])
I can pass, for example, the server.port property to check the context, but is there a way to pass command line arguments? My application starts as usual:
public static final void main(String[] args) { SpringApplication.run(AnkaraCollectorApplication.class, args); }
and I want to pass some arguments to check the context. Is there any property for this?
source share