diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-06-13 07:57:30 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-06-13 07:57:30 +0000 |
commit | d3bdc051ec4a6499c73d00e80f744aa375a01687 (patch) | |
tree | 859ef5c6e4ca93b6a72d40febe0d6dd0ace33d09 /sca-cpp/trunk/modules/edit/apps/testsms | |
parent | ba223e693c0f6e652fd70c05d83d69956262ff09 (diff) |
Minor refactoring and cleanup of edit module and its test composites. Add HTML generation and messaging components and a few more tests.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1135048 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/edit/apps/testsms')
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/testsms/app.composite | 98 | ||||
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/testsms/app.stats | 1 | ||||
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/testsms/htdocs/app.html | 24 |
3 files changed, 123 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/edit/apps/testsms/app.composite b/sca-cpp/trunk/modules/edit/apps/testsms/app.composite new file mode 100644 index 0000000000..a5d82a2891 --- /dev/null +++ b/sca-cpp/trunk/modules/edit/apps/testsms/app.composite @@ -0,0 +1,98 @@ +<?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://docs.oasis-open.org/ns/opencsa/sca/200912" name="app" targetNamespace="http://app"> + <service name="item" promote="property"/> + <service name="twsms1" promote="twsms1"/> + <component x="180" y="30" name="keychain1" title="keychain" color="green1"> + <implementation.python script="nuvem/keychain.py"/> + <service name="keychain"/> + <reference target="name1" name="name"/> + <reference name="account" target="Accounts" visible="false"/> + </component> + <component x="190" y="70" name="keychain3" title="keychain" color="green1"> + <implementation.python script="nuvem/keychain.py"/> + <service name="keychain"/> + <reference target="name3" name="name"/> + <reference name="account" target="Accounts" visible="false"/> + </component> + <component x="190" y="100" name="keychain4" title="keychain" color="green1"> + <implementation.python script="nuvem/keychain.py"/> + <service name="keychain"/> + <reference target="name5" name="name"/> + <reference name="account" target="Accounts" visible="false"/> + </component> + <component x="180" y="140" name="keychain5" title="keychain" color="green1"> + <implementation.python script="nuvem/keychain.py"/> + <service name="keychain"/> + <reference target="name4" name="name"/> + <reference name="account" target="Accounts" visible="false"/> + </component> + <component name="list2" title="list" color="yellow1"> + <implementation.python script="nuvem/list_.py"/> + <service name="list"/> + <reference target="text14" name="item" clonable="true"/> + <reference name="item" clonable="true"/> + </component> + <component x="630" y="350" name="name1" title="" color="orange1"> + <implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>twiliosid</property> + </component> + <component x="780" y="320" name="name3" title="" color="orange1"> + <implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>twiliotoken</property> + </component> + <component x="250" y="140" name="name4" title="" color="orange1"> + <implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>tophone</property> + </component> + <component x="520" y="270" name="name5" title="" color="orange1"> + <implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>fromphone</property> + </component> + <component x="180" y="170" name="text1" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>Hello Again!</property> + </component> + <component x="550" y="450" name="text12" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>From={0}&To={1}&Body={2}</property> + </component> + <component x="250" y="340" name="text14" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>Hello there</property> + </component> + <component x="140" y="30" name="twsms1" title="sms" color="blue1"> + <implementation.python script="nuvem/twsms.py"/> + <service name="twsms"/> + <reference target="keychain1" name="sid"/> + <reference target="keychain3" name="token"/> + <reference target="keychain4" name="from"/> + <reference target="keychain5" name="to"/> + <reference target="text1" name="msg"/> + <reference name="s" wiredByImpl="true" visible="false"/> + </component> +</composite> diff --git a/sca-cpp/trunk/modules/edit/apps/testsms/app.stats b/sca-cpp/trunk/modules/edit/apps/testsms/app.stats new file mode 100644 index 0000000000..be1fc6d254 --- /dev/null +++ b/sca-cpp/trunk/modules/edit/apps/testsms/app.stats @@ -0,0 +1 @@ +((entry (title "Test HTTP components") (id "testhttp")))
\ No newline at end of file diff --git a/sca-cpp/trunk/modules/edit/apps/testsms/htdocs/app.html b/sca-cpp/trunk/modules/edit/apps/testsms/htdocs/app.html new file mode 100644 index 0000000000..dd8f5f9f26 --- /dev/null +++ b/sca-cpp/trunk/modules/edit/apps/testsms/htdocs/app.html @@ -0,0 +1,24 @@ +<?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. +--> +<DIV id="page"> + <SPAN id="page:h1" class="h1" style="position: absolute; top: 0px; left: 2px; "> + <H1>Test SMS API</H1> + </SPAN> +</DIV> |