]
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: