A minimal working example / reproducer for TOMEE-4342
With OpenEJB 10.0-M1 and earlier versions, ApplicationComposer
driven tests (via @RunWithApplicationComposer(mode = ExtensionMode.PER_JVM)
do not inject @Resource
beans, declared via Properties in an @Application
App class.
Those Resouce
instances (carrying custom config values) are, however, injected correctly into EJBs or into the App itself. It would be a benefit to have in the Test instance directly.
Interestingly, such resources are injected perfectly fine if the Test is run via the alternative @RunWithEjbContainer
test container bootstraper.