All those suggestions use properties so I am not sure what to say ;)

On 20 September 2014 16:07, Gerhard Petracek <gerhard.petra...@gmail.com>
wrote:

> hi karl,
>
> it sounds better than DELTASPIKE-577, however, please provide the
> use-case/s which can't be done with [1].
> (the other implementations we support right now don't support such
> properties anyway).
>
> regards,
> gerhard
>
> [1] http://tomee.apache.org/alternate-descriptors.html
>
>
>
> 2014-09-20 15:28 GMT+02:00 Karl Kildén <karl.kil...@gmail.com>:
>
> > 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
> >
>

Reply via email to