问题
I'm working on and micronaut application, and I want to test a production bean.
I have a bean that is conditional using @Requires(env="production"
and another that loads when @Requires(notEnv="production")
that is a simple mock of production. Is there a way in micronaut to mock enviroment so the production bean is created so that I can test it?
来源:https://stackoverflow.com/questions/56936903/micronaut-test-conditional-beans