[JBoss JIRA] Created: (SWITCHYARD-348) Make it possible to use the camel testing functionality
by Tom Fennelly (JIRA)
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
13 years, 5 months
[JBoss JIRA] Created: (SWITCHYARD-347) SOAP gateway does not detect operation name property for doc/lit
by Keith Babo (JIRA)
SOAP gateway does not detect operation name property for doc/lit
----------------------------------------------------------------
Key: SWITCHYARD-347
URL: https://issues.jboss.org/browse/SWITCHYARD-347
Project: SwitchYard
Issue Type: Bug
Components: component-soap
Reporter: Keith Babo
Fix For: 0.2
It looks like the SOAP gateway is assuming that the element in the SOAP:Body always has the same name as the WSDL operation. This is true for doc/lit wrapped, but is not required for doc/lit. See SOAPUtil.getOperationName() and InboundHandler.invoke() for the details. Seems like a small tweak to WSDLUtil.getOperation() could allow for the element name to be passed in (which it currently passes as "operationName") and that can be used to lookup the operation name whether it's doc/lit or doc/lit + wrapped.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months