Make it possible to use the camel testing functionality
-------------------------------------------------------
Key: SWITCHYARD-348
URL:
https://issues.jboss.org/browse/SWITCHYARD-348
Project: SwitchYard
Issue Type: Feature Request
Components: component-camel, test
Reporter: Tom Fennelly
Assignee: Tom Fennelly
Fix For: 0.2
Camel provides test support via extension of it's base TestCase classes. Would be
nice to make this available to SwitchYard users, along with the existing test MixIn
functionality.
I looked at adding the base test class as a MixIn i.e. the users test class would not
actually extend the base camel test class. I don't think this is not going to work
however because of all the camel test annotations etc. It really needs to be hooked in
properly into the test by extension, as designed.
Our tests having to extend the SwitchYardTestCase is kinda getting in the way here I
think. I'm actually starting to think it may be better to provide our MixIns as
annotated properties on the test class, using a TestRunner to wire it all up. I also
think this will help us evolve towards tighter integration with Arquillian.
Something like...
{code}
@RunWith(SwitchYardRunner.class)
public class CoolTest {
@MixIn
private CDIMixIn cdiMixIn;
// etc...
}
{code}
Then the test can be extended by the camel test classes.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira