[gatein-issues] [JBoss JIRA] (GTNPORTAL-1727) Overriding configuration unit in AbstractKernelTest

Boleslaw Dawidowicz (JIRA) jira-events at lists.jboss.org
Fri Jul 27 18:18:09 EDT 2012


     [ https://issues.jboss.org/browse/GTNPORTAL-1727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boleslaw Dawidowicz closed GTNPORTAL-1727.
------------------------------------------

    Resolution: Out of Date


Should be verified in gatein master and reopened if still valid
                
> Overriding configuration unit in AbstractKernelTest
> ---------------------------------------------------
>
>                 Key: GTNPORTAL-1727
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-1727
>             Project: GateIn Portal
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Minh Hoang TO
>            Assignee: Minh Hoang TO
>              Labels: review_julien
>
>  Creating JUnit test in GateIn from scratch is very complex due to numbers of service component configurations. That 's why the project test.core provides AbstractKernelTest, the class overriding services configuration loading ( custom class loader GateinTestClassLoader is set as context class loader of thread running test, service configuration is retrieved from paths defined in annotation @ConfigurationUnit)
>  As the annotation @ConfiguredBy is also @Inherited, that makes default service configuration appears in all test unit, even when unnecessary. That slows down test running for sure.
> It might be better to define @OverridingConfigurationUnit annotation, processed by AbstractKernelTest to remove service component configuration when it is not used for JUnit test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list