You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2007/01/12 18:51:34 UTC
svn commit: r495660 [1/3] - in /incubator/tuscany/java/testing/sca: ./
itest/ itest/bindingsTest/ itest/bindingsTest/bindingsclient/
itest/bindingsTest/bindingsclient/.settings/
itest/bindingsTest/bindingscomposite/ itest/bindingsTest/bindingscomposite...
Author: rfeng
Date: Fri Jan 12 09:51:22 2007
New Revision: 495660
URL: http://svn.apache.org/viewvc?view=rev&rev=495660
Log:
Clean up the itest suites and add test cases contributed by TUSCANY-1047 (Thanks!)
Added:
incubator/tuscany/java/testing/sca/itest/callBackAPITest/ (with props)
incubator/tuscany/java/testing/sca/itest/callBackAPITest/pom.xml (with props)
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/resources/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/resources/META-INF/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/resources/META-INF/sca/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/resources/META-INF/sca/default.scdl
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/tuscany/sca/test/CallBackApiITest.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/ (with props)
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/pom.xml (with props)
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/resources/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/resources/META-INF/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/resources/META-INF/sca/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/resources/META-INF/sca/default.scdl
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/tuscany/sca/test/CallBackBasicITest.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/ (with props)
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/pom.xml (with props)
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/resources/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/resources/META-INF/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/resources/META-INF/sca/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/resources/META-INF/sca/default.scdl
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/test/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/test/java/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/test/java/org/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/test/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/test/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/test/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/test/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/test/java/org/apache/tuscany/sca/test/CallBackCTypeITest.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackIDTest/ (with props)
incubator/tuscany/java/testing/sca/itest/callBackIDTest/pom.xml (with props)
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/org/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/org/apache/tuscany/sca/test/CallBackIdCallBack.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/org/apache/tuscany/sca/test/CallBackIdClient.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/org/apache/tuscany/sca/test/CallBackIdClientImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/org/apache/tuscany/sca/test/CallBackIdService.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/java/org/apache/tuscany/sca/test/CallBackIdServiceImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/resources/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/resources/META-INF/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/resources/META-INF/sca/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/main/resources/META-INF/sca/default.scdl
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/test/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/test/java/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/test/java/org/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/test/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/test/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/test/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/test/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackIDTest/src/test/java/org/apache/tuscany/sca/test/CallBackIdITest.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/ (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/pom.xml (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvBadCallback.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvCallback.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvClient.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvClientImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvNonSerCallback.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvObjectCallback.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvService.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvServiceImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/resources/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/resources/META-INF/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/resources/META-INF/sca/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/main/resources/META-INF/sca/default.scdl
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/test/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/test/java/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/test/java/org/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/test/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/test/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/test/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/test/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackConvTest/src/test/java/org/apache/tuscany/sca/test/CallBackSetCallbackConvITest.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/ (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/pom.xml (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCalbackService.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackBadCallback.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackCallback.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackCallbackImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClient.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackClientImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackObjectCallback.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/java/org/apache/tuscany/sca/test/CallBackSetCallbackServiceImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/resources/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/resources/META-INF/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/resources/META-INF/sca/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/main/resources/META-INF/sca/default.scdl
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/test/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/test/java/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/test/java/org/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/test/java/org/apache/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/test/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/test/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/test/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/callBackSetCallbackTest/src/test/java/org/apache/tuscany/sca/test/CallBackSetCallbackITest.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/ (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/pom.xml (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/AnotherService.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/AnotherServiceImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/ConversationsCallback.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/ConversationsClient.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/ConversationsClient2.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/ConversationsClientImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/ConversationsLifeCycleService.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/ConversationsLifeCycleServiceImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/ConversationsService.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/java/org/apache/tuscany/sca/test/ConversationsServiceImpl.java (with props)
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/resources/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/resources/META-INF/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/resources/META-INF/sca/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/main/resources/META-INF/sca/default.scdl
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/test/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/test/java/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/test/java/org/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/test/java/org/apache/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/test/java/org/apache/tuscany/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/test/java/org/apache/tuscany/sca/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/test/java/org/apache/tuscany/sca/test/
incubator/tuscany/java/testing/sca/itest/conversationsTest/src/test/java/org/apache/tuscany/sca/test/ConversationsITest.java (with props)
incubator/tuscany/java/testing/sca/itest/pom.xml (with props)
Removed:
incubator/tuscany/java/testing/sca/itest/bindingsTest/bindingsclient/.classpath
incubator/tuscany/java/testing/sca/itest/bindingsTest/bindingsclient/.project
incubator/tuscany/java/testing/sca/itest/bindingsTest/bindingsclient/.settings/
incubator/tuscany/java/testing/sca/itest/bindingsTest/bindingscomposite/.classpath
incubator/tuscany/java/testing/sca/itest/bindingsTest/bindingscomposite/.project
incubator/tuscany/java/testing/sca/itest/bindingsTest/bindingscomposite/.settings/
incubator/tuscany/java/testing/sca/itest/bindingsTest/bindingsutility/.classpath
incubator/tuscany/java/testing/sca/itest/bindingsTest/bindingsutility/.project
incubator/tuscany/java/testing/sca/itest/bindingsTest/bindingsutility/.settings/
Modified:
incubator/tuscany/java/testing/sca/itest/bindingsTest/pom.xml
incubator/tuscany/java/testing/sca/itest/propertyTest/pom.xml
incubator/tuscany/java/testing/sca/itest/specTest/pom.xml
incubator/tuscany/java/testing/sca/itest/specTest/src/main/java/org/apache/tuscany/sca/test/spec/impl/MyListServiceImpl.java
incubator/tuscany/java/testing/sca/itest/specTest/src/main/resources/META-INF/sca/myListService.scdl
incubator/tuscany/java/testing/sca/pom.xml
Modified: incubator/tuscany/java/testing/sca/itest/bindingsTest/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/bindingsTest/pom.xml?view=diff&rev=495660&r1=495659&r2=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/bindingsTest/pom.xml (original)
+++ incubator/tuscany/java/testing/sca/itest/bindingsTest/pom.xml Fri Jan 12 09:51:22 2007
@@ -21,14 +21,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.apache.tuscany.testing</groupId>
- <artifactId>tuscany-testing-sca</artifactId>
+ <artifactId>sca-itest</artifactId>
<version>1.0-incubator-SNAPSHOT</version>
- <relativePath>../../pom.xml</relativePath>
+ <relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.tuscany.testing</groupId>
- <version>SNAPSHOT</version>
+ <version>${testing.version}</version>
<artifactId>bindingstest</artifactId>
<packaging>pom</packaging>
<name>SCA FVT Test Tool Suite</name>
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Jan 12 09:51:22 2007
@@ -0,0 +1,13 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
Added: incubator/tuscany/java/testing/sca/itest/callBackAPITest/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackAPITest/pom.xml?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackAPITest/pom.xml (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackAPITest/pom.xml Fri Jan 12 09:51:22 2007
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+ <parent>
+ <groupId>org.apache.tuscany.testing</groupId>
+ <artifactId>sca-itest</artifactId>
+ <version>1.0-incubator-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.tuscany.testing</groupId>
+ <artifactId>callbackAPITest</artifactId>
+ <version>${testing.version}</version>
+ <packaging>jar</packaging>
+ <name>Test Suite for SCA Callback API</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.osoa</groupId>
+ <artifactId>sca-api-r0.95</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.tuscany.sca.plugins</groupId>
+ <artifactId>tuscany-itest-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+/**
+ * @author lamodeo
+ */
+public interface CallBackApiCallBack {
+
+ public void callBackMessage(String aString);
+
+ public void callBackIncrement(String aString);
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiCallBack.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+public interface CallBackApiClient {
+
+ public void run();
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClient.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,133 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+import junit.framework.Assert;
+
+@Service(CallBackApiClient.class)
+public class CallBackApiClientImpl implements CallBackApiClient, CallBackApiCallBack {
+
+ @Reference
+ protected CallBackApiService aCallBackService;
+ private static String returnMessage = null;
+ private static int callBackCount = 0;
+ private static Object monitor = new Object();
+
+ public void run() {
+
+ // This tests basic callback patterns.
+
+ // Test3a is the basic callback where the target calls back prior to
+ // returning to the client.
+ test3a();
+
+ // Test3b is where the target does not call back to the client.
+ test3b();
+
+ // Test3c is where the target calls back multiple times to the client.
+ test3c();
+
+ return;
+ }
+
+ private void test3a() {
+ aCallBackService.knockKnock("Knock Knock");
+ int count = 0;
+
+ //
+ // If we cant get a response in 30 seconds consider this a failure
+ //
+
+ synchronized (monitor) {
+ while (returnMessage == null && count++ < 30) {
+ try {
+ monitor.wait(1000L);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ Assert.assertEquals("CallBackApiITest - test3a", "Who's There", this.getReturnMessage());
+
+ }
+
+ private void test3b() {
+ aCallBackService.noCallBack("No Reply Desired");
+ Assert.assertEquals("CallBackApiITest - test3b", 1, 1);
+ return;
+ }
+
+ private void test3c() {
+ aCallBackService.multiCallBack("Call me back 3 times");
+ int count = 0;
+
+ //
+ // If we cant get a response in 30 seconds consider this a failure
+ //
+
+ synchronized (monitor) {
+ while (this.getCallBackCount() < 3 && count++ < 30) {
+ try {
+ monitor.wait(1000L);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ Assert.assertEquals("CallBackApiITest - test3c", 3, this.getCallBackCount());
+ return;
+ }
+
+ public String getReturnMessage() {
+ return returnMessage;
+ }
+
+ public void setReturnMessage(String aReturnMessage) {
+ returnMessage = aReturnMessage;
+ }
+
+ public int getCallBackCount() {
+ return callBackCount;
+ }
+
+ public void incrementCallBackCount() {
+ callBackCount++;
+ }
+
+ public void callBackMessage(String aString) {
+ System.out.println("Entering callback callBackMessage: " + aString);
+ synchronized (monitor) {
+ this.setReturnMessage(aString);
+ monitor.notify();
+ }
+ }
+
+ public void callBackIncrement(String aString) {
+ System.out.println("Entering callback increment: " + aString);
+ synchronized (monitor) {
+ this.incrementCallBackCount();
+ monitor.notify();
+ }
+ }
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiClientImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Callback;
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+@Callback(CallBackApiCallBack.class)
+/**
+ *
+ */
+public interface CallBackApiService {
+
+ public void knockKnock(String aString);
+
+ public void noCallBack(String aString);
+
+ public void multiCallBack(String aString);
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiService.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Service;
+import org.osoa.sca.annotations.Context;
+import org.osoa.sca.CompositeContext;
+import org.osoa.sca.RequestContext;
+
+@Service(CallBackApiService.class)
+public class CallBackApiServiceImpl implements CallBackApiService {
+
+ @Context
+ protected CompositeContext compositeContext;
+ protected CallBackApiCallBack callback;
+
+ public void knockKnock(String aString) {
+
+ System.out.println("CallBackApiServiceImpl message received: " + aString);
+ callback = this.getCallBackInterface();
+ callback.callBackMessage("Who's There");
+ System.out.println("CallBackApiServiceImpl response sent");
+ return;
+
+ }
+
+ public void multiCallBack(String aString) {
+
+ callback = this.getCallBackInterface();
+
+ System.out.println("CallBackApiServiceImpl message received: " + aString);
+ callback.callBackIncrement("Who's There 1");
+ System.out.println("CallBackApiServiceImpl response sent");
+ callback.callBackIncrement("Who's There 2");
+ System.out.println("CallBackApiServiceImpl response sent");
+ callback.callBackIncrement("Who's There 3");
+ System.out.println("CallBackApiServiceImpl response sent");
+ return;
+
+ }
+
+ public void noCallBack(String aString) {
+
+ System.out.println("CallBackApiServiceImpl message received: " + aString);
+
+ return;
+
+ }
+
+ private CallBackApiCallBack getCallBackInterface() {
+ System.out.println("CallBackApiServiceImpl getting request context");
+ RequestContext rc = compositeContext.getRequestContext();
+ System.out.println("CallBackApiServiceImpl getting callback from request context");
+ callback = (CallBackApiCallBack)rc.getServiceReference().getCallback();
+ System.out.println("CallBackApiServiceImpl returning callback");
+ return callback;
+
+ }
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/java/org/apache/tuscany/sca/test/CallBackApiServiceImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/resources/META-INF/sca/default.scdl?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/resources/META-INF/sca/default.scdl (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/main/resources/META-INF/sca/default.scdl Fri Jan 12 09:51:22 2007
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ name="CallBackApiTest">
+
+ <component name="CallBackApiClient">
+ <implementation.java class="org.apache.tuscany.sca.test.CallBackApiClientImpl"/>
+ <reference name="aCallBackService">
+ CallBackApiService
+ </reference>
+ </component>
+
+ <component name="CallBackApiService">
+ <implementation.java class="org.apache.tuscany.sca.test.CallBackApiServiceImpl"/>
+ </component>
+
+</composite>
Added: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/tuscany/sca/test/CallBackApiITest.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/tuscany/sca/test/CallBackApiITest.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/tuscany/sca/test/CallBackApiITest.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/tuscany/sca/test/CallBackApiITest.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import junit.framework.TestCase;
+
+import org.osoa.sca.CurrentCompositeContext;
+
+public class CallBackApiITest extends TestCase {
+
+ private CallBackApiClient aCallBackClient;
+
+ public void testCallBackBasic() {
+ aCallBackClient.run();
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ aCallBackClient =
+ CurrentCompositeContext.getContext().locateService(CallBackApiClient.class, "CallBackApiClient");
+ }
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/tuscany/sca/test/CallBackApiITest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackAPITest/src/test/java/org/apache/tuscany/sca/test/CallBackApiITest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Jan 12 09:51:22 2007
@@ -0,0 +1,13 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
Added: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackBasicTest/pom.xml?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackBasicTest/pom.xml (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackBasicTest/pom.xml Fri Jan 12 09:51:22 2007
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+ <parent>
+ <groupId>org.apache.tuscany.testing</groupId>
+ <artifactId>sca-itest</artifactId>
+ <version>1.0-incubator-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.tuscany.testing</groupId>
+ <artifactId>callbackBasicTest</artifactId>
+ <version>${testing.version}</version>
+ <packaging>jar</packaging>
+ <name>Test Suite for SCA Callback Basic</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.osoa</groupId>
+ <artifactId>sca-api-r0.95</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.tuscany.sca.plugins</groupId>
+ <artifactId>tuscany-itest-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+/**
+ * @author lamodeo
+ */
+public interface CallBackBasicCallBack {
+
+ public void callBackMessage(String aString);
+
+ public void callBackIncrement(String aString);
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicCallBack.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+public interface CallBackBasicClient {
+
+ public void run();
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClient.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,134 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+import junit.framework.Assert;
+
+@Service(CallBackBasicClient.class)
+public class CallBackBasicClientImpl implements CallBackBasicClient, CallBackBasicCallBack {
+
+ @Reference
+ protected CallBackBasicService aCallBackService;
+ private static String returnMessage = null;
+ private static int callBackCount = 0;
+ private static Object monitor = new Object();
+
+ public void run() {
+
+ // This tests basic callback patterns.
+
+ // Test1 is the basic callback where the target calls back prior to
+ // returning to the client.
+ test1a();
+
+ // Test2 is where the target does not call back to the client.
+ test1b();
+
+ // Test3 is where the target calls back multiple times to the client.
+ test1c();
+
+ return;
+ }
+
+ private void test1a() {
+ aCallBackService.knockKnock("Knock Knock");
+ int count = 0;
+
+ //
+ // If we cant get a response in 30 seconds consider this a failure
+ //
+
+ synchronized (monitor) {
+ while (returnMessage == null && count++ < 30) {
+ try {
+ monitor.wait(1000L);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ Assert.assertEquals("CallBackBasicITest - test1a", "Who's There", this.getReturnMessage());
+
+ }
+
+ private void test1b() {
+ aCallBackService.noCallBack("No Reply Desired");
+ Assert.assertEquals("CallBackBasicITest - test1b", 1, 1);
+
+ return;
+ }
+
+ private void test1c() {
+ aCallBackService.multiCallBack("Call me back 3 times");
+ int count = 0;
+
+ //
+ // If we cant get a response in 30 seconds consider this a failure
+ //
+
+ synchronized (monitor) {
+ while (this.getCallBackCount() < 3 && count++ < 30) {
+ try {
+ monitor.wait(1000L);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ Assert.assertEquals("CallBackBasicITest - test1c", 3, this.getCallBackCount());
+ return;
+ }
+
+ public String getReturnMessage() {
+ return returnMessage;
+ }
+
+ public void setReturnMessage(String aReturnMessage) {
+ returnMessage = aReturnMessage;
+ }
+
+ public int getCallBackCount() {
+ return callBackCount;
+ }
+
+ public void incrementCallBackCount() {
+ callBackCount++;
+ }
+
+ public void callBackMessage(String aString) {
+ System.out.println("Entering callback callBackMessage: " + aString);
+ synchronized (monitor) {
+ this.setReturnMessage(aString);
+ monitor.notify();
+ }
+ }
+
+ public void callBackIncrement(String aString) {
+ System.out.println("Entering callback increment: " + aString);
+ synchronized (monitor) {
+ this.incrementCallBackCount();
+ monitor.notify();
+ }
+ }
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicClientImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Callback;
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+@Callback(CallBackBasicCallBack.class)
+/**
+ *
+ */
+public interface CallBackBasicService {
+
+ public void knockKnock(String aString);
+
+ public void noCallBack(String aString);
+
+ public void multiCallBack(String aString);
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicService.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Callback;
+import org.osoa.sca.annotations.Service;
+
+@Service(CallBackBasicService.class)
+public class CallBackBasicServiceImpl implements CallBackBasicService {
+
+ @Callback
+ protected CallBackBasicCallBack callback;
+
+ public void knockKnock(String aString) {
+
+ System.out.println("CallBackBasicServiceImpl message received: " + aString);
+ callback.callBackMessage("Who's There");
+ System.out.println("CallBackBasicServiceImpl response sent");
+ return;
+
+ }
+
+ public void multiCallBack(String aString) {
+
+ System.out.println("CallBackBasicServiceImpl message received: " + aString);
+ callback.callBackIncrement("Who's There 1");
+ System.out.println("CallBackBasicServiceImpl response sent");
+ callback.callBackIncrement("Who's There 2");
+ System.out.println("CallBackBasicServiceImpl response sent");
+ callback.callBackIncrement("Who's There 3");
+ System.out.println("CallBackBasicServiceImpl response sent");
+ return;
+
+ }
+
+ public void noCallBack(String aString) {
+
+ System.out.println("CallBackBasicServiceImpl message received: " + aString);
+ // System.out.println("CallBackBasicServiceImpl No response desired");
+ return;
+
+ }
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/java/org/apache/tuscany/sca/test/CallBackBasicServiceImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/resources/META-INF/sca/default.scdl?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/resources/META-INF/sca/default.scdl (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/main/resources/META-INF/sca/default.scdl Fri Jan 12 09:51:22 2007
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ name="CallBackBasicTest">
+
+ <component name="CallBackBasicClient">
+ <implementation.java class="org.apache.tuscany.sca.test.CallBackBasicClientImpl"/>
+ <reference name="aCallBackService">
+ CallBackBasicService
+ </reference>
+ </component>
+
+ <component name="CallBackBasicService">
+ <implementation.java class="org.apache.tuscany.sca.test.CallBackBasicServiceImpl"/>
+ </component>
+
+</composite>
Added: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/tuscany/sca/test/CallBackBasicITest.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/tuscany/sca/test/CallBackBasicITest.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/tuscany/sca/test/CallBackBasicITest.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/tuscany/sca/test/CallBackBasicITest.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,22 @@
+package org.apache.tuscany.sca.test;
+
+import junit.framework.TestCase;
+import org.osoa.sca.CurrentCompositeContext;
+import org.osoa.sca.annotations.Reference;
+
+public class CallBackBasicITest extends TestCase {
+
+ private CallBackBasicClient aCallBackClient;
+
+ public void testCallBackBasic() {
+ aCallBackClient.run();
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ aCallBackClient = CurrentCompositeContext.getContext().locateService(CallBackBasicClient.class, "CallBackBasicClient");
+ }
+
+
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/tuscany/sca/test/CallBackBasicITest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackBasicTest/src/test/java/org/apache/tuscany/sca/test/CallBackBasicITest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Jan 12 09:51:22 2007
@@ -0,0 +1,13 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
Added: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/pom.xml?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/pom.xml (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/pom.xml Fri Jan 12 09:51:22 2007
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+ <parent>
+ <groupId>org.apache.tuscany.testing</groupId>
+ <artifactId>sca-itest</artifactId>
+ <version>1.0-incubator-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.tuscany.testing</groupId>
+ <artifactId>callbackCTypeTest</artifactId>
+ <version>${testing.version}</version>
+ <packaging>jar</packaging>
+ <name>Test Suite for SCA Callback CType</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.osoa</groupId>
+ <artifactId>sca-api-r0.95</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.tuscany.sca.plugins</groupId>
+ <artifactId>tuscany-itest-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+/**
+ * @author lamodeo
+ */
+public interface CallBackCTypeCallBack {
+
+ public void callBackMessage(String aString);
+
+ public void callBackIncrement(String aString);
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeCallBack.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+public interface CallBackCTypeClient {
+
+ public void run();
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClient.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,142 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+import junit.framework.Assert;
+
+@Service(CallBackCTypeClient.class)
+public class CallBackCTypeClientImpl implements CallBackCTypeClient, CallBackCTypeCallBack {
+
+ @Reference
+ protected CallBackCTypeService aCallBackService;
+ private static String returnMessage = null;
+ private static int callBackCount = 0;
+ private static Object monitor = new Object();
+
+ public CallBackCTypeClientImpl() {
+ // TODO Auto-generated constructor stub
+ }
+
+ public void run() {
+
+ // This test is the same as the Basic Callback except it uses a
+ // componentType side file.
+ // This test currently fails because the integration test environment
+ // does not properly copy
+ // the componentType files to the target folder. This is documented in
+ // Tuscany-967.
+
+ // Test12a is the basic callback where the target calls back prior to
+ // returning to the client.
+ test12a();
+
+ // Test12b is where the target does not call back to the client.
+ test12b();
+
+ // Test12c is where the target calls back multiple times to the client.
+ test12c();
+
+ return;
+ }
+
+ private void test12a() {
+ aCallBackService.knockKnock("Knock Knock");
+ int count = 0;
+
+ //
+ // If we cant get a response in 30 seconds consider this a failure
+ //
+
+ synchronized (monitor) {
+ while (returnMessage == null && count++ < 30) {
+ try {
+ monitor.wait(1000L);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ Assert.assertEquals("CallBackBasicITest - test12a -", "Who's There", this.getReturnMessage());
+
+ }
+
+ private void test12b() {
+ aCallBackService.noCallBack("No Reply Desired");
+ Assert.assertEquals("CallBackBasicITest - test12b -", 1, 1);
+ return;
+ }
+
+ private void test12c() {
+ aCallBackService.multiCallBack("Call me back 3 times");
+ int count = 0;
+
+ //
+ // If we cant get a response in 30 seconds consider this a failure
+ //
+
+ synchronized (monitor) {
+ while (this.getCallBackCount() < 3 && count++ < 30) {
+ try {
+ monitor.wait(1000L);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ Assert.assertEquals("CallBackBasicITest - test12c -", 3, this.getCallBackCount());
+ return;
+ }
+
+ public String getReturnMessage() {
+ return returnMessage;
+ }
+
+ public void setReturnMessage(String aReturnMessage) {
+ returnMessage = aReturnMessage;
+ }
+
+ public int getCallBackCount() {
+ return callBackCount;
+ }
+
+ public void incrementCallBackCount() {
+ callBackCount++;
+ }
+
+ public void callBackMessage(String aString) {
+ System.out.println("Entering callback callBackMessage: " + aString);
+ synchronized (monitor) {
+ this.setReturnMessage(aString);
+ monitor.notify();
+ }
+ }
+
+ public void callBackIncrement(String aString) {
+ System.out.println("Entering callback increment: " + aString);
+ synchronized (monitor) {
+ this.incrementCallBackCount();
+ monitor.notify();
+ }
+ }
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeClientImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java Fri Jan 12 09:51:22 2007
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.sca.test;
+
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+// @Callback(CallBackCTypeCallBack.class)
+/**
+ *
+ */
+public interface CallBackCTypeService {
+
+ public void knockKnock(String aString);
+
+ public void noCallBack(String aString);
+
+ public void multiCallBack(String aString);
+
+}
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeService.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType?view=auto&rev=495660
==============================================================================
--- incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType (added)
+++ incubator/tuscany/java/testing/sca/itest/callBackCTypeTest/src/main/java/org/apache/tuscany/sca/test/CallBackCTypeServiceImpl.componentType Fri Jan 12 09:51:22 2007
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="ASCII"?>
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" >
+ <service name="CallBackCTypeService">
+ <interface.java interface="org.apache.tuscany.sca.test.CallBackCTypeService"
+ callbackInterface="org.apache.tuscany.sca.test.CallBackCTypeCallBack"/>
+ </service>
+</componentType>
+
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org