Hello,
Test-Control will bootstrap the CdiContainer for me using the #boot()
constructor. However I want it to use #boot(Properties p)
This seems logical since CdiContainer contract has that boot method. My
suggestion is:
public interface PropertiesProvider {
Properties properties();
}
@TestControl(propertiesProvider=PropertiesProviderImpl.class)
Class<? extends PropertiesProvider> providerClazz =
this.testControl.propertiesProvider();
if (providerClazz != null) {
Properties properties = providerClazz.newInstance().properties();
}
All user have to do is implement that interface PropertiesProvider and
assign it to the test.
This would save me a lot of trouble...
cheers