OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Commented: (SCAJ-26) Spring test client hardcoded to use the Tuscany runtime


    [ http://tools.oasis-open.org/issues/browse/SCAJ-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32885#action_32885 ] 

Mike Edwards commented on SCAJ-26:
----------------------------------

Jim Marino comments:

The below issue is actually worse than I initially thought. 

The class SpringTestRunner overrides the BaseJAXWSTestRunner.invoke(String) method, which is responsible for making a Web Services invocation to a service responsible for relaying the request to the composite under test. Instead, the overridden method performs a local invocation via a proprietary API that drags Tuscany dependencies into the entire test suite. In addition, there appears to be no Web Services binding configuration for any of the modules to test with.

I can work around these issues and remove the dependencies easily enough but inorder to fix this, the test cases need to have proper test services exposed as Web Services endpoints and have the client invoke them accordingly.

> Spring test client hardcoded to use the Tuscany runtime
> -------------------------------------------------------
>
>                 Key: SCAJ-26
>                 URL: http://tools.oasis-open.org/issues/browse/SCAJ-26
>             Project: OASIS Service Component Architecture / J (SCA-J) TC
>          Issue Type: Bug
>          Components: Spring Testcases
>    Affects Versions: 1.1
>            Reporter: Mike Edwards
>
> It appears the Spring test client is hardcoded to use the Tuscany runtime:
> public class SpringTestRunner extends BaseJAXWSTestRunner {
> protected static final URI DOMAIN = URI.create("default");
> @Override
>     public String invokeTest( String input ) throws Exception {
> // TestService service = SCAClientFactory.newInstance(DOMAIN).getService(TestService.class, testConfiguration.getServiceName());
> TestService service = TuscanyRuntimeBridge.instance.node.getService(TestService.class, testConfiguration.getServiceName());
> return service.testIt(input);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]