You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2014/04/19 09:37:15 UTC
[jira] [Commented] (DELTASPIKE-577) Test-control: Add delegation of
container boot
[ https://issues.apache.org/jira/browse/DELTASPIKE-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13974769#comment-13974769 ]
Romain Manni-Bucau commented on DELTASPIKE-577:
-----------------------------------------------
Well TestControl should use boot(Map) and provide a way to control this map (@Config static Map conf()?) IMHO. That said OpenEJB doesn't need this map to be configured, all can be passed as system props.
> Test-control: Add delegation of container boot
> ----------------------------------------------
>
> Key: DELTASPIKE-577
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-577
> Project: DeltaSpike
> Issue Type: Improvement
> Components: CdiControl, TestControl
> Affects Versions: 0.7
> Reporter: Karl Kildén
> Priority: Minor
>
> container.boot(); is used by Test-Control.
>
> This is nice for simple tests with cdictrl-openejb but I think it would be nice to have the possibility to target the boot(Map<?, ?> properties) that is available for the openejb container. I want Test-Control to delegate to me so I can boot myself.
> I am thinking something like:
> @TestControl(bootDelegate = PropertyAwareEjbBootDelegate.class)
> public interface BootDelegate {
> public void boot(CdiContainer cdiContainer);
> }
> That way tests could be way more dynamic and end users could boot the container in any way they want.
--
This message was sent by Atlassian JIRA
(v6.2#6252)