MicronautTest not working with @Property annotated Junit5 test methods if the property affects application context #91
Labels
status: pr submitted
A pull request has been submitted for the issue
If Micronaut bean uses
@Requires(property = ?)
and such property is changed at@Property
annotated Junit5 test method, the whole test fails to initialize.A reproducer that "should" work but is not working at all as Micronaut fails to initialize:
Error output:
It looks like the Micronaut application context is not properly created per each test method and the effective properties values valid at the test method scope.
The text was updated successfully, but these errors were encountered: